Sha256: 53dde7e2a13b6c81a2754ab6c6ef6282e200f77784028c06ebb4beb1e4cb45ce

Contents?: true

Size: 1.61 KB

Versions: 18

Compression:

Stored size: 1.61 KB

Contents

<%= ajax_link '> all ' + @post_type.kind.pluralize + ' > ', post_types_path(post_type_kind: @post_type.kind), {}, '[data-tab-id="' + @post_type.kind.pluralize + '"]' %>
<h3>"<%= @post_type.name %>" Template Versions</h3>
<div class="pulitzer-row margin-bottom list-item">
  <% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
    <%= ajax_link "Create a blank version of this template",
          post_type_versions_path(post_type_version: {post_type_id: @post_type.id}),
          {}, '#post_type_versions_container', http_method: 'POST', insert_method: 'append' %>
    <br>
    <div class="pulitzer-span right">
      <div class="pulitzer-row bold margin-bottom">Import New Version from JSON file</div>
      <div class="pulitzer-row">
        <%= form_for @post_type, url: import_version_post_type_path(@post_type), html: ajax_form_hash('#post_type_versions_container', insert_method: 'append').merge( multipart: true, method: 'PATCH') do |f| %>
          <%= f.file_field :import_json %>
          <%= f.submit 'Import' %>
        <% end %>
      </div>
    </div>
    <% if @post_type.published_type_version %>
      <%= ajax_link "Clone the published version of this template",
            clone_post_type_versions_path(post_type_version: {post_type_id: @post_type.id}), {}, '#post_type_versions_container',
            http_method: 'POST', insert_method: 'append' %>
    <% end %>
  <% end %>
</div>

<div id="post_type_versions_container">
  <% @post_type_versions.each do |post_type_version| %>
    <%= render partial: 'show_wrapper', locals: {post_type_version: post_type_version} %>
  <% end %>
</div>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pulitzer-0.15.31 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.30 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.29 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.28 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.27 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.26 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.25 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.24 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.23 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.22 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.21 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.20 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.19 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.18 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.17 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.16 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.14 app/views/pulitzer/post_type_versions/_index.html.erb
pulitzer-0.15.13 app/views/pulitzer/post_type_versions/_index.html.erb