Update page
This commit is contained in:
@@ -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>
|
||||
</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>
|
||||
{% 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 %}
|
||||
|
||||
Reference in New Issue
Block a user