summaryrefslogtreecommitdiffstats
path: root/web/template/header.php
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-01-15 07:54:23 +0100
committerDan McGee <dan@archlinux.org>2008-01-20 07:21:21 +0100
commit8ab823728c729e9780820bf15aad3585078c8342 (patch)
tree4873eec0eb010b46836c07f73d78b842ce679705 /web/template/header.php
parent2f56688b56757a3365ee4cc48f1bd139216c74f9 (diff)
downloadaur-8ab823728c729e9780820bf15aad3585078c8342.tar.gz
aur-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/header.php')
-rw-r--r--web/template/header.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 3c35523e..52f7242c 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",