]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/revoke.html.erb
Whitespace fixes for user_blocks erb files
[rails.git] / app / views / user_blocks / revoke.html.erb
1 <% @title = t('.title',
2               :block_on => h(@user_block.user.display_name),
3               :block_by => h(@user_block.creator.display_name)) %>
4
5 <% content_for :heading do %>
6   <h1><%= raw t('.heading',
7                 :block_on => link_to(h(@user_block.user.display_name),
8                                      user_path(@user_block.user)),
9                 :block_by => link_to(h(@user_block.creator.display_name),
10                                      user_path(@user_block.creator))) %></h1>
11 <% end %>
12
13 <% if @user_block.ends_at > Time.now %>
14 <p><b>
15   <%= t('.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
16 </b></p>
17
18 <%= form_for :revoke, :url => { :action => "revoke" } do |f| %>
19   <%= f.error_messages %>
20 <p>
21   <%= check_box_tag 'confirm', 'yes' %>
22   <%= label_tag 'confirm', t('.confirm') %>
23 </p>
24 <p>
25   <%= submit_tag t('.revoke') %>
26 </p>
27 <% end %>
28
29 <% else %>
30 <p>
31   <%= t('.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
32 </p>
33 <% end %>