Update page

This commit is contained in:
RemiZOffAlex
2020-02-08 20:35:14 +03:00
parent b1fbffbc40
commit d055f8ee78
2 changed files with 2 additions and 48 deletions

View File

@@ -1,6 +1,5 @@
{% extends "skeleton.html" %}
{% block content %}
{% raw %}
<h3>Статьи</h3>
<hr />
@@ -13,34 +12,12 @@
</div>
</div>
<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.tag_id">{{ tag.name }}</a>&nbsp;
</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>&nbsp;
Создано: {{ page.created }}&nbsp;
Обновлено: {{ page.updated }}
</div>
</div>
</div>
</div>
{% include 'inc/pages.html' %}
<pagination-component v-bind:pagination="pagination" v-bind:click-handler="getPages"></pagination-component>
<backtotop-component></backtotop-component>
{% endraw %}
{% endblock %}
{% block script %}