Sha256: f4243d631cec39e155e185c378bc211d9c277c3157dd2d1e26cb1a749391cb32

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

.historycontrols
  .btn-group
    %a.btn.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
      Editing Version #{selected_version.version}
      %span.caret
    %ul.dropdown-menu
      - first_published = true
      - versions.each do |version|
        %li{:class => "#{version.version.to_s == selected.to_s ? 'active' : '' }"}
          - title = "Version #{version.version} (#{version.updated_at.strftime("%d/%m/%Y at %H:%M")} )" 
          - user = version.respond_to?(:user) ? version.user : nil
          - title += " by #{user.full_name}" unless user.blank?
          - if version.respond_to?(:version_status) && ((first_published && version.version_status == 'published') || version.version_status == 'submitted_for_approval' || version.version_status == 'declined')
            - if version.version_status == 'published'
              - first_published = false
            - title += " [<b>#{version.version_status.humanize}</b>]"


          = link_to  title.html_safe, "?version=#{version.version}"

.clear
%br/
%br/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/shared/_version_listing.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/shared/_version_listing.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/shared/_version_listing.html.haml