diff --git a/plugins/organization_ratings/features/rate_community.feature b/plugins/organization_ratings/features/rate_community.feature index 40f46b4..5658544 100644 --- a/plugins/organization_ratings/features/rate_community.feature +++ b/plugins/organization_ratings/features/rate_community.feature @@ -28,3 +28,9 @@ Feature: rate_community Scenario: display rate button inside communities ratings block Given I am on mycommunity's homepage Then I should see "Rate Community" within ".make-report-block" + + Scenario: redirect to profile page + Given I am on mycommunity's homepage + When I follow "Rate this Community" + Then I should see "Joao Silva" within ".star-profile-name" + And I should see Joao Silva's profile image \ No newline at end of file diff --git a/plugins/organization_ratings/style.css b/plugins/organization_ratings/style.css index 408f0e9..12adc94 100644 --- a/plugins/organization_ratings/style.css +++ b/plugins/organization_ratings/style.css @@ -122,6 +122,10 @@ width: 66px; } +.star-profile-name a:link { + text-decoration: none; +} + .star-rate-data .star-rate-form .star-comment-container .formfield textarea { width: 361px; } diff --git a/plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb b/plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb index e379d05..0c39045 100644 --- a/plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb +++ b/plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb @@ -9,11 +9,11 @@
- <%= profile_image(current_user.person, :portrait) %> + <%= link_to profile_image(current_user.person, :portrait), current_user.person.url %>
- <%= current_user.name %> + <%= link_to current_user.person.name, current_user.person.url %>
diff --git a/plugins/organization_ratings/views/shared/_make_report_block.html.erb b/plugins/organization_ratings/views/shared/_make_report_block.html.erb index 12b7c0e..2a0006f 100644 --- a/plugins/organization_ratings/views/shared/_make_report_block.html.erb +++ b/plugins/organization_ratings/views/shared/_make_report_block.html.erb @@ -1,4 +1,5 @@ -<% logged_in_image = profile_image(current_user.person, :portrait) if current_user %> +<% logged_in_image = link_to profile_image(current_user.person, :portrait), current_user.person.url if current_user %> +<% logged_in_name = link_to current_user.person.name, current_user.person.url if current_user %> <% logged_out_image = image_tag('plugins/organization_ratings/public/images/user-not-logged.png') %>
@@ -8,7 +9,7 @@
- <%= logged_in? ? current_user.person.name : _('User not logged') %> + <%= logged_in? ? logged_in_name : _('User not logged') %>
diff --git a/plugins/organization_ratings/views/shared/_user_rating_container.html.erb b/plugins/organization_ratings/views/shared/_user_rating_container.html.erb index 4889579..e42a6d1 100644 --- a/plugins/organization_ratings/views/shared/_user_rating_container.html.erb +++ b/plugins/organization_ratings/views/shared/_user_rating_container.html.erb @@ -1,11 +1,11 @@
- <%= profile_image(user_rate.person, :portrait) %> + <%= link_to profile_image(user_rate.person, :portrait), user_rate.person.url %>
- <%= user_rate.person.name %> + <%= link_to user_rate.person.name, user_rate.person.url %>
-- libgit2 0.21.2