Noosfero/noosfero

View on GitHub
app/views/profile/_private_profile.html.erb

Summary

Maintainability
Test Coverage
<div class='profile-picture'>
  <%= profile_image(profile, :big) %>
</div>

<div class='private-profile-message'><%= @message %></div>
<div class='private-profile-description'><%= profile.description %></div>

<%= button_bar do %>
  <% if @action == :join && logged_in? %>
    <%= join_community_button({:logged => true}) %>
  <% end %>
  <% if @action == :add_friend && logged_in? && !user.already_request_friendship?(profile) && !user.is_a_friend?(profile) %>
    <%= button(:add_user, _('Add friend'), profile.add_url, :class => 'add-friend', :title => _("Add friend")) %>
  <% end %>
  <%= button :back, _('Go back'), :back %>
  <%= button :home, _("Go to %s home page").html_safe % environment.name, :controller => 'home' %>
<% end %>