Noosfero/noosfero

View on GitHub
plugins/organization_ratings/views/shared/_rating_button.html.erb

Summary

Maintainability
Test Coverage
<%= button_bar do %>
  <% if logged_in? %>
    <%= button(:new,_("Rate %s ") % _(profile.class.name),
              {:controller => "organization_ratings_plugin_profile",
               :action => "new_rating"}) %>
  <% else %>
     <%= button(:login,_("Log in") , {:controller => 'account',
                                      :action => 'login'}) %>
  <% end %>
<% end %>