Skip to content

Commit

Permalink
Add WT analyze button to the KNB's metadatacontrols template
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasThelen committed Mar 27, 2019
1 parent 8a948d7 commit f4f49a3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/js/themes/knb/templates/metadataControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
<div class="controls btn-toolbar">
<a class="btn copy" data-clipboard-text="<%=citation%>"><i class="icon icon-copy"></i> Copy Citation</a>

<% if (showWholetale){ %>
<div class="analyze dropdown">
<a class="btn tooltip-this"
type="button"
data-toggle="dropdown"
data-placement="top"
data-trigger="hover"
data-delay="700"
data-container="body"
data-title="Choose an analysis environment to interactively explore this dataset online using Whole Tale.">
<i class="icon-bar-chart"></i>
<span class="analyze-text">Analyze</span>
<span class="caret"></span>
</a>
<ul class="analyze dropdown-menu"></ul>
</div>
<% } %>

<% if (mdqUrl){ %>
<a href="<%= MetacatUI.root %>/quality/s=knb.suite.1/<%=encodeURIComponent(model.id)%>" class="btn"><i class="icon icon-dashboard"></i> Quality report</a>
<% } %>
Expand Down

0 comments on commit f4f49a3

Please sign in to comment.