]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5886 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Fri, 6 Feb 2015 15:29:42 +0000 (16:29 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 6 Feb 2015 15:29:42 +0000 (16:29 +0100)
server/sonar-web/src/main/coffee/issues/facets/creation-date-facet.coffee
server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 7877cccc72bd4c48a435b3e1381f2136739ccc8d..43a01eda4775a15a7bf4e6b89f58dddf9d988678 100644 (file)
@@ -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
index fb6925abc0aed970813534dbd11f60cb35e4e7e7..42db596d3d78f63a93afaed850529dca90ec1e01 100644 (file)
@@ -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>
index 5bce0644a859a0cd875d36b118c9524cdbc20ce5..3698bebfe196a26fdd755977d2a638741611ea62 100644 (file)
@@ -818,8 +818,9 @@ issues.facet.tags=Tag
 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