1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00

[change] some minor changes in templates

This commit is contained in:
Nicolas Lœuillet 2014-01-09 21:20:35 +01:00
parent f9d31f533c
commit 5cb5e8a9f2
4 changed files with 25 additions and 5 deletions

View File

@ -1,7 +1,21 @@
{% extends layout %}
{% block menu %}
<nav role="navigation">
<ul>
<li><a href="/">{{ 'unread'|trans }}</a></li>
<li>{{ 'starred'|trans }}</li>
<li><a href="/archive">{{ 'archive'|trans }}</a></li>
<li><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
</ul>
</nav>
{% endblock %}
{% block content %}
<h2>{{ 'entry.add'|trans }}</h2>
<form action="#" method="post">
{{ form_widget(form) }}

View File

@ -1,16 +1,19 @@
{% extends layout %}
{% block content %}
{% block menu %}
{% set count = entries|length %}
<nav role="navigation">
<ul>
<li><a href="/">{{ 'unread'|trans }}</a></li>
<li><a href="/">{{ 'unread'|trans }}</a> ({{count}})</li>
<li>{{ 'starred'|trans }}</li>
<li><a href="/archive">{{ 'archive'|trans }}</a> ({{count}})</li>
<li><a href="/archive">{{ 'archive'|trans }}</a></li>
<li><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
</ul>
</nav>
{% endblock %}
{% block content %}
{% if entries is empty %}
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
{% else %}
@ -28,7 +31,6 @@
</li>
{% endfor %}
</ul>
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
{% endif %}

View File

@ -1,6 +1,6 @@
{% extends layout %}
{% block content %}
{% block menu %}
{% set count = entries|length %}
<nav role="navigation">
@ -8,9 +8,12 @@
<li><a href="/">{{ 'unread'|trans }}</a> ({{count}})</li>
<li>{{ 'starred'|trans }}</li>
<li><a href="/archive">{{ 'archive'|trans }}</a></li>
<li><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
</ul>
</nav>
{% endblock %}
{% block content %}
{% if entries is empty %}
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
{% else %}

View File

@ -18,6 +18,7 @@
{% include '_top.twig' %}
<div id="main">
<div id="content" class="w600p center">
{% block menu %}{% endblock %}
{% block content %}{% endblock %}
</div>
</div>