From 946beb61910409abe592355c9bcdc88a70e514a3 Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Tue, 10 Mar 2015 21:42:26 +0100 Subject: View upload photo button only if you have permission. Check if post_photos permission is available otherwise hide the photo upload button. Or should we show the button and just disable it with a title, about missing permission to upload photos? In comments we use the same icon, but just add [img] bb-code. Should we provide this if no permission to upload photos. Do we need different icons for [img] and photo upload buttons? --- view/tpl/jot.tpl | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'view') diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 229ef0277..05aa76d67 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -1,5 +1,5 @@ -
-
+
+ @@ -16,21 +16,21 @@ {{$mimeselect}} {{$layoutselect}} {{if $id_select}} -
+
{{$id_seltext}} {{$id_select}} -
+
{{/if}} -