Commit 0dbfb3918e16c9fcd6c06a90a535f5b8c2d3ad80
1 parent
587415cd
Exists in
master
and in
27 other branches
Fix obsolete view extension and form syntax
Showing
2 changed files
with
30 additions
and
30 deletions
Show diff stats
... | ... | @@ -0,0 +1,30 @@ |
1 | +<% if profile.person? %> | |
2 | + <h1><%= _('Invite your friends') %></h1> | |
3 | +<% else %> | |
4 | + <h1><%= _('Invite your friends to join %s') % profile.name %></h1> | |
5 | +<% end %> | |
6 | + | |
7 | +<% unless profile.person? %> | |
8 | + <h2><%= _('Invite other registered users') %></h2> | |
9 | + <p><%= _('You can search for user profiles and invite them to join this community.') %></p> | |
10 | + <%= form_tag :action => 'invite_registered_friend' do %> | |
11 | + <% search_action = url_for(:action => 'search_friend') %> | |
12 | + <%= token_input_field_tag(:q, 'search-friends', search_action, | |
13 | + { :hint_text => _('Type in your friend\'s ') + @search_friend_fields, | |
14 | + :focus => false }) %> | |
15 | + | |
16 | + <% button_bar do %> | |
17 | + <%= submit_button('save', _('Invite'))%> | |
18 | + <%= button('cancel', _('Cancel'), profile.url)%> | |
19 | + <% end %> | |
20 | + <% end %> | |
21 | + | |
22 | + <br /> | |
23 | + <h2><%= _('Invite people from my e-mail contacts') %></h2> | |
24 | + <% header = 'h3' %> | |
25 | + | |
26 | +<% end %> | |
27 | + | |
28 | +<%= render :partial => 'invite/select_address_book', :locals => {:header => header} %> | |
29 | + | |
30 | +<div id="loadingScreen"></div> | ... | ... |
app/views/invite/invite_friends.rhtml
... | ... | @@ -1,30 +0,0 @@ |
1 | -<% if profile.person? %> | |
2 | - <h1><%= _('Invite your friends') %></h1> | |
3 | -<% else %> | |
4 | - <h1><%= _('Invite your friends to join %s') % profile.name %></h1> | |
5 | -<% end %> | |
6 | - | |
7 | -<% unless profile.person? %> | |
8 | - <h2><%= _('Invite other registered users') %></h2> | |
9 | - <p><%= _('You can search for user profiles and invite them to join this community.') %></p> | |
10 | - <% form_tag :action => 'invite_registered_friend' do %> | |
11 | - <% search_action = url_for(:action => 'search_friend') %> | |
12 | - <%= token_input_field_tag(:q, 'search-friends', search_action, | |
13 | - { :hint_text => _('Type in your friend\'s ') + @search_friend_fields, | |
14 | - :focus => false }) %> | |
15 | - | |
16 | - <% button_bar do %> | |
17 | - <%= submit_button('save', _('Invite'))%> | |
18 | - <%= button('cancel', _('Cancel'), profile.url)%> | |
19 | - <% end %> | |
20 | - <% end %> | |
21 | - | |
22 | - <br /> | |
23 | - <h2><%= _('Invite people from my e-mail contacts') %></h2> | |
24 | - <% header = 'h3' %> | |
25 | - | |
26 | -<% end %> | |
27 | - | |
28 | -<%= render :partial => 'invite/select_address_book', :locals => {:header => header} %> | |
29 | - | |
30 | -<div id="loadingScreen"></div> |