<% @title = "#{@page.plain_name} is locked" %> <% if @page.lock_duration(Time.now) == 0 %>

<%= @page.locked_by_link %> just started editing this page.

<% else %>

<%= @page.locked_by_link %> has been editing this page for <%= @page.lock_duration(Time.now) %> minutes.

<% end %>

<%= link_to 'Edit the page anyway', {:web => @web_name, :action => 'edit', :id => @page.url, :params => {'break_lock' => '1'} }, {:accesskey => 'E'} %> <%= link_to 'Cancel', {:web => @web_name, :action => 'show', :id => @page.url}, {:accesskey => 'C'} %>