diff options
author | Callan Barrett <wizzomafizzo@gmail.com> | 2008-01-15 15:54:23 +0900 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-20 00:21:21 -0600 |
commit | 8ab823728c729e9780820bf15aad3585078c8342 (patch) | |
tree | 4873eec0eb010b46836c07f73d78b842ce679705 /web/template | |
parent | 2f56688b56757a3365ee4cc48f1bd139216c74f9 (diff) | |
download | aurweb-8ab823728c729e9780820bf15aad3585078c8342.tar.xz |
More cleanup, add TU link to header
Cleans up links on front page, adds a TU link to the header to the voting
application, fixes some titles and styling for logged in text
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/header.php | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/web/template/header.php b/web/template/header.php index 3c35523..52f7242 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -31,10 +31,17 @@ <ul> <?php if (isset($_COOKIE["AURSID"])) { - echo ' <li><a href="/logout.php">'.__("Logout")."</a></li>\n"; - echo ' <li><a href="/pkgsubmit.php">'.__("Submit")."</a></li>\n"; - echo ' <li><a href="/packages.php?do_MyPackages=1">' - .__("My Packages")."</a></li>\n"; +?> + <li><a href="/logout.php"><?php print __("Logout"); ?></a></li> + <li><a href="/pkgsubmit.php"><?php print __("Submit"); ?></a></li> + <li><a href="/packages.php?do_MyPackages=1"><?php print __("My Packages"); ?></a></li> +<?php + if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User" + || account_from_sid($_COOKIE["AURSID"]) == "Developer") { +?> + <li><a href="/tu.php"><?php print __("Trusted User"); ?></a></li> +<?php + } } ?> <li><a href="http://archlinux.org/mailman/listinfo/aur-general"> @@ -59,8 +66,8 @@ foreach ($SUPPORTED_LANGS as $lang => $lang_name) { <li>Lang: </li> </ul> </div> - <br /> - <div style="text-align: right; padding-right: 10px"> + <br /> + <div style="text-align: right; padding-right: 10px; clear: right"> <?php if (isset($_COOKIE["AURSID"])) { print __("Logged-in as: %h%s%h", |