aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-03-09 08:59:08 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-03-20 21:12:22 +0100
commit0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc (patch)
tree4cf8b97ed3c06def270e9172c7b17c5c86048585 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
parentd2b4f01d7435e8a8f99b15a2487916427c04e58d (diff)
downloadwallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.tar.gz
wallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.tar.zst
wallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.zip
Convert english translation file
- convert english translation to translate key - remove baggy template for login (never used since user isn't logged in and it'll use the default theme: material) - fix tests about text in response (now checking translation key instead of translated text) - remove all ugly `<div class="hidden">{{ form_rest(form) }}</div>`
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig53
1 files changed, 30 insertions, 23 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
index 54faa788..721948ef 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
@@ -1,9 +1,9 @@
1{% extends "WallabagCoreBundle::layout.html.twig" %} 1{% extends "WallabagCoreBundle::layout.html.twig" %}
2 2
3{% block title %}{% trans %}Config{% endtrans %}{% endblock %} 3{% block title %}{{ 'config.page_title'|trans }}{% endblock %}
4 4
5{% block content %} 5{% block content %}
6 <h2>{% trans %}Wallabag configuration{% endtrans %}</h2> 6 <h2>{{ 'config.tab_menu.settings'|trans }}</h2>
7 7
8 {{ form_start(form.config) }} 8 {{ form_start(form.config) }}
9 {{ form_errors(form.config) }} 9 {{ form_errors(form.config) }}
@@ -44,13 +44,13 @@
44 {{ form_rest(form.config) }} 44 {{ form_rest(form.config) }}
45 </form> 45 </form>
46 46
47 <h2>{% trans %}RSS configuration{% endtrans %}</h2> 47 <h2>{{ 'config.tab_menu.rss'|trans }}</h2>
48 48
49 {{ form_start(form.rss) }} 49 {{ form_start(form.rss) }}
50 {{ form_errors(form.rss) }} 50 {{ form_errors(form.rss) }}
51 51
52 <div class="row"> 52 <div class="row">
53 {% trans %}RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader.{% endtrans %} 53 {{ 'config.form_rss.description'|trans }}
54 </div> 54 </div>
55 55
56 <fieldset class="w500p inline"> 56 <fieldset class="w500p inline">
@@ -59,27 +59,31 @@
59 {% if rss.token %} 59 {% if rss.token %}
60 {{ rss.token }} 60 {{ rss.token }}
61 {% else %} 61 {% else %}
62 <em>No token</em> 62 <em>{{ 'config.form_rss.no_token'|trans }}</em>
63 {% endif %} 63 {% endif %}
64 64
65 <a href="{{ path('generate_token') }}">Regenerate ?</a> 65 <a href="{{ path('generate_token') }}">
66 {% if rss.token %}
67 {{ 'config.form_rss.token_reset'|trans }}
68 {% else %}
69 {{ 'config.form_rss.token_create'|trans }}
70 {% endif %}
71 </a>
66 </div> 72 </div>
67 </fieldset> 73 </fieldset>
68 74
75 {% if rss.token %}
69 <fieldset class="w500p inline"> 76 <fieldset class="w500p inline">
70 <div class="row"> 77 <div class="row">
71 <label>Rss links:</label> 78 <label>{{ 'config.form_rss.rss_links'|trans }}</label>
72 {% if rss.token %} 79 <ul>
73 <ul> 80 <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">unread</a></li>
74 <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">unread</a></li> 81 <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">fav</a></li>
75 <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">fav</a></li> 82 <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">archives</a></li>
76 <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">archives</a></li> 83 </ul>
77 </ul>
78 {% else %}
79 <strong>You need to generate a token first.</strong>
80 {% endif %}
81 </div> 84 </div>
82 </fieldset> 85 </fieldset>
86 {% endif %}
83 87
84 <fieldset class="w500p inline"> 88 <fieldset class="w500p inline">
85 <div class="row"> 89 <div class="row">
@@ -92,7 +96,7 @@
92 {{ form_rest(form.rss) }} 96 {{ form_rest(form.rss) }}
93 </form> 97 </form>
94 98
95 <h2>{% trans %}User information{% endtrans %}</h2> 99 <h2>{{ 'config.tab_menu.user_info'|trans }}</h2>
96 100
97 {{ form_start(form.user) }} 101 {{ form_start(form.user) }}
98 {{ form_errors(form.user) }} 102 {{ form_errors(form.user) }}
@@ -115,7 +119,7 @@
115 119
116 {% if twofactor_auth %} 120 {% if twofactor_auth %}
117 <div class="row"> 121 <div class="row">
118 {% trans %}Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion{% endtrans %} 122 {{ 'config.form_user.two_factor_description'|trans }}
119 </div> 123 </div>
120 124
121 <fieldset class="w500p inline"> 125 <fieldset class="w500p inline">
@@ -130,7 +134,7 @@
130 {{ form_rest(form.user) }} 134 {{ form_rest(form.user) }}
131 </form> 135 </form>
132 136
133 <h2>{% trans %}Change your password{% endtrans %}</h2> 137 <h2>{{ 'config.tab_menu.password'|trans }}</h2>
134 138
135 {{ form_start(form.pwd) }} 139 {{ form_start(form.pwd) }}
136 {{ form_errors(form.pwd) }} 140 {{ form_errors(form.pwd) }}
@@ -162,13 +166,16 @@
162 {{ form_rest(form.pwd) }} 166 {{ form_rest(form.pwd) }}
163 </form> 167 </form>
164 168
165 <h2>{% trans %}Tagging rules{% endtrans %}</h2> 169 <h2>{{ 'config.tab_menu.rules'|trans }}}</h2>
166 170
167 <ul> 171 <ul>
168 {% for tagging_rule in app.user.config.taggingRules %} 172 {% for tagging_rule in app.user.config.taggingRules %}
169 <li> 173 <li>
170 if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} » 174 {{ 'config.form_rules.if_label'|trans }}
171 <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{% trans %}Delete{% endtrans %}" class="tool delete icon-trash icon"></a> 175 « {{ tagging_rule.rule }} »
176 {{ 'config.form_rules.then_tag_as_label'|trans }}
177 « {{ tagging_rule.tags|join(', ') }} »
178 <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.delete_rule_label'|trans }}" class="tool delete icon-trash icon"></a>
172 </li> 179 </li>
173 {% endfor %} 180 {% endfor %}
174 </ul> 181 </ul>
@@ -196,7 +203,7 @@
196 </form> 203 </form>
197 204
198 {% if is_granted('ROLE_SUPER_ADMIN') %} 205 {% if is_granted('ROLE_SUPER_ADMIN') %}
199 <h2>{% trans %}Add a user{% endtrans %}</h2> 206 <h2>{{ 'config.tab_menu.new_user'|trans }}</h2>
200 207
201 {{ form_start(form.new_user) }} 208 {{ form_start(form.new_user) }}
202 {{ form_errors(form.new_user) }} 209 {{ form_errors(form.new_user) }}