mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 10:07:04 +02:00
Fix #310 Title variable in admin
This commit is contained in:
@@ -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']) %}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set mode = 'list' %}
|
||||
{% set title = "PLUGIN_ADMIN.PAGES"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% set modular = context.modular ? 'modular_' : '' %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user