]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/revoke.html.erb
Merge branch 'convert_roundabout_exits' of https://github.com/jguthrie100/openstreetm...
[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(
8                                      h(@user_block.user.display_name),
9                                      user_path(@user_block.user)),
10                 :block_by => link_to(
11                                      h(@user_block.creator.display_name),
12                                      user_path(@user_block.creator))) %></h1>
13 <% end %>
14
15 <% if @user_block.ends_at > Time.now %>
16 <p><b>
17   <%= t('.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
18 </b></p>
19
20 <%= form_for :revoke, :url => { :action => "revoke" } do |f| %>
21   <%= f.error_messages %>
22 <p>
23   <%= check_box_tag 'confirm', 'yes' %>
24   <%= label_tag 'confirm', t('.confirm') %>
25 </p>
26 <p>
27   <%= submit_tag t('.revoke') %>
28 </p>
29 <% end %>
30
31 <% else %>
32 <p>
33   <%= t('.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
34 </p>
35 <% end %>