Skip to content

Commit

Permalink
Add page_title to admin views. Closes #1038.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckieffer committed Apr 30, 2010
1 parent e30849d commit f107659
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/akismet/controllers/admin_akismet.php
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions modules/comment/controllers/admin_comments.php
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions modules/digibug/controllers/admin_digibug.php
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions modules/g2_import/controllers/admin_g2_import.php
Expand Up @@ -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 = '';
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_advanced_settings.php
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_dashboard.php
Expand Up @@ -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\">" .
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_graphics.php
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_languages.php
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_modules.php
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_sidebar.php
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_theme_options.php
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions modules/gallery/controllers/admin_themes.php
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions modules/recaptcha/controllers/admin_recaptcha.php
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions modules/server_add/controllers/admin_server_add.php
Expand Up @@ -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:{}"));
Expand Down
1 change: 1 addition & 0 deletions modules/tag/controllers/admin_tags.php
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions modules/user/controllers/admin_users.php
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions modules/watermark/controllers/admin_watermarks.php
Expand Up @@ -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");
Expand Down

0 comments on commit f107659

Please sign in to comment.