diff --git a/app/views/invite/invite_friends.html.erb b/app/views/invite/invite_friends.html.erb new file mode 100644 index 0000000..adfc91c --- /dev/null +++ b/app/views/invite/invite_friends.html.erb @@ -0,0 +1,30 @@ +<% if profile.person? %> +

<%= _('Invite your friends') %>

+<% else %> +

<%= _('Invite your friends to join %s') % profile.name %>

+<% end %> + +<% unless profile.person? %> +

<%= _('Invite other registered users') %>

+

<%= _('You can search for user profiles and invite them to join this community.') %>

+ <%= form_tag :action => 'invite_registered_friend' do %> + <% search_action = url_for(:action => 'search_friend') %> + <%= token_input_field_tag(:q, 'search-friends', search_action, + { :hint_text => _('Type in your friend\'s ') + @search_friend_fields, + :focus => false }) %> + + <% button_bar do %> + <%= submit_button('save', _('Invite'))%> + <%= button('cancel', _('Cancel'), profile.url)%> + <% end %> + <% end %> + +
+

<%= _('Invite people from my e-mail contacts') %>

+ <% header = 'h3' %> + +<% end %> + +<%= render :partial => 'invite/select_address_book', :locals => {:header => header} %> + +
diff --git a/app/views/invite/invite_friends.rhtml b/app/views/invite/invite_friends.rhtml deleted file mode 100644 index 94726bd..0000000 --- a/app/views/invite/invite_friends.rhtml +++ /dev/null @@ -1,30 +0,0 @@ -<% if profile.person? %> -

<%= _('Invite your friends') %>

-<% else %> -

<%= _('Invite your friends to join %s') % profile.name %>

-<% end %> - -<% unless profile.person? %> -

<%= _('Invite other registered users') %>

-

<%= _('You can search for user profiles and invite them to join this community.') %>

- <% form_tag :action => 'invite_registered_friend' do %> - <% search_action = url_for(:action => 'search_friend') %> - <%= token_input_field_tag(:q, 'search-friends', search_action, - { :hint_text => _('Type in your friend\'s ') + @search_friend_fields, - :focus => false }) %> - - <% button_bar do %> - <%= submit_button('save', _('Invite'))%> - <%= button('cancel', _('Cancel'), profile.url)%> - <% end %> - <% end %> - -
-

<%= _('Invite people from my e-mail contacts') %>

- <% header = 'h3' %> - -<% end %> - -<%= render :partial => 'invite/select_address_book', :locals => {:header => header} %> - -
-- libgit2 0.21.2