X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FConfig%2Findex.html.twig;h=885718f8274ce762bac096178606de6b04ca2017;hb=e9fbd2d12e94c96d540f6f98758f6bc92a65e7a1;hp=b20c4ea50772cee573497eb76a2727fea2c6208f;hpb=2db616b586f473238706e554e809086935e0f33a;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 b20c4ea5..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 @@ -15,15 +15,15 @@
  • {% trans %}RSS{% endtrans %}
  • {% trans %}User information{% endtrans %}
  • {% trans %}Password{% endtrans %}
  • +
  • {% trans %}Tags{% endtrans %}
  • {% if is_granted('ROLE_SUPER_ADMIN') %} -
  • {% trans %}Add a user{% endtrans %}
  • +
  • {% trans %}Add a user{% endtrans %}
  • {% endif %} -
    -
    + {{ form_start(form.config) }} {{ form_errors(form.config) }}
    @@ -57,9 +57,8 @@
    -
    -
    + {{ form_start(form.rss) }} {{ form_errors(form.rss) }}
    @@ -111,9 +110,8 @@
    -
    -
    + {{ form_start(form.user) }} {{ form_errors(form.user) }}
    @@ -132,6 +130,7 @@
    + {% if twofactor_auth %}
    {{ form_widget(form.user.twoFactorAuthentication) }} @@ -139,6 +138,7 @@ {{ form_errors(form.user.twoFactorAuthentication) }}
    + {% endif %}
    -
    -
    + {{ form_start(form.pwd) }} {{ form_errors(form.pwd) }}
    @@ -185,9 +184,104 @@
    +
    +
    +
    +
      + {% 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) }}