Add .article-header and .article-actions classes to view.html
This commit is contained in:
parent
191e235137
commit
63a2b60f1d
6 changed files with 29 additions and 14 deletions
|
|
@ -57,8 +57,8 @@
|
|||
<textarea name="text" class="text-input" {% if pl_readonly %}disabled=""{% endif %}>{{ pl_text }}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<label for="tags">Tags (comma separated):</label>
|
||||
<input type="text" name="tags" class="tags-input" placeholder="No tags" value="{{ pl_tags }}">
|
||||
<label for="tags">{{ T('input-tags') }}:</label>
|
||||
<input type="text" name="tags" class="tags-input" placeholder="{{ T('no-tags') }}" value="{{ pl_tags }}" {% if pl_readonly %}disabled=""{% endif %}>
|
||||
</div>
|
||||
{% if not pl_readonly %}
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -8,16 +8,24 @@
|
|||
|
||||
{% block content %}
|
||||
<article>
|
||||
<h1 id="firstHeading">{{ p.title }}</h1>
|
||||
<header class="article-header">
|
||||
<h1 id="firstHeading">{{ p.title }}</h1>
|
||||
|
||||
{% if p.calendar %}
|
||||
<p class="calendar-subtitle"><span class="material-icons">calendar_today</span>{{ p.calendar.strftime('%B %-d, %Y') }}</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="jump-to-actions">
|
||||
<span>{{ T('last-changed') }} {{ rev.human_pub_date() }}</span> ·
|
||||
<a href="#page-actions">{{ T('jump-to-actions') }}</a>
|
||||
</div>
|
||||
{% if p.calendar %}
|
||||
<p class="calendar-subtitle"><span class="material-icons">calendar_today</span>{{ p.calendar.strftime('%B %-d, %Y') }}</p>
|
||||
{% endif %}
|
||||
|
||||
<ul class="article-actions inline">
|
||||
{% if current_user and current_user.is_authenticated %}
|
||||
{% if p.is_editable() %}
|
||||
<li><span class="material-icons">edit</span><a href="/edit/{{ p.id }}">{{ T('action-edit') }}</a></li>
|
||||
{% else %}
|
||||
<li><span class="material-icons">code</span><a href="/edit/{{ p.id }}">{{ T('action-view-source') }}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<li><span class="material-icons">history</span><a href="/history/{{ p.id }}">{{ rev.human_pub_date() }}</a></li>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
{% block history_nav %}{% endblock %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue