Sha256: 10417ae2b2d89938761e7222dc6d5351d43edbd85e98fb41e95017629e722aab

Contents?: true

Size: 867 Bytes

Versions: 5

Compression:

Stored size: 867 Bytes

Contents

<% form_remote_tag :url => force_edit_skyline_article_variant_path(@article, @variant), :method => :put do %>
  <% if current_user.allow?(:variant_force_edit) %>
    <span class="button">
      <%= t(:force_editing, :scope => [@article.class, :edit]) %>
      <span style="padding-left: 1em"><%= submit_button :yes_force_edit, :class => "small" %></span>
    </span>
  <% end %>
  <strong>
    <%= t(:currently_editing_by, 
            :user => @variant.current_editor.display_name, 
            :scope => [@article.class, :edit]) %>
  </strong><br/>
  <%= t(:currently_editing_since, 
           :user => @variant.current_editor.display_name,   
           :since => l(@variant.current_editor_since, :format => :long),
           :duration => distance_of_time_in_words_to_now(@variant.current_editor_since),
           :scope => [@article.class, :edit]) %>
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
skylinecms-3.1.0 app/views/skyline/articles/_currently_editing.html.erb
westarete-skylinecms-3.0.8.20100329 app/views/skyline/articles/_currently_editing.html.erb
westarete-skylinecms-3.0.8.20100330 app/views/skyline/articles/_currently_editing.html.erb
skylinecms-3.0.8 app/views/skyline/articles/_currently_editing.html.erb
skylinecms-3.0.7 app/views/skyline/articles/_currently_editing.html.erb