Commit 3d405423a6156ae2a4d23d8ac2b468cbd85eea27
1 parent
f0f9d940
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
#community dashboard - fixes
Showing
3 changed files
with
6 additions
and
16 deletions
Show diff stats
plugins/community_hub/public/style.css
... | ... | @@ -78,7 +78,7 @@ clear: both; |
78 | 78 | font-weight: bold; |
79 | 79 | float: left; |
80 | 80 | display: inline-block; |
81 | - line-height: 20px; | |
81 | + line-height: 16px; | |
82 | 82 | margin-right: 5px; |
83 | 83 | } |
84 | 84 | |
... | ... | @@ -107,6 +107,7 @@ clear: both; |
107 | 107 | |
108 | 108 | .hub .mediation-bar ul li.pin{ |
109 | 109 | height: 25px; |
110 | + margin-right: 10px; | |
110 | 111 | } |
111 | 112 | |
112 | 113 | .hub .remove{} | ... | ... |
plugins/community_hub/views/community_hub_plugin_public/_mediation.rhtml
... | ... | @@ -13,18 +13,18 @@ |
13 | 13 | <ul> |
14 | 14 | |
15 | 15 | <li class="promote"> |
16 | - <% if !promoted?(hub, mediation.author.id) %> | |
16 | + <% if promoted?(hub, mediation.author.id) %> | |
17 | 17 | <a id="<%= mediation.id %>" href="#" onclick="promote_user(<%= mediation.author.id %>); return false;"> |
18 | - <img class="promoted" src="/plugins/community_hub/icons/hub-promote-icon.png" /> | |
18 | + <img class="promoted" src="/plugins/community_hub/icons/hub-promote-icon.png" title="<%= _("User promoted") %>" /> | |
19 | 19 | </a> |
20 | 20 | <% else %> |
21 | - <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" /> | |
21 | + <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" title="<%= _("User not promoted") %>" /> | |
22 | 22 | <% end %> |
23 | 23 | </li> |
24 | 24 | |
25 | 25 | <% if pinned_mediation?(hub, mediation.id) %> |
26 | 26 | <li class="pin"> |
27 | - <img class="pinned" src="/plugins/community_hub/icons/hub-not-pinned-icon.png" /> | |
27 | + <img class="pinned" src="/plugins/community_hub/icons/hub-not-pinned-icon.png" title="<%= _("Message pinned")%>" /> | |
28 | 28 | </li> |
29 | 29 | <% end %> |
30 | 30 | ... | ... |
plugins/community_hub/views/community_hub_plugin_public/_post.rhtml
... | ... | @@ -16,17 +16,7 @@ |
16 | 16 | |
17 | 17 | <% if mediator?(hub) && post.title != 'hub-message-twitter' && post.title != 'hub-message-facebook' %> |
18 | 18 | <li class="mediation-bar"> |
19 | - | |
20 | 19 | <ul> |
21 | - <li class="promote"> | |
22 | - <% if promoted?(hub, post.author.id) == 'promoted' %> | |
23 | - <a id="<%= post.id %>" href="#" onclick="pin_message(<%= post.id %>); return false;"> | |
24 | - <img class="promoted" src="/plugins/community_hub/icons/hub-promote-icon.png" /> | |
25 | - </a> | |
26 | - <% else %> | |
27 | - <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" /> | |
28 | - <% end %> | |
29 | - </li> | |
30 | 20 | <li class="pin"> |
31 | 21 | <% if !pinned_message?(hub, post.id) %> |
32 | 22 | <a id="<%= post.id %>" href="#" onclick="pin_message(<%= post.id %>); return false;"> |
... | ... | @@ -37,7 +27,6 @@ |
37 | 27 | <% end %> |
38 | 28 | </li> |
39 | 29 | </ul> |
40 | - | |
41 | 30 | </li> |
42 | 31 | <% end %> |
43 | 32 | ... | ... |