aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-02-06 16:29:42 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-02-06 16:29:42 +0100
commit7695be13eef827246b5eb87f7d11f8c1923c7842 (patch)
tree15cfb1237c216be89221b2398abfa58fb81664df /server/sonar-web
parent7bc3f415b7eece1a7c48278f6b788b15660f865a (diff)
downloadsonarqube-7695be13eef827246b5eb87f7d11f8c1923c7842.tar.gz
sonarqube-7695be13eef827246b5eb87f7d11f8c1923c7842.zip
SONAR-5886 apply feedback
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee5
-rw-r--r--server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs1
2 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee b/server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee
index 7877cccc72b..43a01eda477 100644
--- a/server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee
+++ b/server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee
@@ -18,6 +18,7 @@ define [
'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'
@@ -65,6 +66,10 @@ define [
@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
diff --git a/server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs b/server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs
index fb6925abc0a..42db596d3d7 100644
--- a/server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs
+++ b/server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs
@@ -23,6 +23,7 @@
<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>