]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/events_js.tpl
Merge pull request #6225 from annando/http-error
[friendica.git] / view / theme / frio / templates / events_js.tpl
index cdf1636fe391a687e41b9116006acaf1838bd48d..3866282a33e19e9438acf9d0057352406f105876 100644 (file)
@@ -3,11 +3,13 @@
        {{include file="section_title.tpl" title=$title pullright=1}}
 
        {{* The link to create a new event *}}
+       {{if $new_event.0}}
        <div class="pull-right" id="new-event-link">
-               <button type="button" class="btn-link" onclick="addToModal('{{$new_event.0}}')" title="{{$new_event.1}}" data-toggle="tooltip">
-                       <i class="faded-icon fa fa-plus"></i>
+               <button type="button" class="btn-link page-action faded-icon" onclick="addToModal('{{$new_event.0}}')" title="{{$new_event.1|escape}}" data-toggle="tooltip">
+                       <i class="fa fa-plus"></i>
                </button>
        </div>
+       {{/if}}
 
        {{* We create our own fullcallendar header (with title & calendar view *}}
        <div id="fc-header" class="clear">
@@ -38,9 +40,9 @@
 
                {{* The buttons to change the month/weeks/days *}}
                <div id="fc-fc-header-left" class="btn-group">
-                       <button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$previous.1}}"><i class="fa fa-angle-up" aria-hidden="true"></i></button>
-                       <button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next.1}}"><i class="fa fa-angle-down" aria-hidden="true"></i></button>
-                       <button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye" aria-hidden="true"></i></button>
+                       <button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$previous.1|escape}}"><i class="fa fa-angle-up" aria-hidden="true"></i></button>
+                       <button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next.1|escape}}"><i class="fa fa-angle-down" aria-hidden="true"></i></button>
+                       <button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);" title="{{$today|escape}}"><i class="fa fa-bullseye" aria-hidden="true"></i></button>
                </div>
 
                {{* The title (e.g. name of the mont/week/day) *}}