Commit 1e289d8d73eda7cd3e62e69b0db30459f7e86d5d
1 parent
605eaf67
Exists in
temp_ratings
Adding title to hotspot and improving template and css
Signed-off-by: Pedro de Lyra Pereira <pedrodelyra@gmail.com> Signed-off-by: Fábio Teixeira <fabio1079@gmail.com>
Showing
3 changed files
with
30 additions
and
4 deletions
Show diff stats
plugins/communities_ratings/lib/communities_ratings_plugin.rb
| @@ -14,6 +14,10 @@ class CommunitiesRatingsPlugin < Noosfero::Plugin | @@ -14,6 +14,10 @@ class CommunitiesRatingsPlugin < Noosfero::Plugin | ||
| 14 | nil | 14 | nil |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | + def communities_ratings_title | ||
| 18 | + nil | ||
| 19 | + end | ||
| 20 | + | ||
| 17 | def communities_ratings_plugin_star_message | 21 | def communities_ratings_plugin_star_message |
| 18 | nil | 22 | nil |
| 19 | end | 23 | end |
plugins/communities_ratings/style.css
| @@ -26,15 +26,30 @@ | @@ -26,15 +26,30 @@ | ||
| 26 | 26 | ||
| 27 | .star-rate-data { | 27 | .star-rate-data { |
| 28 | width: 100%; | 28 | width: 100%; |
| 29 | + padding-top: 20px; | ||
| 29 | position: relative; | 30 | position: relative; |
| 30 | overflow: auto; | 31 | overflow: auto; |
| 31 | } | 32 | } |
| 32 | 33 | ||
| 33 | .star-profile-information, .star-rate-form { | 34 | .star-profile-information, .star-rate-form { |
| 34 | - position: relative; | ||
| 35 | - float: left; | 35 | + display: table-cell; |
| 36 | + padding-right: 15px; | ||
| 37 | + vertical-align: top; | ||
| 38 | +} | ||
| 39 | + | ||
| 40 | +.star-profile-information { | ||
| 41 | + max-width: 134px; | ||
| 36 | } | 42 | } |
| 37 | 43 | ||
| 38 | .star-rate-form { | 44 | .star-rate-form { |
| 39 | - margin-left: 15px; | 45 | + display: table-cell; |
| 46 | + vertical-align: top; | ||
| 40 | } | 47 | } |
| 48 | + | ||
| 49 | +.star-profile-image, .star-profile-name { | ||
| 50 | + text-align: center; | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +.star-profile-name { | ||
| 54 | + word-break: break-word; | ||
| 55 | +} | ||
| 41 | \ No newline at end of file | 56 | \ No newline at end of file |
plugins/communities_ratings/views/communities_ratings_plugin_profile/new_rating.html.erb
| @@ -3,7 +3,12 @@ | @@ -3,7 +3,12 @@ | ||
| 3 | 3 | ||
| 4 | <div class="star-notice star-hide"></div> | 4 | <div class="star-notice star-hide"></div> |
| 5 | 5 | ||
| 6 | +<div class="star-page-title"> | ||
| 7 | +<%= @plugins.dispatch(:communities_ratings_title).collect { |content| instance_exec(&content) }.join("") %> | ||
| 8 | +</div> | ||
| 9 | + | ||
| 6 | <div class="star-rate-data"> | 10 | <div class="star-rate-data"> |
| 11 | + | ||
| 7 | <div class="star-profile-information"> | 12 | <div class="star-profile-information"> |
| 8 | <div class="star-profile-image"> | 13 | <div class="star-profile-image"> |
| 9 | <%= profile_image(current_user.person, :portrait) %> | 14 | <%= profile_image(current_user.person, :portrait) %> |
| @@ -40,7 +45,9 @@ | @@ -40,7 +45,9 @@ | ||
| 40 | </div> | 45 | </div> |
| 41 | 46 | ||
| 42 | <%= @plugins.dispatch(:communities_ratings_plugin_comments_extra_fields).collect { |content| instance_exec(&content) }.join("") %> | 47 | <%= @plugins.dispatch(:communities_ratings_plugin_comments_extra_fields).collect { |content| instance_exec(&content) }.join("") %> |
| 43 | - <%= c.submit _("Send Data") %> | 48 | + <div class="button-bar"> |
| 49 | + <%= c.submit _("Send"), class: "button icon-save submit with-text" %> | ||
| 50 | + </div> | ||
| 44 | <% end %> | 51 | <% end %> |
| 45 | </div> | 52 | </div> |
| 46 | </div> | 53 | </div> |