instiki/app/views/wiki/locked.rhtml

24 lines
633 B
Text
Raw Normal View History

2007-01-22 14:43:50 +01:00
<% @title = "#{@page.plain_name} is locked" %>
<p>
2007-03-05 05:56:52 +01:00
<%= link_to_page(h(@page.locked_by.delete("\x01-\x08\x0B\x0C\x0E-\x1F"))) %>
2007-01-22 14:43:50 +01:00
<% if @page.lock_duration(Time.now) == 0 %>
just started editing this page.
<% else %>
has been editing this page for <%= @page.lock_duration(Time.now) %> minutes.
<% end %>
</p>
<p>
<%= link_to 'Edit the page anyway',
{:web => @web_name, :action => 'edit', :id => @page.name, :params => {'break_lock' => '1'} },
{:accesskey => 'E'}
%>
<%= link_to 'Cancel',
{:web => @web_name, :action => 'show', :id => @page.name},
{:accesskey => 'C'}
%>
</p>