X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FConfig%2Findex.html.twig;h=9b0816eb51eda730be31ee4c8f288c1a5c292607;hb=34806fab1b26eb626862d45402cb4e265cc0af5b;hp=1cae90a41d2c94f56a0f2e6270ea13c7177e8b75;hpb=26975877d76a99f6a3153d3d3b4fc6c9f32687bc;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 1cae90a4..9b0816eb 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 %}{{ 'config.page_title'|trans }}{% endblock %} {% block content %} @@ -11,14 +11,11 @@
@@ -27,33 +24,100 @@ {{ form_errors(form.config) }}
-
+
{{ form_errors(form.config.theme) }} {{ form_widget(form.config.theme) }} - + {{ form_label(form.config.theme) }} +
+
-
- {{ form_label(form.config.items_per_page) }} +
{{ form_errors(form.config.items_per_page) }} {{ form_widget(form.config.items_per_page) }} + {{ form_label(form.config.items_per_page) }} +
+
-
- {{ form_label(form.config.language) }} +
+ {{ form_errors(form.config.reading_speed) }} + {{ form_widget(form.config.reading_speed) }} + {{ form_label(form.config.reading_speed) }} +

+ {{ 'config.form_settings.reading_speed.help_message'|trans }} + myreadspeed +

+
+ +
+ +
+
+ {{ form_errors(form.config.action_mark_as_read) }} + {{ form_widget(form.config.action_mark_as_read) }} + {{ form_label(form.config.action_mark_as_read) }} +
+
+ +
+
{{ form_errors(form.config.language) }} {{ form_widget(form.config.language) }} + {{ form_label(form.config.language) }} +
+
- - +
+
+ {{ form_errors(form.config.pocket_consumer_key) }} + {{ form_widget(form.config.pocket_consumer_key) }} + {{ form_label(form.config.pocket_consumer_key) }} +

+ » + https://getpocket.com/developer/docs/authentication +

+
+ +
+ +
+
+
{{ 'config.form_settings.android_configuration'|trans }}
+ Touch here to prefill your Android application + +
+ +
+ + {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.config) }}
@@ -63,33 +127,37 @@
- {% 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 %} + {{ 'config.form_rss.description'|trans }}
-
- +
+
{{ 'config.form_rss.token_label'|trans }}
{% if rss.token %}
- - - + {{ form_widget(form.rss.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.rss) }}
@@ -132,32 +197,69 @@ {% if twofactor_auth %}
-
- {% trans %}Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion{% endtrans %} -
-
+
+ {{ 'config.form_user.two_factor_description'|trans }} + +
-
-
{{ form_widget(form.user.twoFactorAuthentication) }} {{ form_label(form.user.twoFactorAuthentication) }} {{ form_errors(form.user.twoFactorAuthentication) }}
+
{% endif %} - - - + {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_widget(form.user._token) }} + +


+ + + + {% if enabled_users > 1 %} +


+ +
+
{{ 'config.form_user.delete.title'|trans }}
+

{{ 'config.form_user.delete.description'|trans }}

+ +
+ {% endif %}
{{ form_start(form.pwd) }} {{ form_errors(form.pwd) }} +
+
+ {{ 'config.form_password.description'|trans }} +
+
+
{{ form_label(form.pwd.old_password) }} @@ -182,29 +284,34 @@
- - - + {{ form_widget(form.pwd.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.pwd) }}
+ {% if app.user.config.taggingRules is not empty %}
+ {% endif %} {{ form_start(form.new_tagging_rule) }} {{ form_errors(form.new_tagging_rule) }} @@ -225,163 +332,95 @@
- - + {{ form_widget(form.new_tagging_rule.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.new_tagging_rule) }}
-

{% trans %}FAQ{% endtrans %}

+

{{ 'config.form_rules.faq.title'|trans }}

-
{% trans %}What does « tagging rules » mean?{% endtrans %}
-

- {% trans %} - They are rules used by Wallabag to automatically tag new entries.
- Each time a new entry is added, all the tagging rules will be used to add - the tags you configured, thus saving you the trouble to manually classify - your entries. - {% endtrans %} -

+
{{ 'config.form_rules.faq.tagging_rules_definition_title'|trans }}
+

{{ 'config.form_rules.faq.tagging_rules_definition_description'|trans|raw }}

-
{% trans %}How do I use them?{% endtrans %}
-

- {% trans %} - Let assume you want to tag new entries as « short reading » when the reading time is inferior to 3 minutes.
- In that case, you should put « readingTime <= 3 » in the Rule field and « short reading » in the Tags - field.
- Several tags can added simultaneously by separating them by a comma: « short reading, must read »
- Complex rules can be written by using predefined operators: if « readingTime >= 5 AND domainName = "github.com" » then tag as « long reading, github » - {% endtrans %} -

+
{{ 'config.form_rules.faq.how_to_use_them_title'|trans }}
+

{{ 'config.form_rules.faq.how_to_use_them_description'|trans|raw }}

-
{% trans %}Which variables and operators can I use to write rules?{% endtrans %}
+
{{ 'config.form_rules.faq.variables_available_title'|trans }}

- {% trans %}The following variables and operators can be used to create tagging rules:{% endtrans %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans %}Variable{% endtrans %}{% trans %}Meaning{% endtrans %}{% trans %}Operator{% endtrans %}{% trans %}Meaning{% endtrans %}
title{% trans %}Title of the entry{% endtrans %}<={% trans %}Less than…{% endtrans %}
url{% trans %}URL of the entry{% endtrans %}<{% trans %}Strictly less than…{% endtrans %}
isArchived{% trans %}Whether the entry is archived or not{% endtrans %}=>{% trans %}Greater than…{% endtrans %}
isStared{% trans %}Whether the entry is starred or not{% endtrans %}>{% trans %}Strictly greater than…{% endtrans %}
content{% trans %}The entry's content{% endtrans %}={% trans %}Equal to…{% endtrans %}
language{% trans %}The entry's language{% endtrans %}!={% trans %}Not equal to…{% endtrans %}
mimetype{% trans %}The entry's mime-type{% endtrans %}OR{% trans %}One rule or another{% endtrans %}
readingTime{% trans %}The estimated entry's reading time, in minutes{% endtrans %}AND{% trans %}One rule and another{% endtrans %}
domainName{% trans %}The domain name of the entry{% endtrans %}matches - {% trans %} - Tests that a subject is matches a search (case-insensitive).
- Example: title matches "football" - {% endtrans %} -
+ {{ 'config.form_rules.faq.variables_available_description'|trans }}

-
-
-
- - {% if is_granted('ROLE_SUPER_ADMIN') %} -
- {{ form_start(form.new_user) }} - {{ form_errors(form.new_user) }} -
-
- {{ form_label(form.new_user.username) }} - {{ form_errors(form.new_user.username) }} - {{ form_widget(form.new_user.username) }} -
-
- -
-
- {{ 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) }} -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{ 'config.form_rules.faq.variable_description.label'|trans }}{{ 'config.form_rules.faq.meaning'|trans }}{{ 'config.form_rules.faq.operator_description.label'|trans }}{{ 'config.form_rules.faq.meaning'|trans }}
title{{ 'config.form_rules.faq.variable_description.title'|trans }}<={{ 'config.form_rules.faq.operator_description.less_than'|trans }}
url{{ 'config.form_rules.faq.variable_description.url'|trans }}<{{ 'config.form_rules.faq.operator_description.strictly_less_than'|trans }}
isArchived{{ 'config.form_rules.faq.variable_description.isArchived'|trans }}>={{ 'config.form_rules.faq.operator_description.greater_than'|trans }}
isStarred{{ 'config.form_rules.faq.variable_description.isStarred'|trans }}>{{ 'config.form_rules.faq.operator_description.strictly_greater_than'|trans }}
content{{ 'config.form_rules.faq.variable_description.content'|trans }}={{ 'config.form_rules.faq.operator_description.equal_to'|trans }}
language{{ 'config.form_rules.faq.variable_description.language'|trans }}!={{ 'config.form_rules.faq.operator_description.not_equal_to'|trans }}
mimetype{{ 'config.form_rules.faq.variable_description.mimetype'|trans }}OR{{ 'config.form_rules.faq.operator_description.or'|trans }}
readingTime{{ 'config.form_rules.faq.variable_description.readingTime'|trans }}AND{{ 'config.form_rules.faq.operator_description.and'|trans }}
domainName{{ 'config.form_rules.faq.variable_description.domainName'|trans }}matches
notmaches
{{ 'config.form_rules.faq.operator_description.matches'|trans|raw }}
{{ 'config.form_rules.faq.operator_description.notmatches'|trans|raw }}
- -
-
- {{ form_label(form.new_user.email) }} - {{ form_errors(form.new_user.email) }} - {{ form_widget(form.new_user.email) }} -
-
- - - - - +
- {% endif %}