Sha256: 9b5bf8b20c1c18e4cba871a757ec6d780241f4ddbc2492252c6a7e0d9b341373
Contents?: true
Size: 1.81 KB
Versions: 2
Compression:
Stored size: 1.81 KB
Contents
<div class="tag"> <h2><%= h @title %></h2> <div class="body"> <% unless (pages = CortexReaver::Page.tagged_with(@tags)).empty? %> <div class="pages"> <h3>Pages</h3> <ul> <% pages.each do |page| %> <li><%= A(page.title, :href => page.url) %></li> <% end %> </ul> </div> <% end %> <% unless (projects = CortexReaver::Project.tagged_with(@tags)).empty? %> <div class="projects"> <h3>Projects</h3> <ul> <% projects.each do |project| %> <li><%= A(project.title, :href => project.url) %></li> <% end %> </ul> </div> <% end %> <% unless (journals = CortexReaver::Journal.tagged_with(@tags)).empty? %> <div class="journals"> <h3>Journals</h3> <ul> <% journals.each do |journal| %> <li><%= A(journal.title, :href => journal.url) %></li> <% end %> </ul> </div> <% end %> <% unless (photographs = CortexReaver::Photograph.tagged_with(@tags)).empty? %> <div class="photographs"> <h3>Photographs</h3> <%= render_template '../photographs/grid.rhtml', :photographs => photographs %> </div> <% end %> </div> <div class="footer"> <ul class="actions"> <% if @tags.size == 1 and user.can_edit? @tags.first %> <li><a href="/tags/edit/<%= @tags.first.id %>"> <img src="/images/edit.gif" class="icon" alt="comment" /> Edit </a></li> <% end %> <% if @tags.size == 1 and user.can_delete? @tags.first %> <li><%= A '<img src="/images/delete.gif" class="icon" alt="delete" /> Delete', :href => "/tags/delete/#{@tags.first.id}", :onclick => "return confirm('Are you sure you want to delete this tag?');" %></li> <% end %> </ul> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cortex-reaver-0.0.9 | lib/cortex_reaver/view/tags/show.rhtml |
cortex-reaver-0.0.8 | lib/cortex_reaver/view/tags/show.rhtml |