Permalink
Browse files

basic update to admin pane

  • Loading branch information...
1 parent 404714e commit 5a283a510c2e74e156e7fa96190f40cc33db99bb @jafoca committed Mar 10, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 admin/controllers/daily_schedules.rb
  2. +1 −2 admin/views/daily_schedules/index.erb
@@ -2,7 +2,7 @@
get :index do
- @daily_schedules = DailySchedule.all
+ @daily_schedules = DailySchedule.all(:date.gte => Time.zone.today.to_s)
render 'daily_schedules/index'
end
@@ -17,8 +17,7 @@
</tr>
<% @daily_schedules.each do |daily_schedule| %>
<tr>
- <td class="first"><%= daily_schedule.date %></td>
-
+ <td class="first"><%= Date::DAYNAMES[daily_schedule.date.to_date.wday] %> | <%= daily_schedule.date %></td>
<td><%= daily_schedule.created_at %></td>
<td><%= daily_schedule.updated_at %></td>
<td class="last">

0 comments on commit 5a283a5

Please sign in to comment.