Commit bb71f7db3f15902a13333d60e2b89d50e72315bc

Authored by dtygel
Committed by Braulio Bhavamitra
1 parent 2f07775b

Add 'love' icon

app/views/blocks/profile_info_actions/_enterprise.html.erb
1 <ul> 1 <ul>
2 <%if logged_in? %> 2 <%if logged_in? %>
3 <%if !user.favorite_enterprises.include?(profile) %> 3 <%if !user.favorite_enterprises.include?(profile) %>
4 - <li><%= button(:add, _('Add as favorite'), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :title => _('Add enterprise as favorite')) %></li> 4 + <li><%= button(:love, _('Add as favorite'), { profile: user.identifier, controller: 'favorite_enterprises', action: 'add', id: profile.id }, title: _('Add enterprise as favorite')) %></li>
5 <% end %> 5 <% end %>
6 <% end %> 6 <% end %>
7 <% if profile.enable_contact? %> 7 <% if profile.enable_contact? %>
po/pt/noosfero.po
@@ -8077,11 +8077,11 @@ msgstr &quot;Enviar e-mail para os administradores&quot; @@ -8077,11 +8077,11 @@ msgstr &quot;Enviar e-mail para os administradores&quot;
8077 8077
8078 #: app/views/blocks/profile_info_actions/_enterprise.html.erb:4 8078 #: app/views/blocks/profile_info_actions/_enterprise.html.erb:4
8079 msgid "Add as favorite" 8079 msgid "Add as favorite"
8080 -msgstr "Adicionar favorito" 8080 +msgstr "Favoritar"
8081 8081
8082 #: app/views/blocks/profile_info_actions/_enterprise.html.erb:4 8082 #: app/views/blocks/profile_info_actions/_enterprise.html.erb:4
8083 msgid "Add enterprise as favorite" 8083 msgid "Add enterprise as favorite"
8084 -msgstr "Editar empreendimento como favorito" 8084 +msgstr "Adicionar empreendimento como um de seus favoritos"
8085 8085
8086 #: app/views/blocks/profile_info_actions/_person.html.erb:6 8086 #: app/views/blocks/profile_info_actions/_person.html.erb:6
8087 #: app/views/profile/_private_profile.html.erb:13 8087 #: app/views/profile/_private_profile.html.erb:13
public/designs/icons/awesome/style.scss
@@ -299,3 +299,7 @@ $fa-font-path: &quot;fonts&quot;; @@ -299,3 +299,7 @@ $fa-font-path: &quot;fonts&quot;;
299 .icon-menu-ctrl-panel:before { 299 .icon-menu-ctrl-panel:before {
300 @extend .fa-sliders:before; 300 @extend .fa-sliders:before;
301 } 301 }
  302 +
  303 +.icon-love:before {
  304 + @extend .fa-heart:before;
  305 +}
public/designs/icons/tango/style.css
@@ -111,6 +111,7 @@ @@ -111,6 +111,7 @@
111 111
112 .icon-activate-user { background-image: url(Tango/16x16/emblems/emblem-system.png) } 112 .icon-activate-user { background-image: url(Tango/16x16/emblems/emblem-system.png) }
113 .icon-deactivate-user { background-image: url(Tango/16x16/emblems/emblem-unreadable.png) } 113 .icon-deactivate-user { background-image: url(Tango/16x16/emblems/emblem-unreadable.png) }
  114 +.icon-love { background-image: url(Tango/16x16/emblems/emblem-favorite.png) }
114 .icon-set-admin-role { background-image: url(mod/16x16/apps/user.png) } 115 .icon-set-admin-role { background-image: url(mod/16x16/apps/user.png) }
115 .icon-reset-admin-role { background-image: url(../../../images/icons-app/person-icon.png) } 116 .icon-reset-admin-role { background-image: url(../../../images/icons-app/person-icon.png) }
116 .icon-clock { background-image: url(Tango/16x16/actions/appointment.png) } 117 .icon-clock { background-image: url(Tango/16x16/actions/appointment.png) }