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 %} {% 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 %} {% block content %}
<h2>{{ 'entry.add'|trans }}</h2>
<form action="#" method="post"> <form action="#" method="post">
{{ form_widget(form) }} {{ form_widget(form) }}

View File

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

View File

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

View File

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