aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-06 11:23:34 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-06 12:24:52 +0100
commitb7e3c205a224d06c418f1975693df36867684091 (patch)
tree73af27de2e4b1acd7e20b4f0396ef9f6b7b05ae0 /server/sonar-web/src
parent8e4d90c805e8493b01acbaf90d310700b8b0fbc8 (diff)
downloadsonarqube-b7e3c205a224d06c418f1975693df36867684091.tar.gz
sonarqube-b7e3c205a224d06c418f1975693df36867684091.zip
SONAR-5600 Improve the format of the creation date label
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/hbs/issue/issue.hbs26
-rw-r--r--server/sonar-web/src/main/hbs/issues/issues-issue.hbs26
-rw-r--r--server/sonar-web/src/main/less/ui.less4
3 files changed, 30 insertions, 26 deletions
diff --git a/server/sonar-web/src/main/hbs/issue/issue.hbs b/server/sonar-web/src/main/hbs/issue/issue.hbs
index 963370e2ac7..853d7d6fb70 100644
--- a/server/sonar-web/src/main/hbs/issue/issue.hbs
+++ b/server/sonar-web/src/main/hbs/issue/issue.hbs
@@ -33,15 +33,15 @@
{{#inArray actions "assign"}}
- <li>
- {{#if assigneeName}}
- <a id="issue-assign" class="link-action">{{t 'assigned_to'}}</a> {{assigneeName}}</li>
- {{else}}
- <a id="issue-assign" class="link-action">{{t 'issue.assign.formlink' }}</a>
- {{#inArray actions "assign_to_me"}}
- [<a id="issue-assign-to-me" class="link-action">{{t 'issue.assign.to_me' }}</a>]
- {{/inArray}}
- {{/if}}
+ <li>
+ {{#if assigneeName}}
+ <a id="issue-assign" class="link-action">{{t 'assigned_to'}}</a> {{assigneeName}}
+ {{else}}
+ <a id="issue-assign" class="link-action">{{t 'issue.assign.formlink' }}</a>
+ {{#inArray actions "assign_to_me"}}
+ [<a id="issue-assign-to-me" class="link-action">{{t 'issue.assign.to_me' }}</a>]
+ {{/inArray}}
+ {{/if}}
</li>
{{else}}
{{#if assigneeName}}
@@ -95,12 +95,12 @@
<li>{{t 'issue.technical_debt_short'}}: {{debt}}</li>
{{/if}}
- {{#if creationDate}}
- <li>{{t 'issue.creation_date'}}: {{dt creationDate}}</li>
- {{/if}}
-
{{#if reporterName}}<li>{{t 'reporter'}}: {{reporterName}}</li>{{/if}}
{{#if author}}<li>{{t 'author'}}: {{author}}</li>{{/if}}
+
+ {{#if creationDate}}
+ <li class="first-letter-uppercase" title="{{t 'issue.creation_date'}}: {{dt creationDate}}">{{fromNow creationDate}}</li>
+ {{/if}}
</ul>
<div class="code-issue-form" style="display: none;"></div>
diff --git a/server/sonar-web/src/main/hbs/issues/issues-issue.hbs b/server/sonar-web/src/main/hbs/issues/issues-issue.hbs
index a841fdbce52..f83e692f16c 100644
--- a/server/sonar-web/src/main/hbs/issues/issues-issue.hbs
+++ b/server/sonar-web/src/main/hbs/issues/issues-issue.hbs
@@ -33,15 +33,15 @@
{{#inArray actions "assign"}}
- <li>
- {{#if assigneeName}}
- <a id="issue-assign" class="link-action">{{t 'assigned_to'}}</a> {{assigneeName}}</li>
- {{else}}
- <a id="issue-assign" class="link-action">{{t 'issue.assign.formlink' }}</a>
- {{#inArray actions "assign_to_me"}}
- [<a id="issue-assign-to-me" class="link-action">{{t 'issue.assign.to_me' }}</a>]
- {{/inArray}}
- {{/if}}
+ <li>
+ {{#if assigneeName}}
+ <a id="issue-assign" class="link-action">{{t 'assigned_to'}}</a> {{assigneeName}}
+ {{else}}
+ <a id="issue-assign" class="link-action">{{t 'issue.assign.formlink' }}</a>
+ {{#inArray actions "assign_to_me"}}
+ [<a id="issue-assign-to-me" class="link-action">{{t 'issue.assign.to_me' }}</a>]
+ {{/inArray}}
+ {{/if}}
</li>
{{else}}
{{#if assigneeName}}
@@ -95,12 +95,12 @@
<li>{{t 'issue.technical_debt_short'}}: {{debt}}</li>
{{/if}}
- {{#if creationDate}}
- <li>{{t 'issue.creation_date'}}: {{dt creationDate}}</li>
- {{/if}}
-
{{#if reporterName}}<li>{{t 'reporter'}}: {{reporterName}}</li>{{/if}}
{{#if author}}<li>{{t 'author'}}: {{author}}</li>{{/if}}
+
+ {{#if creationDate}}
+ <li class="first-letter-uppercase" title="{{t 'issue.creation_date'}}: {{dt creationDate}}">{{fromNow creationDate}}</li>
+ {{/if}}
</ul>
<div class="code-issue-form" style="display: none;"></div>
diff --git a/server/sonar-web/src/main/less/ui.less b/server/sonar-web/src/main/less/ui.less
index 5b1776e0228..f23e9e733ae 100644
--- a/server/sonar-web/src/main/less/ui.less
+++ b/server/sonar-web/src/main/less/ui.less
@@ -90,6 +90,10 @@ select::-moz-focus-inner, input::-moz-focus-inner, button::-moz-focus-inner {
visibility: hidden !important;
}
+.first-letter-uppercase::first-letter {
+ text-transform: uppercase;
+}
+
/*
* Links