aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-09 13:17:09 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-07-09 13:17:09 +0600
commit761002a42c71b6d132e86dbe7e12ecfaca5fd071 (patch)
tree60b3275042b149cb44d0a6c68f194ed0f8155980
parent535bf1dc24b3c65c8c5d2aa6ad43f97c85f5bbbf (diff)
downloadsonarqube-761002a42c71b6d132e86dbe7e12ecfaca5fd071.tar.gz
sonarqube-761002a42c71b6d132e86dbe7e12ecfaca5fd071.zip
SONAR-5333 Update links style inside markdown text
-rw-r--r--sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs4
-rw-r--r--sonar-server/src/main/hbs/issues/issue.hbs2
-rw-r--r--sonar-server/src/main/less/ui.less5
3 files changed, 8 insertions, 3 deletions
diff --git a/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
index f10a2691851..d2ae4a8a2b6 100644
--- a/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
+++ b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
@@ -48,7 +48,7 @@
{{/if}}
</ul>
-<div class="coding-rules-detail-description rule-desc">{{{htmlDesc}}}</div>
+<div class="coding-rules-detail-description rule-desc markdown">{{{htmlDesc}}}</div>
{{#if templateKey}}
{{#if canWrite}}
@@ -64,7 +64,7 @@
<div class="coding-rules-detail-description coding-rules-detail-description-extra">
<div id="coding-rules-detail-description-extra">
{{#if htmlNote}}
- <div class="rule-desc marginbottom10">{{{htmlNote}}}</div>{{/if}}
+ <div class="rule-desc marginbottom10 markdown">{{{htmlNote}}}</div>{{/if}}
{{#if canWrite}}<div class="button-group">
<button id="coding-rules-detail-extend-description">{{t 'coding_rules.extend_description'}}</button>
</div>{{/if}}
diff --git a/sonar-server/src/main/hbs/issues/issue.hbs b/sonar-server/src/main/hbs/issues/issue.hbs
index cbdb2c11765..ac3a80fd69e 100644
--- a/sonar-server/src/main/hbs/issues/issue.hbs
+++ b/sonar-server/src/main/hbs/issues/issue.hbs
@@ -135,7 +135,7 @@
data-confirm-msg="{{t 'issue.comment.delete_confirm_message'}}">{{t 'delete'}}</a>
{{/if}}
</h4>
- {{{show html htmlText}}}
+ <div class="markdown">{{{show html htmlText}}}</div>
</div>
{{/each}}
</div>
diff --git a/sonar-server/src/main/less/ui.less b/sonar-server/src/main/less/ui.less
index b4e98b5bd54..1b87bae4f2a 100644
--- a/sonar-server/src/main/less/ui.less
+++ b/sonar-server/src/main/less/ui.less
@@ -292,3 +292,8 @@ input[type=button] {
background-color: @red;
color: #fff;
}
+
+
+.markdown {
+ a { .underlined-link; }
+}