Sha256: 080b6860ad5cc0a63049833f3c4b4679430a3838bce8151e5845decf23b74e25

Contents?: true

Size: 1.94 KB

Versions: 11

Compression:

Stored size: 1.94 KB

Contents

<%= render 'header', :concept => @concept %>
<%= render 'concepts/sidebars/singular', :concept => @concept %>

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

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

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

  <% unless @concept.locked? %>
    <%= button_to t("txt.views.versioning.to_edit_mode"),
      concept_versions_lock_path(:origin => @concept.origin), :class => :btn %>
    <%= button_to t("txt.views.versioning.delete"),
      concept_path(:published => 0, :id => @concept.origin),
      :method => :delete,
      :class => :btn,
      :confirm => I18n.t("txt.views.versioning.delete_confirm") if can?(:destroy, @concept) %>
  <% else %>
    <%= button_to t("txt.views.versioning.unlock"),
      concept_versions_unlock_path(:origin => @concept.origin), :class => :btn if can?(:unlock, @concept) %>
    <%= link_to t("txt.views.versioning.edit_mode"),
      edit_concept_path(:published => 0, :id => @concept.origin),
      :class => :btn if can?(:update, @concept) %>
  <% end %>
</div>

<%= render 'layouts/sections', :sections => Iqvoc::Concept.view_sections, :data => concept_view_data(@concept) %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
iqvoc-4.1.3 app/views/concepts/show_unpublished.html.erb
iqvoc-4.1.2 app/views/concepts/show_unpublished.html.erb
iqvoc-4.1.1 app/views/concepts/show_unpublished.html.erb
iqvoc-4.1.0 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.9 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.8 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.7 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.6 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.5 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.4 app/views/concepts/show_unpublished.html.erb
iqvoc-4.0.3 app/views/concepts/show_unpublished.html.erb