Sha256: ea374370ca1a7bbbaf3aab5bdc1f172b94e0442f04e4f97d42262d4e6b03f391

Contents?: true

Size: 920 Bytes

Versions: 7

Compression:

Stored size: 920 Bytes

Contents

<%-
comment ||= @comment
return if comment.user.nil?
truncate = false
youtube_videos = comment.comment.scan(/\[youtube:+.+\]/)
c = comment.comment.dup.gsub(/\[youtube:+.+\]/, '')
-%>

<div id="<%= comment.dom_id %>" class="comment_holder">
  <%= icon comment.user, :small, :class => 'left avatar_on_comment' %> 
  <div class="date_details">
    <%= _("%{comment_age} ago %{user_name_link} wrote :") % {:comment_age => time_ago_in_words(comment.created_at), :user_name_link => (link_to h(comment.user.full_name), profile_path(comment.user))} %> 
  </div>
  <div class="comment_message">
    <%= sanitize(textilize(c)) %>
		<%= x_comment_link(comment) -%>
  </div>
	
  <% unless youtube_videos.empty? %>
    <strong><%= pluralize youtube_videos.size, 'video' %>:</strong><br/>
    <% youtube_videos.each do |o| %>
    <%= tb_video_link(o.gsub!(/\[youtube\:|\]/, '')) %>
  <% end
  end %>
  <div class="clear"></div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muck-comments-0.1.1 app/views/comments/_comment.html.erb
muck-comments-0.1.2 app/views/comments/_comment.html.erb
muck-comments-0.1.3 app/views/comments/_comment.html.erb
muck-comments-0.1.4 app/views/comments/_comment.html.erb
muck-comments-0.1.5 app/views/comments/_comment.html.erb
muck-comments-0.1.6 app/views/comments/_comment.html.erb
muck-comments-0.1.0 app/views/comments/_comment.html.erb