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
plugins/communities_ratings/style.css
... | ... | @@ -26,15 +26,30 @@ |
26 | 26 | |
27 | 27 | .star-rate-data { |
28 | 28 | width: 100%; |
29 | + padding-top: 20px; | |
29 | 30 | position: relative; |
30 | 31 | overflow: auto; |
31 | 32 | } |
32 | 33 | |
33 | 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 | 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 | 56 | \ No newline at end of file | ... | ... |
plugins/communities_ratings/views/communities_ratings_plugin_profile/new_rating.html.erb
... | ... | @@ -3,7 +3,12 @@ |
3 | 3 | |
4 | 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 | 10 | <div class="star-rate-data"> |
11 | + | |
7 | 12 | <div class="star-profile-information"> |
8 | 13 | <div class="star-profile-image"> |
9 | 14 | <%= profile_image(current_user.person, :portrait) %> |
... | ... | @@ -40,7 +45,9 @@ |
40 | 45 | </div> |
41 | 46 | |
42 | 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 | 51 | <% end %> |
45 | 52 | </div> |
46 | 53 | </div> | ... | ... |