blessing-skin-server/resources/views/skinlib/show.twig

51 lines
1.3 KiB
Twig
Raw Normal View History

2019-09-18 23:06:48 +08:00
{% extends 'skinlib.base' %}
{% block title %}{{ texture.name }}{% endblock %}
{% block content %}
<div class="content-wrapper">
<div class="container">
2019-11-24 14:32:58 +08:00
<div class="content-header">
<div class="container-fluid">
<div class="d-flex justify-content-between flex-wrap">
<div>
<h1 class="m-0 text-dark">{{ trans('skinlib.show.title') }}</h1>
</div>
<div>
<div class="breadcrumb"></div>
</div>
</div>
</div>
</div>
2019-09-18 23:06:48 +08:00
<section class="content">
2019-11-24 14:32:58 +08:00
<div class="container-fluid">
<div class="row"></div>
2019-09-18 23:06:48 +08:00
2019-11-24 14:32:58 +08:00
{% if comment_script %}
<div class="container-fluid p-0">
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ trans('skinlib.show.comment') }}</h3>
2019-09-18 23:06:48 +08:00
</div>
2019-11-24 14:32:58 +08:00
<div class="card-body">
2019-09-18 23:06:48 +08:00
{{ comment_script|raw }}
</div>
</div>
</div>
2019-11-24 14:32:58 +08:00
{% endif %}
</div>
2019-09-18 23:06:48 +08:00
</section>
</div>
</div>
{% endblock %}
{% block before_foot %}
<script>
Object.defineProperty(blessing, 'extra', {
configurable: false,
get: () => Object.freeze({{ extra|json_encode|raw }})
})
</script>
{% endblock %}