Fix #310 Title variable in admin

This commit is contained in:
Flavio Copes
2015-11-30 16:32:53 +01:00
parent 018c22e7e9
commit 12d572dafb
7 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
{% extends 'partials/base.html.twig' %}
{% set title = "PLUGIN_ADMIN.DASHBOARD"|tu %}
{% block titlebar %}
<div class="button-bar">
{% if authorize(['admin.maintenance', 'admin.super']) %}

View File

@@ -21,6 +21,7 @@
{% endif %}
{% else %}
{% set mode = 'list' %}
{% set title = "PLUGIN_ADMIN.PAGES"|tu %}
{% endif %}
{% set modular = context.modular ? 'modular_' : '' %}

View File

@@ -13,6 +13,8 @@
{% set plugin = package.toArray() %}
{% set title = "PLUGIN_ADMIN.PLUGIN"|tu ~ ": " ~ plugin.name|e %}
{% else %}
{% set title = "PLUGIN_ADMIN.PLUGINS"|tu %}
{% endif %}
{% if admin.route or installing %}

View File

@@ -1,5 +1,7 @@
{% extends 'partials/base.html.twig' %}
{% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ "PLUGIN_ADMIN.SITE"|tu %}
{% set data = admin.data('site') %}
{% block stylesheets %}

View File

@@ -1,5 +1,7 @@
{% extends 'partials/base.html.twig' %}
{% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ "PLUGIN_ADMIN.SYSTEM"|tu %}
{% set data = admin.data('system') %}
{% block stylesheets %}

View File

@@ -13,7 +13,8 @@
{% set theme = package.toArray() %}
{% set title = "PLUGIN_ADMIN.THEME"|tu ~ ": " ~ theme.name|e %}
{% else %}
{% set title = "PLUGIN_ADMIN.THEMES"|tu %}
{% endif %}
{% if admin.route or installing %}

View File

@@ -1,9 +1,14 @@
{% extends 'partials/base.html.twig' %}
{% if admin.route %}
{% set user = admin.data('users/' ~ admin.route) %}
{% set user = admin.data('users/' ~ admin.route) %}
{% set title = "PLUGIN_ADMIN.USER"|tu ~ ": " ~ admin.route|e %}
{% else %}
{% set title = "PLUGIN_ADMIN.USERS"|tu %}
{% endif %}
{% block titlebar %}
{% if not admin.route %}
<div class="button-bar">