Permalink
Browse files

change uses to look right

  • Loading branch information...
1 parent 4b40e4c commit 07e6cbbf1d32982f53acdc9d5a0663107f3efd45 @ctide ctide committed Jan 3, 2012
Showing with 12 additions and 1 deletion.
  1. +4 −0 Apps/dashboardv3/static/css/exploreApps.css
  2. +8 −1 Apps/dashboardv3/views/iframe/registryApp.ejs
@@ -197,3 +197,7 @@ input[type=button].install {
.full-app-details .version,.last-update {
font-weight: bold;
}
+
+.full-app-details .uses a {
+ display: inline;
+}
@@ -26,7 +26,14 @@
<p class="title"><%= app.repository.title %></p>
<p class="author"><a class="orange parentLink" href='explore#exploreApps&author&author=<%= app.repository.author %>'>by <%= app.repository.author %></a></p>
<% if (app.repository.uses && app.repository.uses.types) { %>
- <p class="uses">Uses <%= app.repository.uses.types.join('+ ') %></p>
+ <p class="uses">Uses
+ <% for (var j = 0; j < app.repository.uses.types.length; j++) { %>
+ <% if (j > 0) { %>, <% } %>
+ <a class='blue parentLink' href='explore#exploreApps&filter&types[]=<%= app.repository.uses.types[j] %>'>
+ <%= app.repository.uses.types[j][0].toUpperCase() + app.repository.uses.types[j].slice(1) %>
+ </a>
+ <% } %>
+ </p>
<% } %>
<div class="description"><%= app.repository.desc %></div>
<div class='version'>version <%= app['dist-tags'].latest %></div>

0 comments on commit 07e6cbb

Please sign in to comment.