X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FConfig%2Findex.html.twig;h=885718f8274ce762bac096178606de6b04ca2017;hb=e9fbd2d12e94c96d540f6f98758f6bc92a65e7a1;hp=287c5fbb41efdb11b2432743ca7c8c35b0c667c2;hpb=8b8cdabc89cd0ec2f6c253cfb7326c404f153702;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 287c5fbb..885718f8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig @@ -1,6 +1,6 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{% trans %}Config{% endtrans %}{% endblock %} +{% block title %}{% trans %}config{% endtrans %}{% endblock %} {% block content %} @@ -11,17 +11,19 @@
-
-
+ {{ form_start(form.config) }} {{ form_errors(form.config) }}
@@ -55,38 +57,42 @@
-
-
+ {{ form_start(form.rss) }} {{ form_errors(form.rss) }}
- - {% if rss.token %} - {{ rss.token }} - {% else %} - No token - {% endif %} - – - Regenerate ? + {% trans %}RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader. You need to generate a token first.{% endtrans %}
- - {% if rss.token %} + +
+ {% if rss.token %} + {{ rss.token }} + {% else %} + {% trans %}No token{% endtrans %} + {% endif %} + – {% if rss.token %}{% trans %}Reset your token{% endtrans %}{% else %}{% trans %}Create your token{% endtrans %}{% endif %} +
+
+
+ {% if rss.token %} +
+
+ - {% else %} - You need to generate a token first. - {% endif %} +
+ {% endif %}
@@ -104,9 +110,8 @@
-
-
+ {{ form_start(form.user) }} {{ form_errors(form.user) }}
@@ -125,6 +130,16 @@
+ {% if twofactor_auth %} +
+
+ {{ form_widget(form.user.twoFactorAuthentication) }} + {{ form_label(form.user.twoFactorAuthentication) }} + {{ form_errors(form.user.twoFactorAuthentication) }} +
+
+ {% endif %} +
-
-
+ {{ form_start(form.pwd) }} {{ form_errors(form.pwd) }}
@@ -164,15 +178,110 @@
+
+
+
+
    + {% for tagging_rule in app.user.config.taggingRules %} +
  • + if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} » +
  • + {% endfor %} +
+
+
+ +
+ {{ form_errors(form.pwd) }} + +
+
+ {{ form_label(form.new_tagging_rule.rule) }} + {{ form_errors(form.new_tagging_rule.rule) }} + {{ form_widget(form.new_tagging_rule.rule) }} +
+
+ +
+
+ {{ form_label(form.new_tagging_rule.tags) }} + {{ form_errors(form.new_tagging_rule.tags) }} + {{ form_widget(form.new_tagging_rule.tags) }} +
+
+ + +
+ +
+
+

+ {% trans %}The following variables can be used to create tagging rules:{% endtrans %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableMeaning
title{% trans %}Title of the entry{% endtrans %}
url{% trans %}URL of the entry{% endtrans %}
isArchived{% trans %}Whether the entry is archived or not{% endtrans %}
isStared{% trans %}Whether the entry is starred or not{% endtrans %}
content{% trans %}The entry's content{% endtrans %}
language{% trans %}The entry's language{% endtrans %}
mimetype{% trans %}The entry's mime-type{% endtrans %}
readingTime{% trans %}The estimated entry's reading time, in minutes{% endtrans %}
domainName{% trans %}The domain name of the entry{% endtrans %}
+

+
+
+
+ + {% if is_granted('ROLE_SUPER_ADMIN') %}
-
+ {{ form_start(form.new_user) }} {{ form_errors(form.new_user) }}
@@ -185,9 +294,17 @@
- {{ form_label(form.new_user.password) }} - {{ form_errors(form.new_user.password) }} - {{ form_widget(form.new_user.password) }} + {{ form_label(form.new_user.plainPassword.first) }} + {{ form_errors(form.new_user.plainPassword.first) }} + {{ form_widget(form.new_user.plainPassword.first) }} +
+
+ +
+
+ {{ form_label(form.new_user.plainPassword.second) }} + {{ form_errors(form.new_user.plainPassword.second) }} + {{ form_widget(form.new_user.plainPassword.second) }}
@@ -206,6 +323,7 @@
+ {% endif %}