X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FConfig%2Findex.html.twig;h=810c02fa178a4aec0b26ccec963b3d1b04bc154c;hb=9b88658c047514a75bc9a9e3578cbeba32c5c5d7;hp=3ec31a02ca202606a27b64eccc26303351ea0692;hpb=7083d183b9df11f350be0d7039f5f0e33536b94b;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 3ec31a02..810c02fa 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,40 +57,42 @@
-
-
+ {{ form_start(form.rss) }} {{ form_errors(form.rss) }}
- + {% 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 %} {{ rss.token }} {% else %} - No token + {% trans %}No token{% endtrans %} {% endif %} - – - Regenerate ? + – {% if rss.token %}{% trans %}Reset your token{% endtrans %}{% else %}{% trans %}Create your token{% endtrans %}{% endif %}
- + {% if rss.token %}
- - {% if rss.token %} + - {% else %} - You need to generate a token first. - {% endif %} +
+ {% endif %}
@@ -106,9 +110,8 @@
-
-
+ {{ form_start(form.user) }} {{ form_errors(form.user) }}
@@ -127,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) }}
@@ -166,15 +178,113 @@
+
+
+
+
    + {% for tagging_rule in app.user.config.taggingRules %} +
  • + if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} » + + + +
  • + {% endfor %} +
+
+
+ +
+ {{ form_errors(form.new_tagging_rule) }} +
+
+ {{ 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) }}
@@ -187,9 +297,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) }}
@@ -208,6 +326,7 @@
+ {% endif %}