aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-06 10:21:07 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-06 12:24:51 +0100
commitc4031cd579d5a25804ceac89725271d24a916f49 (patch)
treebcbe63b9c18577d5ae55003cd69655f9233b5818
parenta9d40993a6834e38af32538a75fa714e514bba1f (diff)
downloadsonarqube-c4031cd579d5a25804ceac89725271d24a916f49.tar.gz
sonarqube-c4031cd579d5a25804ceac89725271d24a916f49.zip
SONAR-5718 Improve creation date facet
-rw-r--r--server/sonar-web/src/main/hbs/issues/facets/issues-creation-date-facet.hbs17
1 files changed, 8 insertions, 9 deletions
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 a35bc81ebc4..5e33e15dd08 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
@@ -1,15 +1,14 @@
{{> '_issues-facet-header'}}
-<input type="hidden" name="createdAt">
-
{{#if createdAt}}
+ <input type="hidden" name="createdAt">
<div class="issues-facet-container">
- {{dt createdAt}}
+ {{dt createdAt}} ({{fromNow createdAt}})
+ </div>
+{{else}}
+ <div class="issues-facet-container justify">
+ <input type="text" class="issues-facet-input" name="createdAfter" placeholder="From">
+ to
+ <input type="text" class="issues-facet-input" name="createdBefore" placeholder="To">
</div>
{{/if}}
-
-<div class="issues-facet-container justify">
- <input type="text" class="issues-facet-input" name="createdAfter" placeholder="From">
- to
- <input type="text" class="issues-facet-input" name="createdBefore" placeholder="To">
-</div>