aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-06 22:28:30 -0700
committerfriendica <info@friendica.com>2012-06-06 22:28:30 -0700
commit3b49035636a230f2b91d26686ba7c61a16df532f (patch)
tree0c5d7db39796b0d7fdb021525db0f459f28ab34e
parentdd001e32f43090171b39fb0fefc8e2f5a658b63d (diff)
downloadvolse-hubzilla-3b49035636a230f2b91d26686ba7c61a16df532f.tar.gz
volse-hubzilla-3b49035636a230f2b91d26686ba7c61a16df532f.tar.bz2
volse-hubzilla-3b49035636a230f2b91d26686ba7c61a16df532f.zip
admin page untranslated strings, remove empty list element for update
-rw-r--r--mod/admin.php3
-rw-r--r--view/admin_aside.tpl8
2 files changed, 8 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 6b1a53a30..56f88a489 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -117,6 +117,9 @@ function admin_content(&$a) {
$t = get_markup_template("admin_aside.tpl");
$a->page['aside'] .= replace_macros( $t, array(
'$admin' => $aside,
+ '$admtxt' => t('Admin'),
+ '$plugadmtxt' => t('Plugin Features'),
+ '$logtxt' => t('Logs'),
'$h_pending' => t('User registrations waiting for confirmation'),
'$admurl'=> $a->get_baseurl(true)."/admin/"
));
diff --git a/view/admin_aside.tpl b/view/admin_aside.tpl
index f25a1eb4b..ca1f4985c 100644
--- a/view/admin_aside.tpl
+++ b/view/admin_aside.tpl
@@ -10,7 +10,7 @@
});
});
</script>
-<h4><a href="$admurl">Admin</a></h4>
+<h4><a href="$admurl">$admtxt</a></h4>
<ul class='admin linklist'>
<li class='admin link button $admin.site.2'><a href='$admin.site.0'>$admin.site.1</a></li>
<li class='admin link button $admin.users.2'><a href='$admin.users.0'>$admin.users.1</a><span id='pending-update' title='$h_pending'></span></li>
@@ -19,13 +19,15 @@
<li class='admin link button $admin.dbsync.2'><a href='$admin.dbsync.0'>$admin.dbsync.1</a></li>
</ul>
+{{ if $admin.update }}
<ul class='admin linklist'>
<li class='admin link button $admin.update.2'><a href='$admin.update.0'>$admin.update.1</a></li>
<li class='admin link button $admin.update.2'><a href='https://kakste.com/profile/inthegit'>Important Changes</a></li>
</ul>
+{{ endif }}
-{{ if $admin.plugins_admin }}<h4>Plugins</h4>{{ endif }}
+{{ if $admin.plugins_admin }}<h4>$plugadmtxt</h4>{{ endif }}
<ul class='admin linklist'>
{{ for $admin.plugins_admin as $l }}
<li class='admin link button $l.2'><a href='$l.0'>$l.1</a></li>
@@ -33,7 +35,7 @@
</ul>
-<h4>Logs</h4>
+<h4>$logtxt</h4>
<ul class='admin linklist'>
<li class='admin link button $admin.logs.2'><a href='$admin.logs.0'>$admin.logs.1</a></li>
</ul>