Przeglądaj źródła

Attribute HTML chnages

master
Peter J. Jones 11 lat temu
rodzic
commit
b7a836ffdf
1 zmienionych plików z 16 dodań i 14 usunięć
  1. 16
    14
      app/views/comments/_attributes.html.erb

+ 16
- 14
app/views/comments/_attributes.html.erb Wyświetl plik

@@ -1,24 +1,26 @@
<div class="attributes">
<div class="author">
<% if Banter::Config.use_gravatar %>
<% sum = Digest::MD5.hexdigest((comment.author_email || 'fakeemail').downcase.gsub(/\s+/, '')) %>
<img class="avatar" src="http://www.gravatar.com/avatar/<%= sum %>.jpg?r=g&s=48"/>
<% end %>
<div class="avatar"
<% if Banter::Config.use_gravatar %>
<% sum = Digest::MD5.hexdigest((comment.author_email || 'fakeemail').downcase.gsub(/\s+/, '')) %>
<img class="avatar" src="http://www.gravatar.com/avatar/<%= sum %>.jpg?r=g&s=48"/>
<% end %>
</div>
<div class="attributes">
<span class="author">
<% if !comment.author_url.blank? %>
<p><%= link_to(h(comment.author_name), comment.author_url) %></p>
<%= link_to(h(comment.author_name), comment.author_url) %>
<% else %>
<p><%= h(comment.author_name) %></p>
<%= h(comment.author_name) %>
<% end %>
</div>
</span>

<div class="date">
<%= h(comment.created_at.to_s(Banter::Config.date_format)) %>
</div>
<span class="date">
said on <%= h(comment.created_at.to_s(Banter::Config.date_format)) %>:
</span>
<div class="reply-link">
<span class="reply-link">
<%= comments_reply_link('Reply', parent, (comment.reply_id ? comment.reply_id : comment)) %>
</div>
</span>
</div>

<div class="body">

Ładowanie…
Anuluj
Zapisz