Implements todo list for instance dashboard
This commit is contained in:
parent
852e2d4243
commit
65a73f876a
13 changed files with 333 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue