Sha256: 879dbb0ac9d4ff6c8fdda13c13dcebc0c6632cfa52e00c7e199490bc421a83d4

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

- current_version = collection.last || Version.new
%h3
  Current Version: #{collection.length}

%b Created At:
= current_version.created_at

%br/
= succeed ':' do
  %b Admin

%br/
- if collection.length.to_i > 1
  - if params[:version].to_i > 1 || !params[:version]
    = link_to 'Previous version', {version: (params[:version] || collection.length).to_i - 1}

    %br/

  - if params[:version]
    %h3
      This is #{params[:version]} version

    %b Modify at:
    = collection[(params[:version].to_i - 1)].created_at

    %br/

    = succeed ':' do
      %b Admin

    %br/
    = link_to 'Go to current version'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
importable_attachments-0.0.18 app/views/layouts/_version.html.haml
importable_attachments-0.0.17 app/views/layouts/_version.html.haml
importable_attachments-0.0.15 app/views/layouts/_version.html.haml
importable_attachments-0.0.14 app/views/layouts/_version.html.haml
importable_attachments-0.0.13 app/views/layouts/_version.html.haml