Sha256: 0521c704d72b6222a64ddfee9873ba3f77c9756630533ef0b77e03a859636ae9

Contents?: true

Size: 1.53 KB

Versions: 8

Compression:

Stored size: 1.53 KB

Contents

<div class='templates-list'>
  <% if template_versions.any? %>
    <% template_versions.each do |template_version| %>
      <div class='template-item'>
        <%= link_to h("##{template_version.id} - #{template_version.name}"), mustache_render_manage_folder_template_template_version_url(
          :folder_id   => template_version.folder_id,
          :template_id => template_version.template_id,
          :id          => template_version.id
        ) %>
      [user:<%= h(template_version.last_user_id) %>, updated at: <%= template_version.updated_at %>]

      <%= link_to '删除',  mustache_render_manage_folder_template_template_version_url(
        :folder_id   => template_version.folder_id,
        :template_id => template_version.template_id,
        :id          => template_version.id,
        :return_to   => request.url
      ), :method => :delete, :data => {
        :confirm => '你确定要【删除】这个历史版本吗?'
      }
    %>

      <%= link_to '还原该版本',  revert_mustache_render_manage_folder_template_template_version_url(
        :folder_id   => template_version.folder_id,
        :template_id => template_version.template_id,
        :id          => template_version.id,
        :return_to   => request.url
      ), :method => :post, :data => {
        :confirm => '你确定要【还原】这个历史版本吗?'
      }
    %>

      <br/>
      <%= h template_version.change_log %>
      </div>
    <% end %>
  <% else %>
    <div class='empty-list'>
      没有历史记录
    </div>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mustache_render-0.0.15 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.14 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.13 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.12 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.10 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.9 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.7 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb
mustache_render-0.0.6 lib/mustache_render/views/mustache_render/manage/template_versions/_list.html.erb