Sha256: e7816cda5b2aefa509d9e2a2b11f150eddad708acc38433862cc6038ae097083
Contents?: true
Size: 927 Bytes
Versions: 6
Compression:
Stored size: 927 Bytes
Contents
<div class="tags"> <h2>Tags</h2> <table> <thead> <tr> <th>Tag</th> <% if admin? %> <th></th> <th></th> <% end %> <th>Popularity</th> </tr> </thead> <tbody> <% max_count = (@tags.order(:count).reverse.first || []).count %> <% @tags.each do |tag| %> <tr> <td class="title"><%= A(tag.title, :href => tag.url) %></td> <% if admin? %> <td><a href="/tags/edit/<%= tag.name %>">Edit</a></td> <td><%= A 'Delete', :href => "/tags/delete/#{tag.name}", :onclick => "return confirm('Are you sure you want to delete this tag?');" %></td> <% end %> <td class="count" style="width: <%= admin? ? 60 : 80 %>%"><div class="percent-bar" style="width: <%= tag.count.to_f / max_count * 100 %>%"><%= tag.count %></div></td> </tr> <% end %> </tbody> </table> </div>
Version data entries
6 entries across 6 versions & 1 rubygems