blessing-skin-server/resources/views/user/index.twig
2019-12-13 19:29:57 +08:00

45 lines
1.3 KiB
Twig

{% extends 'user.base' %}
{% block title %}{{ trans('general.dashboard') }}{% endblock %}
{% block content %}
{{ include('shared.grid') }}
<div id="modal-score-instruction" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{{ trans('user.score-intro.title') }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{{ score_intro|nl2br }}
<hr />
<div class="row">
{% for key, value in rates %}
<div class="col-md-4">
<p class="text-center">
{{ trans("user.score-intro.rates.#{key}", {score: value}) }}
</p>
</div>
{% endfor %}
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">{{ trans('general.close') }}</button>
</div>
</div>
</div>
</div>
{% endblock %}
{% block before_foot %}
<script>
Object.defineProperty(blessing, 'extra', {
get: () => Object.freeze({{ extra|json_encode|raw }})
})
</script>
{% endblock %}