Commit 7627446584350b992dfd5258af33bdc99d03905c
1 parent
4ff6c9ec
Exists in
ratings_minor_fixes
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>
Showing
3 changed files
with
4 additions
and
5 deletions
Show diff stats
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"> | ... | ... |