diff options
author | marijus <mario@mariovavti.com> | 2014-04-08 22:07:06 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-04-08 22:07:06 +0200 |
commit | 9f621dac85c1c417b17d031e3ca2798c6b63ece7 (patch) | |
tree | 14697666c99d828f903772ae5bc4cb66373957ca /view/tpl/jot.tpl | |
parent | 95751dddff2b1b7a2074d37a5b3102f256842ae4 (diff) | |
download | volse-hubzilla-9f621dac85c1c417b17d031e3ca2798c6b63ece7.tar.gz volse-hubzilla-9f621dac85c1c417b17d031e3ca2798c6b63ece7.tar.bz2 volse-hubzilla-9f621dac85c1c417b17d031e3ca2798c6b63ece7.zip |
change the way jot tools are displayed/hidden
Diffstat (limited to 'view/tpl/jot.tpl')
-rwxr-xr-x | view/tpl/jot.tpl | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 87a9b721f..b130818d0 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -36,33 +36,39 @@ </div> <div id="profile-jot-submit-wrapper" class="jothidden"> <div id="profile-jot-submit-left" class="btn-group pull-left"> - <button id="wall-image-upload" class="btn btn-default btn-sm" title="{{$upload}}" style="display: {{$visitor}};" > + {{if $visitor}} + <button id="wall-image-upload" class="btn btn-default btn-sm" title="{{$upload}}" > <i class="icon-camera jot-icons"></i> </button> - <button id="wall-file-upload" class="btn btn-default btn-sm" title="{{$attach}}" style="display: {{$visitor}};" > + <button id="wall-file-upload" class="btn btn-default btn-sm" title="{{$attach}}" > <i id="wall-file-upload" class="icon-paper-clip jot-icons"></i> </button> - <button id="profile-link-wrapper" class="btn btn-default btn-sm" style="display: {{$visitor}};" title="{{$weblink}}" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"> + <button id="profile-link-wrapper" class="btn btn-default btn-sm" title="{{$weblink}}" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"> <i id="profile-link" class="icon-link jot-icons"></i> </button> - <button id="profile-video-wrapper" class="btn btn-default btn-sm" style="display: {{$visitor}};" title="{{$video}}" onclick="jotVideoURL();return false;"> + <button id="profile-video-wrapper" class="btn btn-default btn-sm" title="{{$video}}" onclick="jotVideoURL();return false;"> <i id="profile-video" class="icon-facetime-video jot-icons"></i> </button> - <button id="profile-audio-wrapper" class="btn btn-default btn-sm" style="display: {{$visitor}};" title="{{$audio}}" onclick="jotAudioURL();return false;"> + <button id="profile-audio-wrapper" class="btn btn-default btn-sm" title="{{$audio}}" onclick="jotAudioURL();return false;"> <i id="profile-audio" class="icon-volume-up jot-icons"></i> </button> <button id="profile-nolocation-wrapper" class="btn btn-default btn-sm" style="display: none;" title="{{$noloc}}" onclick="jotClearLocation();return false;"> <i id="profile-nolocation" class="icon-circle-blank jot-icons"></i> </button> - <button id="profile-location-wrapper" class="btn btn-default btn-sm" style="display: {{$visitor}};" title="{{$setloc}}" onclick="jotGetLocation();return false;"> + <button id="profile-location-wrapper" class="btn btn-default btn-sm" title="{{$setloc}}" onclick="jotGetLocation();return false;"> <i id="profile-location" class="icon-globe jot-icons"></i> </button> - <button id="profile-expire-wrapper" class="btn btn-default btn-sm" style="display: {{$feature_expire}};" title="{{$expires}}" onclick="jotGetExpiry();return false;"> + {{/if}} + {{if $feature_expire}} + <button id="profile-expire-wrapper" class="btn btn-default btn-sm" title="{{$expires}}" onclick="jotGetExpiry();return false;"> <i id="profile-expires" class="icon-eraser jot-icons"></i> </button> - <button id="profile-encrypt-wrapper" class="btn btn-default btn-sm" style="display: {{$feature_encrypt}};" title="{{$encrypt}}" onclick="red_encrypt('{{$cipher}}','#profile-jot-text',$('#profile-jot-text').val());return false;"> + {{/if}} + {{if $feature_encrypt}} + <button id="profile-encrypt-wrapper" class="btn btn-default btn-sm" title="{{$encrypt}}" onclick="red_encrypt('{{$cipher}}','#profile-jot-text',$('#profile-jot-text').val());return false;"> <i id="profile-encrypt" class="icon-key jot-icons"></i> </button> + {{/if}} </div> <div id="profile-rotator-wrapper" style="display: {{$visitor}};" > <div id="profile-rotator"></div> |