Implements todo list for global dashboard

This commit is contained in:
Chrisbr 2014-06-03 14:37:18 +02:00
parent 852e2d4243
commit 60cfc992af
12 changed files with 372 additions and 96 deletions

View file

@ -15,6 +15,22 @@ module ApplicationHelper
end
end
def icon_for_todo(bool)
if bool
return 'glyphicon glyphicon-ok'
else
return 'glyphicon glyphicon-remove'
end
end
def class_for_todo(bool)
if bool
return 'list-group-item todolist-ok'
else
return 'list-group-item todolist-missing'
end
end
def normalize_array_length(hashmap, length)
hashmap.each do |key, value|
if value.length < length