Sha256: 712791f2a517a538807c47b6dca38c98baeb6d5f01a8f10c14b3c4513f35ea00
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
<% # SUMMARY: Displays a list of comments # # Variables ## Comments to display. REQUIRED. comments = local_assigns[:comments] ## Display links to comments proposals'? Optional, defaults to false. proposal_links = local_assigns[:proposal_links] %> <% if comments.blank? %> <div class="empty-text">— No comments —</div> <% else %> <ul class='proposal-comments'> <% for comment in comments %> <% proposal = comment.proposal %> <% next unless proposal %> <% next unless comment.created_at %> <li> <%= comment.created_at %> - <cite><%= display_link_to comment.email, :mailto => true %></cite> <%= link_to "Destroy", comment_path(comment), :method => :delete, :class => :deletable, :data => { :confirm => "Are you sure you want to delete this message?" } %> <% if proposal_links %> <div class='proposal-title'>Re: <em><%= link_to h("#{proposal.title}"), proposal_path(proposal) %></em> by <%= h proposal.presenter %></div> <% end %> <blockquote> <%= preserve_formatting_of comment.message %> </blockquote> </li> <% end %> </ul> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems