]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/photo_view.tpl
Move translation strings in their own array for confirm templates
[friendica.git] / view / theme / frio / templates / photo_view.tpl
index 1d39b16eefac7bfa03521f076dc393dedc4b600c..de45eecff0c5a02b2542cee1f35bfcf4a54990ae 100644 (file)
                </a>
        </div>
        <div class="pull-right" id="photo-edit-link-wrap">
-               {{if $tools}}
+{{if $tools}}
+       {{if $tools.view}}
+               <span class="icon-padding"> </span>
+               <a id="photo-edit-link" href="{{$tools.view.0}}" title="{{$tools.view.1}}" data-toggle="tooltip">
+                       <i class="page-action faded-icon fa fa-image"></i>
+               </a>
+       {{/if}}
+       {{if $tools.edit}}
                <span class="icon-padding"> </span>
                <a id="photo-edit-link" href="{{$tools.edit.0}}" title="{{$tools.edit.1}}" data-toggle="tooltip">
                        <i class="page-action faded-icon fa fa-pencil"></i>
                </a>
+       {{/if}}
+       {{if $tools.delete}}
+               <span class="icon-padding"> </span>
+               <a id="photo-edit-link" href="{{$tools.delete.0}}" title="{{$tools.delete.1}}" data-toggle="tooltip">
+                       <i class="page-action faded-icon fa fa-trash"></i>
+               </a>
+       {{/if}}
+       {{if $tools.profile}}
                <span class="icon-padding"> </span>
                <a id="photo-toprofile-link" href="{{$tools.profile.0}}" title="{{$tools.profile.1}}" data-toggle="tooltip">
                        <i class="page-action faded-icon fa fa-user"></i>
                </a>
-               {{/if}}
-               {{if $lock}}
+       {{/if}}
+       {{if $tools.lock}}
                <span class="icon-padding"> </span>
-               <a id="photo-lock-link" onclick="lockview(event,'photo/{{$id}}');" title="{{$lock}}" data-toggle="tooltip">
+               <a id="photo-lock-link" onclick="lockview(event, 'photo', {{$id}});" title="{{$tools.lock}}" data-toggle="tooltip">
                        <i class="page-action faded-icon fa fa-lock"></i>
                </a>
-               {{/if}}
+       {{/if}}
+{{/if}}
        </div>
        <div class="clear"></div>
 
@@ -54,7 +70,7 @@
                <div id="photo-tags">{{$tags.title}}
                        {{foreach $tags.tags as $t}}
                        <span class="category label btn-success sm">
-                               <span class="p-category">{{$t.name}}</span>
+                               <span class="p-category">{{$t.name nofilter}}</span>
                                {{if $t.removeurl}} <a href="{{$t.removeurl}}">(X)</a> {{/if}}
                        </span>
                        {{/foreach}}
                {{/if}}
 
                {{* The part for editing the photo - only available for the edit subpage *}}
-               {{if $edit}}{{$edit}}{{/if}}
+               {{if $edit}}{{$edit nofilter}}{{/if}}
 
                {{if $likebuttons}}
                <div id="photo-like-div">
-                       {{$likebuttons}}
-                       {{$like}}
-                       {{$dislike}}
+                       {{$likebuttons nofilter}}
+                       {{$like nofilter}}
+                       {{$dislike nofilter}}
                </div>
                {{/if}}
                <hr>
        </div>
 
+{{if !$edit}}
        {{* Insert the comments *}}
        <div id="photo-comment-wrapper-{{$id}}" class="photo-comment-wrapper">
-               {{$comments}}
+               {{$comments nofilter}}
        </div>
 
        {{$paginate nofilter}}
+{{/if}}
 </div>