mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
rename module to reflect its generic use
This commit is contained in:
parent
e0aec34df0
commit
2305a91324
3 changed files with 4 additions and 7 deletions
|
@ -30,14 +30,14 @@ module ApplicationHelper
|
|||
# a 'traffic light' colour code
|
||||
#
|
||||
def due_date(due)
|
||||
return DueDateHelper::DueDateView.new(due, prefs).due_date_html
|
||||
return DateLabelHelper::DueDateView.new(due, prefs).due_date_html
|
||||
end
|
||||
|
||||
# Check due date in comparison to today's date Flag up date appropriately with
|
||||
# a 'traffic light' colour code Modified method for mobile screen
|
||||
#
|
||||
def due_date_mobile(due)
|
||||
return DueDateHelper::DueDateView.new(due, prefs).due_date_mobile_html
|
||||
return DateLabelHelper::DueDateView.new(due, prefs).due_date_mobile_html
|
||||
end
|
||||
|
||||
# Returns a count of next actions in the given context or project. The result
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module DueDateHelper
|
||||
module DateLabelHelper
|
||||
|
||||
class GenericDateView
|
||||
include ActionView::Context
|
|
@ -349,11 +349,8 @@ module TodosHelper
|
|||
end
|
||||
end
|
||||
|
||||
# Check show_from date in comparison to today's date Flag up date
|
||||
# appropriately with a 'traffic light' colour code
|
||||
#
|
||||
def show_date(date)
|
||||
return DueDateHelper::ShowFromDateView.new(date, prefs).show_from_date_html
|
||||
return DateLabelHelper::ShowFromDateView.new(date, prefs).show_from_date_html
|
||||
end
|
||||
|
||||
def date_field_tag(name, id, value = nil, options = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue