Sha256: ea7d226e5fae35a0baf7be03cb19644801ccce8ccf7fa6b491bf7e963fc3bb94

Contents?: true

Size: 1.85 KB

Versions: 6

Compression:

Stored size: 1.85 KB

Contents

<%= render 'header', :label => @label %>
<%= render 'sidebar', :label => @label %>

<%= alert :info, :header => t('txt.common.unpublished_version') + "." do %>
  <%= t("txt.views.versioning.current_revision", :rev => @label.rev) %>
  <% if @label.locked? %>
    <%= t("txt.views.versioning.in_ongoing_editing_by", :user => @label.locking_user.name) %>
  <% end %>
<% end %>

<div class="editing_versioning_toolbar well">
  <% if (not @label.locked?) || @label.locked_by == @current_user.id %>
    <%= button_to t("txt.views.versioning.publishing"),
      label_versions_merge_path(:origin => @label.origin), :class => 'btn btn-primary' %>
  <% end %>
  <%= button_to t("txt.views.versioning.consistency_check"),
    label_versions_consistency_check_path(:origin => @label.origin),
    :method => :get, :class => 'btn' %>

  <% if (not @label.in_review?) && @label.locked_by == @current_user.id %>
    <%= button_to t("txt.common.to_review"),
    label_versions_to_review_path(:origin => @label.origin),
    :class => 'btn' %>
  <% end %>

  <% unless @label.locked? %>
    <%= button_to t("txt.views.versioning.to_edit_mode"),
      label_versions_lock_path(:origin => @label.origin), :class => 'btn' %>
    <%= button_to t("txt.views.versioning.delete"),
      label_path(:published => 0, :id => @label.origin),
      :method => :delete,
      :confirm => I18n.t("txt.views.versioning.delete_confirm"),
      :class => 'btn' %>
  <% else %>
    <%= button_to t("txt.views.versioning.unlock"),
      label_versions_unlock_path(:origin => @label.origin),
      :class => 'btn' if can?(:unlock, @label) %>
    <%= link_to t("txt.views.versioning.edit_mode"),
      edit_label_path(:published => 0, :id => @label.origin),
      :class => 'btn' if can?(:update, @label) %>
  <% end %>
</div>

<%= render 'layouts/sections', :sections => Iqvoc::XLLabel.view_sections, :data => label_view_data(@label) %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
iqvoc_skosxl-2.3.1 app/views/labels/show_unpublished.html.erb
iqvoc_skosxl-2.3.0 app/views/labels/show_unpublished.html.erb
iqvoc_skosxl-2.1.0 app/views/labels/show_unpublished.html.erb
iqvoc_skosxl-2.0.2 app/views/labels/show_unpublished.html.erb
iqvoc_skosxl-2.0.1 app/views/labels/show_unpublished.html.erb
iqvoc_skosxl-2.0.0 app/views/labels/show_unpublished.html.erb