summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorJason Croft2016-05-11 21:12:48 -0400
committerJason Croft2016-05-11 21:12:48 -0400
commitde998c4a0fcbadc4c0353c8e65d5769c271cfcd9 (patch)
tree55be1822e6f949d210c5550d19f3b5dcb08cd63c /public/views
parentad79b581bda79ef2be0d6ad1a192fc7d0afef2f0 (diff)
Check to make sure GitLab is configured before showing import option.
Diffstat (limited to 'public/views')
-rw-r--r--public/views/header.ejs4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/views/header.ejs b/public/views/header.ejs
index 18369ba9..051817dc 100644
--- a/public/views/header.ejs
+++ b/public/views/header.ejs
@@ -54,8 +54,10 @@
</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>
+ <% if(typeof gitlab !== 'undefined' && gitlab) { %>
<li role="presentation"><a role="menuitem" class="ui-import-snippet" href="#" data-toggle="modal" data-target="#snippetImportModal"><i class="fa fa-gitlab fa-fw"></i> Snippet</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>
</li>
<li class="divider"></li>
@@ -145,8 +147,10 @@
</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>
+ <% if(typeof gitlab !== 'undefined' && gitlab) { %>
<li role="presentation"><a role="menuitem" class="ui-import-snippet" href="#" data-toggle="modal" data-target="#snippetImportModal"><i class="fa fa-gitlab fa-fw"></i> Snippet</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>
</li>
<li class="divider"></li>