|
32 | 32 | </li> |
33 | 33 | <li role="presentation"><a role="menuitem" class="ui-extra-slide" tabindex="-1" href="#" target="_blank" rel="noopener"><i class="fa fa-tv fa-fw"></i> <%= __('Slide Mode') %></a> |
34 | 34 | </li> |
35 | | - <% if((typeof github !== 'undefined' && github) || (typeof dropbox !== 'undefined' && dropbox) || (typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api'))) { %> |
| 35 | + <% if(enableGitHubGist || enableDropBoxSave || enableGitlabSnippets) { %> |
36 | 36 | <li class="divider"></li> |
37 | 37 | <li class="dropdown-header"><%= __('Export') %></li> |
38 | 38 | <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> |
39 | 39 | </li> |
40 | | - <% if(typeof github !== 'undefined' && github) { %> |
| 40 | + <% if(enableGitHubGist) { %> |
41 | 41 | <li role="presentation"><a role="menuitem" class="ui-save-gist" tabindex="-1" href="#" target="_blank" rel="noopener"><i class="fa fa-github fa-fw"></i> Gist</a> |
42 | 42 | </li> |
43 | 43 | <% } %> |
44 | | - <% if(typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api')) { %> |
| 44 | + <% if(enableGitlabSnippets) { %> |
45 | 45 | <li role="presentation"><a role="menuitem" class="ui-save-snippet" href="#"><i class="fa fa-gitlab fa-fw"></i> Snippet</a> |
46 | 46 | </li> |
47 | 47 | <% } %> |
|
52 | 52 | </li> |
53 | 53 | <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> |
54 | 54 | </li> |
55 | | - <% if(typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api')) { %> |
| 55 | + <% if(enableGitlabSnippets) { %> |
56 | 56 | <li role="presentation"><a role="menuitem" class="ui-import-snippet" href="#"><i class="fa fa-gitlab fa-fw"></i> Snippet</a> |
57 | 57 | </li> |
58 | 58 | <% } %> |
|
134 | 134 | </li> |
135 | 135 | <li role="presentation"><a role="menuitem" class="ui-extra-slide" tabindex="-1" href="#" target="_blank" rel="noopener"><i class="fa fa-tv fa-fw"></i> <%= __('Slide Mode') %></a> |
136 | 136 | </li> |
137 | | - <% if((typeof github !== 'undefined' && github) || (typeof dropbox !== 'undefined' && dropbox) || (typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api'))) { %> |
| 137 | + <% if(enableGitHubGist || enableDropBoxSave || enableGitlabSnippets) { %> |
138 | 138 | <li class="divider"></li> |
139 | 139 | <li class="dropdown-header"><%= __('Export') %></li> |
140 | 140 | <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> |
141 | 141 | </li> |
142 | | - <% if(typeof github !== 'undefined' && github) { %> |
| 142 | + <% if(enableGitHubGist) { %> |
143 | 143 | <li role="presentation"><a role="menuitem" class="ui-save-gist" tabindex="-1" href="#" target="_blank" rel="noopener"><i class="fa fa-github fa-fw"></i> Gist</a> |
144 | 144 | </li> |
145 | 145 | <% } %> |
146 | | - <% if(typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api')) { %> |
| 146 | + <% if(enableGitlabSnippets) { %> |
147 | 147 | <li role="presentation"><a role="menuitem" class="ui-save-snippet" href="#"><i class="fa fa-gitlab fa-fw"></i> Snippet</a> |
148 | 148 | </li> |
149 | 149 | <% } %> |
|
154 | 154 | </li> |
155 | 155 | <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> |
156 | 156 | </li> |
157 | | - <% if(typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api')) { %> |
| 157 | + <% if(enableGitlabSnippets) { %> |
158 | 158 | <li role="presentation"><a role="menuitem" class="ui-import-snippet" href="#"><i class="fa fa-gitlab fa-fw"></i> Snippet</a> |
159 | 159 | </li> |
160 | 160 | <% } %> |
|
0 commit comments