mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
added separate database field for reviews
This commit is contained in:
parent
7ebf25320b
commit
77b6c931ca
5 changed files with 40 additions and 7 deletions
|
|
@ -67,4 +67,20 @@ module ProjectsHelper
|
|||
project_description
|
||||
end
|
||||
|
||||
def needsreview_class(item)
|
||||
# if item.due || item.completed?
|
||||
# return ""
|
||||
# elsif item.last_reviewed < current_user.time - (prefs.staleness_starts * 3).days
|
||||
# return " stale_l3"
|
||||
# elsif item.last_reviewed < current_user.time - (prefs.staleness_starts * 2).days
|
||||
# return " stale_l2"
|
||||
# elsif
|
||||
if item.last_reviewed < current_user.time - (prefs.staleness_starts).days
|
||||
return "needsreview"
|
||||
else
|
||||
return "needsnoreview"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue