From 5e3863acc5b8dcece636a1793006b35c35de1561 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 6 Apr 2009 12:32:48 -0300 Subject: [PATCH] ActionItem989: duplicating the buttons in the top --- app/views/friends/index.rhtml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml index 3c72ec7..c873ad6 100644 --- a/app/views/friends/index.rhtml +++ b/app/views/friends/index.rhtml @@ -2,6 +2,21 @@

<%= __("%s's friends") % profile.name %>

+<% if @friends.empty? %> +

+ + <%= __('You have no friends yet.') %> + <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %> + +

+<% else %> + <% button_bar do %> + <%= button(:back, _('Go back'), :controller => 'profile_editor') %> + <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %> + <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %> + <% end %> +<% end %> + -<% if @friends.empty? %> -

- - <%= __('You have no friends yet.') %> - <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %> - -

-<% end %> - <% button_bar do %> <%= button(:back, _('Go back'), :controller => 'profile_editor') %> <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %> -- libgit2 0.21.2