1
0
Fork 0

Show link to download documentation for all non-development apps

This commit is contained in:
Lucas Dohmen 2014-12-13 17:43:25 +01:00 committed by Michael Hackstein
parent 8c08e6c8c6
commit c0b6e801b1
1 changed files with 7 additions and 1 deletions

View File

@ -48,7 +48,13 @@
<dt>Links</dt> <dt>Links</dt>
<dd> <dd>
<ul> <ul>
<li>Download API Documentation</li> <% if (!attributes.development) { %>
<li>
<a href="http://localhost:8529/_db/_system/_admin/aardvark/swagger/<%= encodeURIComponent(encodeURIComponent(attributes.mount)) %>" target="_blank">
Download API Documentation
</a>
</li>
<% } %>
<% if (attributes.repository && attributes.repository.type == 'git') { %> <% if (attributes.repository && attributes.repository.type == 'git') { %>
<li><a href="<%= attributes.repository.url %>" target="_blank">Git Repository</a></li> <li><a href="<%= attributes.repository.url %>" target="_blank">Git Repository</a></li>
<% } %> <% } %>