cirandas.net

ref: master

plugins/organization_ratings/views/shared/_user_rating_container.html.erb


<% extend RatingsHelper %>
<%= link_to profile_image(user_rate.person, :portrait), user_rate.person.url %>
<%= link_to user_rate.person.name, user_rate.person.url %>
<%= time_ago_in_words(user_rate.created_at) %>
<% (1..5).each do |rate_number| %> <% if rate_number <= user_rate.value %>
<% else %>
<% end %> <% end %>
<%= status_message_for(user, user_rate) %> <% if user_rate.comment.present? %>

<%= user_rate.comment.body %>

<% elsif user && user.is_admin? %> <% rating_task = CreateOrganizationRatingComment.with_rating(user_rate) %>

<%= rating_task.body if rating_task.respond_to?(:body) %>

<% end %>
<%= @plugins.dispatch(:organization_ratings_plugin_container_extra_fields, user_rate).collect { |content| instance_exec(&content) }.join("") %>