mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Hide Dropbox and Google Drive in Import/ Export when disabled
This commit is contained in:
parent
fa50745a8d
commit
d7648e9cea
5 changed files with 43 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
<nav class="navbar navbar-default navbar-fixed-top unselectable hidden-print">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<span class="pull-right" style="margin-top: 17px; color: #777;">
|
||||
<span class="pull-right" style="margin-top: 17px; color: #777;">
|
||||
<div class="visible-xs"> </div>
|
||||
<div class="visible-sm"> </div>
|
||||
<div class="visible-md"> </div>
|
||||
|
@ -33,21 +33,31 @@
|
|||
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<% if(googleDrive || googleDrive || github) { %>
|
||||
<li class="dropdown-header">Export</li>
|
||||
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-upload fa-fw"></i> Google Drive</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof github !== 'undefined' && github) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-gist" tabindex="-1" href="#" target="_blank"><i class="fa fa-github fa-fw"></i> Gist</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<li class="divider"></li>
|
||||
<% } %>
|
||||
<li class="dropdown-header">Import</li>
|
||||
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-download fa-fw"></i> Google Drive</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-gist" href="#" data-toggle="modal" data-target="#gistImportModal"><i class="fa fa-github fa-fw"></i> Gist</a>
|
||||
</li>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-clipboard" href="#" data-toggle="modal" data-target="#clipboardModal"><i class="fa fa-clipboard fa-fw"></i> Clipboard</a>
|
||||
|
@ -118,21 +128,31 @@
|
|||
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<% if(googleDrive || googleDrive || github) { %>
|
||||
<li class="dropdown-header">Export</li>
|
||||
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-upload fa-fw"></i> Google Drive</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof github !== 'undefined' && github) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-save-gist" tabindex="-1" href="#" target="_blank"><i class="fa fa-github fa-fw"></i> Gist</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<li class="divider"></li>
|
||||
<% } %>
|
||||
<li class="dropdown-header">Import</li>
|
||||
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-download fa-fw"></i> Google Drive</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-gist" href="#" data-toggle="modal" data-target="#gistImportModal"><i class="fa fa-github fa-fw"></i> Gist</a>
|
||||
</li>
|
||||
<li role="presentation"><a role="menuitem" class="ui-import-clipboard" href="#" data-toggle="modal" data-target="#clipboardModal"><i class="fa fa-clipboard fa-fw"></i> Clipboard</a>
|
||||
|
@ -148,4 +168,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="ui-spinner unselectable hidden-print"></div>
|
||||
<div class="ui-spinner unselectable hidden-print"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue