aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-06-13 12:52:52 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-06-13 12:52:52 +0200
commit494288ab9f9370bdf4f7b4ab9990b64f05adbd9d (patch)
treefebd0240d162c61ffd4b1c17a6afd13e0b2fedf9
parent3364c2a2d8ab88703c5566a39df13ef1042f8644 (diff)
downloadvolse-hubzilla-494288ab9f9370bdf4f7b4ab9990b64f05adbd9d.tar.gz
volse-hubzilla-494288ab9f9370bdf4f7b4ab9990b64f05adbd9d.tar.bz2
volse-hubzilla-494288ab9f9370bdf4f7b4ab9990b64f05adbd9d.zip
Add admin page in nav
-rw-r--r--include/nav.php9
-rw-r--r--view/nav.tpl2
2 files changed, 9 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 66fdbc49b..5e50a8b79 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -107,10 +107,15 @@ function nav(&$a) {
$nav['settings'] = array('settings', t('Settings'),"");
$nav['profiles'] = array('profiles', t('Profiles'),"");
$nav['contacts'] = array('contacts', t('Contacts'),"");
-
-
}
+ /**
+ * Admin page
+ */
+ if (is_site_admin()){
+ $nav['admin'] = array('admin/', t('Admin'), "");
+ }
+
/**
*
diff --git a/view/nav.tpl b/view/nav.tpl
index 7e76811d9..79114749a 100644
--- a/view/nav.tpl
+++ b/view/nav.tpl
@@ -16,6 +16,8 @@ $langselector
<a id="nav-search-link" class="nav-link $nav.search.2" href="$nav.search.0">$nav.search.1</a>
<a id="nav-directory-link" class="nav-link $nav.directory.2" href="$nav.directory.0">$nav.directory.1</a>
+{{ if $nav.admin }}<a id="nav-admin-link" class="nav-link $nav.admin.2" href="$nav.admin.0">$nav.admin.1</a>{{ endif }}
+
{{ if $nav.network }}
<a id="nav-network-link" class="nav-commlink $nav.network.2" href="$nav.network.0">$nav.network.1</a>
<span id="net-update" class="nav-ajax-left"></span>