'click .js-select-period-start': 'selectPeriodStart'
'click .js-select-period-end': 'selectPeriodEnd'
+ 'click .js-all': 'onAllClick'
'click .js-last-week': 'onLastWeekClick'
'click .js-last-month': 'onLastMonthClick'
'click .js-last-year': 'onLastYearClick'
@options.app.state.updateFilter createdAfter: null, createdBefore: null, createdAt: null
+ onAllClick: ->
+ @disable()
+
+
onLastWeekClick: ->
createdAfter = moment().subtract(1, 'weeks').format 'YYYY-MM-DD'
@options.app.state.updateFilter createdAfter: createdAfter, createdBefore: null, createdAt: null
<div class="spacer-top">
<span class="spacer-right">{{t 'issues.facet.createdAt.or'}}</span>
+ <a class="js-all spacer-right">{{t 'issues.facet.createdAt.all'}}</a>
<a class="js-last-week spacer-right">{{t 'issues.facet.createdAt.last_week'}}</a>
<a class="js-last-month spacer-right">{{t 'issues.facet.createdAt.last_month'}}</a>
<a class="js-last-year">{{t 'issues.facet.createdAt.last_year'}}</a>
issues.facet.rules=Rule
issues.facet.resolutions=Resolution
issues.facet.languages=Language
-issues.facet.createdAt=Creation Date
+issues.facet.createdAt=New Issues
issues.facet.createdAt.or=Or:
+issues.facet.createdAt.all=All
issues.facet.createdAt.last_week=Last week
issues.facet.createdAt.last_month=Last month
issues.facet.createdAt.last_year=Last year