index.rhtml 1.05 KB
<div id="manage_favorite_enterprises">

<h1><%= _("%s's favorite enteprises") % profile.name %></h1>

<ul class="profile-list">
<% @favorite_enterprises.each do |enterprise| %>
  <li>
    <%= link_to_profile profile_image(enterprise) + '<br/>' + enterprise.name,
                        enterprise.identifier, :class => 'profile-link' %>
    <%# profile_image_link enterprise, :portrait, 'div' %>
    <div class="controll">
      <%= link_to content_tag('span',_('remove')),
          { :action => 'remove', :id => enterprise.id },
            :class => 'button icon-delete',
            :title => _('remove') %>
    </div><!-- end class="controll" -->
  </li>
<% end %>
</ul>

<% if @favorite_enterprises.empty? %>
<p>
<em>
  <%= _('You have no favorite enteprises yet.') %>
</em>
</p>
<% end %>

<% button_bar do %>
  <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
<% end %>
<%= content_tag(:small,_('* Notice that clicking on the remove button, you will remove your friends relation with this enterprise.')) %>

</div><!-- end id="manage_friends" -->