]> source.dussan.org Git - sonarqube.git/commitdiff
New Issues Page: fix displaying action plan for non-authorized user
authorStas Vilchik <vilchiks@gmail.com>
Thu, 6 Feb 2014 09:38:29 +0000 (15:38 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 6 Feb 2014 09:55:00 +0000 (15:55 +0600)
sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_inner.hbs.erb

index 54a6aa84112c47c0e7fc4ef48a23dba6746a7f6c..2dde26e37c3282465ad0159a9adb7606c6d091d8 100644 (file)
 
 
       {{#inArray actions "plan"}}
-      <li>
-        {{#if actionPlanName}}
-          <a id="issue-plan" class="link-action"><%= message('issue.planned_for') -%></a> {{actionPlanName}}
-        {{else}}
-          <a id="issue-plan" class="link-action"><%= message('issue.do_plan') -%></a>
-        {{/if}}
+        <li>
+          {{#if actionPlanName}}
+            <a id="issue-plan" class="link-action"><%= message('issue.planned_for') -%></a> {{actionPlanName}}
+          {{else}}
+            <a id="issue-plan" class="link-action"><%= message('issue.do_plan') -%></a>
+          {{/if}}
+        </li>
       {{else}}
         {{#if actionPlanName}}
-          <%= message('issue.planned_for') -%> <strong>{{actionPlanName}}</strong>
+          <li><%= message('issue.planned_for') -%> <strong>{{actionPlanName}}</strong></li>
         {{/if}}
-      </li>
       {{/inArray}}