diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-09-15 01:40:15 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-09-15 01:40:15 +0300 |
commit | 56839f05410c38777380d4e42b4046a55cf2b098 (patch) | |
tree | 137656158c610846b389e294894e186d3cb3b426 /plugins/MobileMessaging | |
parent | c4ea1d8565383156baec7bc4575f022afbbc9d55 (diff) |
Set HTML <title> values in all user menu and admin menu pages
Having proper HTML titles increase usability and is important
eg. one can more easily find the right tag in the list of browser tabs
Diffstat (limited to 'plugins/MobileMessaging')
-rw-r--r-- | plugins/MobileMessaging/templates/index.twig | 4 | ||||
-rw-r--r-- | plugins/MobileMessaging/templates/userSettings.twig | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/MobileMessaging/templates/index.twig b/plugins/MobileMessaging/templates/index.twig index b0b74c7f35..5a405a462e 100644 --- a/plugins/MobileMessaging/templates/index.twig +++ b/plugins/MobileMessaging/templates/index.twig @@ -2,10 +2,12 @@ {% import '@MobileMessaging/macros.twig' as macro %} +{% set title %}{{ 'MobileMessaging_SettingsMenu'|translate }}{% endset %} + {% block content %} {% if isSuperUser %} - <h2>{{ 'General_Settings'|translate }}</h2> + <h2>{{ title }}</h2> <div class="form-group"> <label>{{ 'MobileMessaging_Settings_LetUsersManageAPICredential'|translate }}</label> diff --git a/plugins/MobileMessaging/templates/userSettings.twig b/plugins/MobileMessaging/templates/userSettings.twig index e552551b3a..c4a4417a77 100644 --- a/plugins/MobileMessaging/templates/userSettings.twig +++ b/plugins/MobileMessaging/templates/userSettings.twig @@ -1,5 +1,7 @@ {% extends 'user.twig' %} +{% set title %}{{ 'MobileMessaging_Settings_SMSProvider'|translate }}{% endset %} + {% block content %} {% import 'ajaxMacros.twig' as ajax %} @@ -11,8 +13,7 @@ {% import '@MobileMessaging/macros.twig' as macro %} {% if accountManagedByCurrentUser and delegatedManagement %} - <h2 piwik-enriched-headline - >{{ 'MobileMessaging_Settings_SMSProvider'|translate }}</h2> + <h2 piwik-enriched-headline>{{ title }}</h2> {{ macro.manageSmsApi(credentialSupplied, creditLeft, smsProviders, provider) }} {% endif %} |