Update templates
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
<h3>Профиль</h3>
|
||||
<hr />
|
||||
|
||||
<p>Зарегистрирован: {{ user.created.strftime('%Y-%m-%d') }}</p>
|
||||
<p>Зарегистрирован: {{ user.created }}</p>
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
24
myapp/templates/inc/pages.html
Normal file
24
myapp/templates/inc/pages.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% raw %}
|
||||
<div class="row" v-for="(page, pageIdx) in pages">
|
||||
<div class="col py-2" :class="{'bg-light': pageIdx % 2}">
|
||||
<a :href="'/page/' + page.id">{{ page.title }}</a>
|
||||
|
||||
<div class="row">
|
||||
<div class="col small text-muted">
|
||||
<span v-for="(tag, tagIdx) in page.tags">
|
||||
<i class="fa fa-tag"></i> <a class="text-monospace" :href="'/tag/' + tag.id">{{ tag.name }}</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col small text-muted">
|
||||
<i class="fa fa-user"></i> <a :href="'/user/' + page.user.id">{{ page.user.name }}</a>
|
||||
Создано: {{ page.created }}
|
||||
Обновлено: {{ page.updated }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endraw %}
|
||||
Reference in New Issue
Block a user