diff options
author | Callan Barrett <wizzomafizzo@gmail.com> | 2008-01-12 23:43:05 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-20 07:21:20 +0100 |
commit | 379e16eebda1ba9bfc45de486e99e480843d086a (patch) | |
tree | d2cd1ea7bd79657b475422ce95aea6b81b8e6894 /web/html | |
parent | d4b07f2b334dada626e4743951cdd6adab87f62e (diff) | |
download | aur-379e16eebda1ba9bfc45de486e99e480843d086a.tar.gz aur-379e16eebda1ba9bfc45de486e99e480843d086a.tar.xz |
Support for verbose page titles
Verbose page titles again
Adds support for more verbose page titles based on current
page and action by user and removes sort by options from
search form as they're obsolete by column links.
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/account.php | 2 | ||||
-rw-r--r-- | web/html/index.php | 5 | ||||
-rw-r--r-- | web/html/packages.php | 19 | ||||
-rw-r--r-- | web/html/pkgsubmit.php | 2 |
4 files changed, 21 insertions, 7 deletions
diff --git a/web/html/account.php b/web/html/account.php index 9caada42..9c1eb313 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -8,7 +8,7 @@ include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages include("account_po.inc"); # use some form of this for i18n support set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in -html_header(); # print out the HTML header +html_header(__("Accounts")); # print out the HTML header # Main page processing here diff --git a/web/html/index.php b/web/html/index.php index 99cccbc6..617b16a3 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -7,10 +7,7 @@ include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages include("aur.inc"); set_lang(); check_sid(); - -# Any cookies have been sent, can now display HTML -# -html_header(); +html_header(__("Home")); # Big Top Level Table (Table 1) echo "<div class=\"pgbox\">\n"; diff --git a/web/html/packages.php b/web/html/packages.php index bc398ee5..1600e41c 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -7,7 +7,24 @@ include("pkgfuncs.inc"); # package specific functions include("search_po.inc"); # use some form of this for i18n support set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in -html_header(); # print out the HTML header + +# set the title to something useful depending on +# what "page" we're on +# +if (isset($_GET['ID'])) { + $id = pkgname_from_id($_GET['ID']); + if (!empty($id)) { + $title = $id; + } +} else if (isset($_GET['K'])) { + $title = "Search: " . $_GET['K']; +} else if (isset($_GET['do_MyPackages'])) { + $title = __("My Packages"); +} else { + $title = __("Packages"); +} + +html_header($title); # print out the HTML header # enable debugging # diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 638654bc..801348b1 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -8,7 +8,7 @@ include("pkgfuncs.inc"); # package functions include("config.inc"); # configuration file with dir locations set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in -html_header(); # print out the HTML header +html_header("Submit"); # print out the HTML header echo "<div class=\"pgbox\">\n"; echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Submit")."</span></div>\n"; echo " <div class=\"pgboxbody\">\n"; |