Sha256: 713fcbb8774564d6eb5b5972c11056654a6b1db2b9f5a8129d22def692d711d7
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
<% if Skyline::Configuration.enable_locking && @article.enable_locking? %> <dl class="advanced" id="article_security"> <dt><a href="#"><span><%= t(:security, :scope => [:article, :headers]) %></span></a></dt> <dd> <table class="details"> <tbody> <tr> <th><%= t(:locked_state, :scope => [:article, :edit]) %></th> <td class="center"> <%= image_tag "/skyline/images/icons/lock#{"-open" unless @article.locked? }.gif" %> </td> </tr> </tbody> </table> <% if @variant.editable_by?(current_user) && current_user.allow?(@article, :lock) %> <% remote_form_for(:article, @article, :url => skyline_article_path(@article, :variant_id => @variant), :html => {:method => "put"}) do |f| %> <div class="button" style="margin-top: 5px"> <% if @article.locked? %> <%= f.hidden_field :locked, :value => "0" %> <%= submit_button :unlock, :class => "small" %> <% else %> <%= f.hidden_field :locked, :value => "1" %> <%= submit_button :lock, :class => "small" %> <% end %> </div> <% end %> <% end %> </dd> </dl> <% end %>
Version data entries
5 entries across 5 versions & 2 rubygems