2010-05-26 08:27:09 +02:00
|
|
|
<%- @title = "#{@page.plain_name} is locked".html_safe -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<p>
|
2008-12-17 07:07:21 +01:00
|
|
|
<%= link_to_page(h(@page.locked_by.purify)) %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @page.lock_duration(Time.now) == 0 -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
just started editing this page.
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- else -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
has been editing this page for <%= @page.lock_duration(Time.now) %> minutes.
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</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>
|