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

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