Permalink
Browse files

Add page_title to admin views. Closes #1038.

  • Loading branch information...
1 parent e30849d commit f1076590f15f5dc55b164e2b22688a51c805265e ckieffer committed Apr 30, 2010
@@ -50,6 +50,7 @@ public function index() {
akismet::check_config();
$view = new Admin_View("admin.html");
+ $view->page_title = t("Akismet spam filtering");
$view->content = new View("admin_akismet.html");
$view->content->valid_key = $valid_key;
$view->content->form = $form;
@@ -44,6 +44,7 @@ public function queue($state) {
$page = max(Input::instance()->get("page"), 1);
$view = new Admin_View("admin.html");
+ $view->page_title = t("Manage comments");
$view->content = new View("admin_comments.html");
$view->content->counts = $this->_counts();
$view->content->menu = $this->_menu($view->content->counts);
@@ -20,6 +20,7 @@
class Admin_Digibug_Controller extends Admin_Controller {
public function index() {
$v = new Admin_View("admin.html");
+ $v->page_title = t("Digibug");
$v->content = new View("admin_digibug.html");
print $v;
}
@@ -30,6 +30,7 @@ public function index() {
}
$view = new Admin_View("admin.html");
+ $view->page_title = t("Gallery 2 import");
$view->content = new View("admin_g2_import.html");
$view->content->form = $this->_get_import_form();
$view->content->version = '';
@@ -20,6 +20,7 @@
class Admin_Advanced_Settings_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Advanced settings");
$view->content = new View("admin_advanced_settings.html");
$view->content->vars = ORM::factory("var")
->order_by("module_name")
@@ -20,6 +20,7 @@
class Admin_Dashboard_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Dashboard");
$view->content = new View("admin_dashboard.html");
$view->content->blocks = block_manager::get_html("dashboard_center");
$view->sidebar = "<div id=\"g-admin-dashboard-sidebar\">" .
@@ -20,6 +20,7 @@
class Admin_Graphics_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Graphics settings");
$view->content = new View("admin_graphics.html");
$view->content->tk = graphics::detect_toolkits();
$view->content->active = module::get_var("gallery", "graphics_toolkit", "none");
@@ -20,6 +20,7 @@
class Admin_Languages_Controller extends Admin_Controller {
public function index($share_translations_form=null) {
$v = new Admin_View("admin.html");
+ $v->page_title = t("Languages and translations");
$v->content = new View("admin_languages.html");
$v->content->available_locales = locales::available();
$v->content->installed_locales = locales::installed();
@@ -20,6 +20,7 @@
class Admin_Modules_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Modules");
$view->content = new View("admin_modules.html");
$view->content->available = module::available();
print $view;
@@ -20,6 +20,7 @@
class Admin_Sidebar_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Manage sidebar");
$view->content = new View("admin_sidebar.html");
$view->content->csrf = access::csrf_token();
$view->content->available = new View("admin_sidebar_blocks.html");
@@ -20,6 +20,7 @@
class Admin_Theme_Options_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Theme options");
$view->content = new View("admin_theme_options.html");
$view->content->form = theme::get_edit_form_admin();
print $view;
@@ -20,6 +20,7 @@
class Admin_Themes_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Theme choice");
$view->content = new View("admin_themes.html");
$view->content->admin = module::get_var("gallery", "active_admin_theme");
$view->content->site = module::get_var("gallery", "active_site_theme");
@@ -51,6 +51,7 @@ public function index() {
recaptcha::check_config();
$view = new Admin_View("admin.html");
+ $view->page_title = t("reCAPTCHA");
$view->content = new View("admin_recaptcha.html");
$view->content->public_key = module::get_var("recaptcha", "public_key");
$view->content->private_key = module::get_var("recaptcha", "private_key");
@@ -20,6 +20,7 @@
class Admin_Server_Add_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Add from server");
$view->content = new View("admin_server_add.html");
$view->content->form = $this->_get_admin_form();
$paths = unserialize(module::get_var("server_add", "authorized_paths", "a:0:{}"));
@@ -22,6 +22,7 @@ public function index() {
$filter = Input::instance()->get("filter");
$view = new Admin_View("admin.html");
+ $view->page_title = t("Manage tags");
$view->content = new View("admin_tags.html");
$view->content->filter = $filter;
@@ -20,6 +20,7 @@
class Admin_Users_Controller extends Admin_Controller {
public function index() {
$view = new Admin_View("admin.html");
+ $view->page_title = t("Users and groups");
$view->content = new View("admin_users.html");
$view->content->users = ORM::factory("user")->order_by("name", "ASC")->find_all();
$view->content->groups = ORM::factory("group")->order_by("name", "ASC")->find_all();
@@ -22,6 +22,7 @@ public function index() {
$name = module::get_var("watermark", "name");
$view = new Admin_View("admin.html");
+ $view->page_title = t("Watermarks");
$view->content = new View("admin_watermarks.html");
if ($name) {
$view->content->name = module::get_var("watermark", "name");

0 comments on commit f107659

Please sign in to comment.