Some fixes to home view.
This commit is contained in:
parent
06f2cc2007
commit
1cf63fc40b
6 changed files with 17 additions and 22 deletions
|
|
@ -2,13 +2,10 @@ class HomeController < ApplicationController
|
|||
helper :messages
|
||||
|
||||
def index
|
||||
@currentOrders = Order.open
|
||||
@ordergroup = @current_user.ordergroup
|
||||
# unaccepted tasks
|
||||
@unaccepted_tasks = @current_user.unaccepted_tasks
|
||||
# task in next week
|
||||
@next_tasks = @current_user.next_tasks
|
||||
@messages = Message.public.all :order => 'created_at DESC', :limit => 5
|
||||
# count tasks with no responsible person
|
||||
# tasks for groups the current user is not a member are ignored
|
||||
tasks = Task.find(:all, :conditions => ["assigned = ? and done = ?", false, false])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue