Commit 733814ea4658e164cb6e46ae7d28e583ccea43b3

Authored by Marcos Pereira
2 parents a0f60fb4 f95343eb

Merge branch 'organization_ratings_improvements' into 'master'

Minor fixes for OrganizationRatings plugin

- Fixes broken url image for not logged users
- Shows ratings title to not logged users

See merge request !953
plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb
1 1 <% min_rate = env_organization_ratings_config.minimum_ratings %>
2 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 4 <div class="star-rate-data">
9 5  
10 6 <div class="star-profile-information">
... ...
plugins/organization_ratings/views/organization_ratings_plugin_profile/new_rating.html.erb
1 1 <%= error_messages_for 'rating' %>
2 2  
3 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 7 <% if logged_in? %>
5 8 <%= render :partial => "new_rating_fields" %>
6 9 <% else %>
... ...
plugins/organization_ratings/views/shared/_make_report_block.html.erb
1 1 <% logged_in_image = link_to profile_image(current_user.person, :portrait), current_user.person.url if current_user %>
2 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 5 <div class="make-report-block">
6 6 <div class="star-profile-information">
... ...