]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/show.html.erb
Removed directions from roundabout exit instructions
[rails.git] / app / views / user_blocks / show.html.erb
1 <% @title = t('user_block.show.title',
2               :block_on => @user_block.user.display_name,
3               :block_by => @user_block.creator.display_name) %>
4
5 <% content_for :heading do %>
6   <h1><%= raw t('user_block.show.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 <ul class='secondary-actions clearfix'>
14   <% if @user_block.ends_at > Time.now.getutc %>
15     <% if current_user and current_user.id == @user_block.creator_id %>
16       <li><%= link_to t('user_block.show.edit'), edit_user_block_path(@user_block) %></li>
17     <% end %>
18     <% if current_user and current_user.moderator? %>
19       <li><%= link_to(t('user_block.show.revoke'),{:controller => 'user_blocks', :action => 'revoke', :id => @user_block.id}) %></li>
20     <% end %>
21   <% end %>
22   <li><%= link_to t('user_block.show.back'), user_blocks_path %></li>
23 </ul>
24 <% end %>
25
26 <% if @user_block.revoker %>
27 <p>
28   <b><%= t'user_block.show.revoker' %></b>
29   <%= link_to h(@user_block.revoker.display_name), user_path(@user_block.revoker) %>
30 </p>
31 <% end %>
32
33 <p><b><%= t'user_block.show.created' %></b>: <%= raw t'user_block.show.ago', :time => friendly_date(@user_block.created_at) %></p>
34
35 <p><b><%= t'user_block.show.status' %></b>: <%= block_status(@user_block) %></p>
36
37 <p><b><%= t'user_block.show.reason' %></b></p>
38 <div class="richtext"><%= @user_block.reason.to_html %></div>