Implements todo list for instance dashboard

This commit is contained in:
Chrisbr 2014-06-03 16:27:10 +02:00
parent 852e2d4243
commit 65a73f876a
13 changed files with 333 additions and 102 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