Commit af0e87e3b03627afff03e1a2e35f8df49a0a0c08

Authored by Tallys Martins
Committed by Macartur Sousa
1 parent f334993b
Exists in elasticsearch_api

Minor fixes on organization ratings plugin

- Fixes broken url image for unlogged users
- Adds ratings title to unlogged users

Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com>
Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb
1 <% min_rate = env_organization_ratings_config.minimum_ratings %> 1 <% min_rate = env_organization_ratings_config.minimum_ratings %>
2 <% default_rating = env_organization_ratings_config.default_rating %> 2 <% default_rating = env_organization_ratings_config.default_rating %>
3 3
4 -<div class="star-page-title">  
5 - <%= @plugins.dispatch(:organization_ratings_title).collect { |content| instance_exec(&content) }.join("") %>  
6 -</div>  
7 -  
8 <div class="star-rate-data"> 4 <div class="star-rate-data">
9 5
10 <div class="star-profile-information"> 6 <div class="star-profile-information">
plugins/organization_ratings/views/organization_ratings_plugin_profile/new_rating.html.erb
1 <%= error_messages_for 'rating' %> 1 <%= error_messages_for 'rating' %>
2 2
3 <% config = env_organization_ratings_config %> 3 <% config = env_organization_ratings_config %>
  4 +<div class="star-page-title">
  5 + <%= @plugins.dispatch(:organization_ratings_title).collect { |content| instance_exec(&content) }.join("") %>
  6 +</div>
4 <% if logged_in? %> 7 <% if logged_in? %>
5 <%= render :partial => "new_rating_fields" %> 8 <%= render :partial => "new_rating_fields" %>
6 <% else %> 9 <% else %>
plugins/organization_ratings/views/shared/_make_report_block.html.erb
1 <% logged_in_image = link_to profile_image(current_user.person, :portrait), current_user.person.url if current_user %> 1 <% logged_in_image = link_to profile_image(current_user.person, :portrait), current_user.person.url if current_user %>
2 <% logged_in_name = link_to current_user.person.name, current_user.person.url if current_user %> 2 <% logged_in_name = link_to current_user.person.name, current_user.person.url if current_user %>
3 -<% logged_out_image = image_tag('plugins/organization_ratings/public/images/user-not-logged.png') %> 3 +<% logged_out_image = image_tag('plugins/organization_ratings/images/user-not-logged.png') %>
4 4
5 <div class="make-report-block"> 5 <div class="make-report-block">
6 <div class="star-profile-information"> 6 <div class="star-profile-information">