Skip to content

Commit

Permalink
Remove FROM_DAYS from UiConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
europ committed Aug 29, 2017
1 parent cb22457 commit 5b9f8b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/helpers/ui_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ module UiConstants
EXP_FROM = "FROM"
EXP_IS = "IS"

FROM_DAYS = [
N_('Today'),
N_('Yesterday'),
N_('2 Days Ago'),
N_('3 Days Ago'),
N_('4 Days Ago'),
N_('5 Days Ago'),
N_('6 Days Ago'),
N_('7 Days Ago'),
N_('14 Days Ago')
]
FROM_WEEKS = [
N_('This Week'),
N_('Last Week'),
Expand Down
12 changes: 12 additions & 0 deletions app/helpers/view_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ module ViewHelper
N_('23 Hours Ago')
].freeze

FROM_DAYS = [
N_('Today'),
N_('Yesterday'),
N_('2 Days Ago'),
N_('3 Days Ago'),
N_('4 Days Ago'),
N_('5 Days Ago'),
N_('6 Days Ago'),
N_('7 Days Ago'),
N_('14 Days Ago')
].freeze

class << self
def concat_tag(*args, &block)
concat content_tag(*args, &block)
Expand Down

0 comments on commit 5b9f8b1

Please sign in to comment.