Sha256: d158392c406fdd7884d44bae9147b7c12c59ff5c0cc65f220fada68425428215

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

<% # Clients of this partial must supply the following variables:
   # comment
   # user
%>
  
<div id="comment_<%= comment.id.to_s %>_div" class="comment">
  <div id="comment_<%= comment.id.to_s %>_top_div" class="comment_div">
    <span id="comment_<%= comment.id.to_s %>_commontator_span" class="comment_commontator">
      <% if user && user.commontator_config.user_name_clickable %>
        <%= link_to commontator_name(comment.creator), main_app.polymorphic_path(comment.creator) %>
      <% else %>
        <%= commontator_name(comment.creator) %>
      <% end %>
    </span>
    <span id="comment_<%= comment.id.to_s %>_actions_span" class="comment_actions">
      <%= render :partial => 'commontator/comments/actions',
                 :locals => {:comment => comment,
                             :user => user} %>
    </span>
  </div>
  <div id="comment_<%= comment.id.to_s %>_middle_div" class="comment_div">
    <span id="comment_<%= comment.id.to_s %>_gravatar_image_span" class="comment_gravatar_image">
      <%= commontator_gravatar_image comment.creator %>
    </span>
    <span id="comment_<%= comment.id.to_s %>_votes_span" class="comment_votes">
      <%= render :partial => 'commontator/comments/votes',
                 :locals => {:comment => comment,
                             :user => user} %>
    </span>
    <div id="comment_<%= comment.id.to_s %>_body_div" class="comment_body">
      <%= render :partial => 'commontator/comments/body',
                 :locals => {:comment => comment} %>
    </div>
  </div>
  <div id="comment_<%= comment.id.to_s %>_bottom_div" class="comment_div">
    <span id="comment_<%= comment.id.to_s %>_created_timestamp_span" class="comment_timestamp">
      <%= comment.created_timestamp %>
    </span>
    <br/>
    <span id="comment_<%= comment.id.to_s %>_updated_timestamp_span" class="comment_timestamp">
    <% if comment.is_modified? %>
      <%= comment.updated_timestamp %><%= " by #{commontator_name(comment.editor)}" %>
    <% end %>
    </span>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commontator-4.2.2 app/views/commontator/comments/_show.html.erb
commontator-4.2.1 app/views/commontator/comments/_show.html.erb
commontator-4.2.0 app/views/commontator/comments/_show.html.erb
commontator-4.1.2 app/views/commontator/comments/_show.html.erb
commontator-4.1.1 app/views/commontator/comments/_show.html.erb