Permalink
Browse files

Display status on page list

  • Loading branch information...
1 parent 461893b commit 86ffd24d51b3a4b0ddcaa77b6099f411994f4c9f @SamWhited SamWhited committed Aug 30, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/views/admin/minutes/index.html.haml
@@ -4,17 +4,18 @@
%thead
%tr
%th= t('minutes_page')
- %th= t('slug')
%th= t('meeting_type')
+ %th= t('status')
%th= t('modify')
%tbody
- unless models.blank?
- models.sort{|x,y| ( x.published_at and y.published_at ) ? y.published_at <=> x.published_at : ( y.published_at ? -1 : 1 ) }.each do |minutes|
%tr
%td.name
= link_to I18n.localize(minutes.published_at.to_date, :format => :long), edit_admin_minutes_instance_path(minutes)
- %td.slug= minutes.slug
%td.meeting_type= minutes.title
+ %td.status
+ %span.status{:class => "#{minutes.status.name.downcase}_status"}= t(minutes.status.name.downcase)
%td.actions= link_to(image('minus') + ' ' + t('remove'), admin_minutes_instance_url(minutes), :class => "action", :method => :delete, :confirm => "Is it OK to delete the #{minutes.title} meeting minutes for #{I18n.localize(minutes.published_at.to_date, :format => :long)}?")
- else
%tr

0 comments on commit 86ffd24

Please sign in to comment.