diff options
author | hubzilla <git@macgirvin.com> | 2016-06-13 10:15:09 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-13 10:15:09 +1000 |
commit | b18b9464a4b830ec50412bb688727d7170a90398 (patch) | |
tree | dc762bfa1192ac1be695f7d713fdb51cbce1ed58 /view/tpl/jot.tpl | |
parent | 81b3c5971119c5ceb2ae8cbfee71ad548a531140 (diff) | |
parent | 71d4f65cb21875176da2b77610a9a6cc86d10384 (diff) | |
download | volse-hubzilla-b18b9464a4b830ec50412bb688727d7170a90398.tar.gz volse-hubzilla-b18b9464a4b830ec50412bb688727d7170a90398.tar.bz2 volse-hubzilla-b18b9464a4b830ec50412bb688727d7170a90398.zip |
Merge pull request #416 from anaqreon/embedphotos
Add embed photos button with album browser to new post editor
Diffstat (limited to 'view/tpl/jot.tpl')
-rwxr-xr-x | view/tpl/jot.tpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 685706026..490349a04 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -79,6 +79,11 @@ <i id="profile-link" class="fa fa-link jot-icons"></i> </button> {{/if}} + {{if $embedPhotos}} + <button id="embed-photo-wrapper" class="btn btn-default btn-sm" title="{{$embedPhotos}}" onclick="initializeEmbedPhotoDialog();return false;"> + <i id="embed-photo" class="fa fa-file-image-o jot-icons"></i> + </button> + {{/if}} </div> <div class="btn-group hidden-xs hidden-sm"> {{if $setloc}} @@ -225,6 +230,30 @@ </div><!-- /.modal --> {{/if}} +{{if $embedPhotos}} +<div class="modal" id="embedPhotoModal" tabindex="-1" role="dialog" aria-labelledby="embedPhotoLabel" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h4 class="modal-title" id="embedPhotoModalLabel">{{$embedPhotosModalTitle}}</h4> + </div> + <div class="modal-body" id="embedPhotoModalBody" > + <div id="embedPhotoModalBodyAlbumListDialog" class="hide"> + <div id="embedPhotoModalBodyAlbumList"></div> + </div> + <div id="embedPhotoModalBodyAlbumDialog" class="hide"> + </div> + </div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">{{$embedPhotosModalCancel}}</button> + <button id="embed-photo-OKButton" type="button" class="btn btn-primary">{{$embedPhotosModalOK}}</button> + </div> + </div><!-- /.modal-content --> + </div><!-- /.modal-dialog --> +</div><!-- /.modal --> +{{/if}} + {{if $content || $attachment || $expanded}} <script>initEditor();</script> {{/if}} |