<script id="issue-detail-inner-template" type="text/x-handlebars-template">
- <div class="code-issue code-issue-collapsed code-issue-active" data-issue-key="{{key}}" data-issue-component="{{component}}" data-issue-rule="{{rule}}">
+ <div class="code-issue code-issue-collapsed" data-issue-key="{{key}}" data-issue-component="{{component}}" data-issue-rule="{{rule}}">
<div class="code-issue-name">
<div class="code-issue-name-rule">
{{severityIcon severity}} <a class="code-issue-toggle rulename">{{message}}</a>
</div>
</div>
- <div class="code-issue-details">
- <ul class="tabs">
- <li>
- <a href="#tab-issue-rule"><%= message('rule') -%></a>
- </li>
- <li>
- <a href="#tab-issue-changelog"><%= message('changelog') -%></a>
- </li>
- </ul>
-
- <div id="tab-issue-rule">
- <div class="rule-desc"></div>
- </div>
-
- <div id="tab-issue-changelog">
- <table class="spaced">
- <tbody>
- {{#each changelog}}
- <tr>
- <td class="thin left top" nowrap>{{fCreationDate}}</td>
- <td class="thin left top" nowrap>{{userName}}</td>
- <td class="left top">
- {{#each diffs}}
- {{this}}<br>
- {{/each}}
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- </div>
-
<ul class="code-issue-actions code-issue-list">
{{#inArray actions "comment"}}
{{#if resolution}}({{translate "resolutions" resolution}}){{/if}}
{{#ifNotEmpty transitions}}
- {{#withFirst transitions}}
- <a class="link-action issue-transition spacer-left" data-transition="{{this}}">{{translate "transitions" this}}</a>
- {{/withFirst}}
-
- {{#ifHasExtraTransitions transitions}}
- <div class="dropdown">
- <a class="link-action link-more" onclick="showDropdownMenuOnElement($j(this).next('.dropdown-menu')); return false;"></a>
- <ul style="display: none" class="dropdown-menu">
- {{#withoutFirst transitions}}
- <li>
- <a class="link-action issue-transition" data-transition="{{this}}">{{translate "transitions" this}}</a>
- </li>
- {{/withoutFirst}}
- </ul>
- </div>
-
- {{/ifHasExtraTransitions}}
+ {{#withFirst transitions}}
+ <a class="link-action issue-transition spacer-left" data-transition="{{this}}">{{translate "transitions" this}}</a>
+ {{/withFirst}}
+
+ {{#ifHasExtraTransitions transitions}}
+ <div class="dropdown">
+ <a class="link-action link-more" onclick="showDropdownMenuOnElement($j(this).next('.dropdown-menu')); return false;"></a>
+ <ul style="display: none" class="dropdown-menu">
+ {{#withoutFirst transitions}}
+ <li>
+ <a class="link-action issue-transition" data-transition="{{this}}">{{translate "transitions" this}}</a>
+ </li>
+ {{/withoutFirst}}
+ </ul>
+ </div>
+
+ {{/ifHasExtraTransitions}}
{{/ifNotEmpty}}
</li>
{{#inArray actions "assign"}}
- <li>
- {{#if assigneeName}}
- <a id="issue-assign" class="link-action"><%= message('assigned_to') -%></a> {{assigneeName}}</li>
- {{else}}
- <a id="issue-assign" class="link-action">{{translate "actions.assign" }}</a>
- {{#inArray actions "assign_to_me"}}
- [<a id="issue-assign-to-me" class="link-action">{{translate "actions.assign_to_me" }}</a>]
- {{/inArray}}
- {{/if}}
+ <li>
+ {{#if assigneeName}}
+ <a id="issue-assign" class="link-action"><%= message('assigned_to') -%></a> {{assigneeName}}</li>
+ {{else}}
+ <a id="issue-assign" class="link-action">{{translate "actions.assign" }}</a>
+ {{#inArray actions "assign_to_me"}}
+ [<a id="issue-assign-to-me" class="link-action">{{translate "actions.assign_to_me" }}</a>]
+ {{/inArray}}
+ {{/if}}
</li>
{{else}}
{{#if assigneeName}}
{{#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}}
- {{#if actionPlanName}}
- <%= message('issue.planned_for') -%> <strong>{{actionPlanName}}</strong>
- {{/if}}
- </li>
+ <a id="issue-plan" class="link-action"><%= message('issue.do_plan') -%></a>
+ {{/if}}
+ {{else}}
+ {{#if actionPlanName}}
+ <%= message('issue.planned_for') -%> <strong>{{actionPlanName}}</strong>
+ {{/if}}
+ </li>
{{/inArray}}
<div class="code-issue-form"></div>
+ <div class="code-issue-details">
+ <ul class="tabs">
+ <li>
+ <a href="#tab-issue-rule"><%= message('rule') -%></a>
+ </li>
+ <li>
+ <a href="#tab-issue-changelog"><%= message('changelog') -%></a>
+ </li>
+ </ul>
+
+ <div id="tab-issue-rule">
+ <div class="rule-desc"></div>
+ </div>
+
+ <div id="tab-issue-changelog">
+ <table class="spaced">
+ <tbody>
+ {{#each changelog}}
+ <tr>
+ <td class="thin left top" nowrap>{{fCreationDate}}</td>
+ <td class="thin left top" nowrap>{{userName}}</td>
+ <td class="left top">
+ {{#each diffs}}
+ {{this}}<br>
+ {{/each}}
+ </td>
+ </tr>
+ {{/each}}
+ </tbody>
+ </table>
+ </div>
+ </div>
+
+
<div class="code-issue-comments">
{{#each comments}}
<div class="code-issue-comment" data-comment-key="{{key}}">
display: none;
}
-.code-issue-active .code-issue-name,
-.code-issue-active .code-issue-details,
-.code-issue-active .code-issue-actions,
-.code-issue-active .code-issue-form,
-.code-issue-active .code-issue-comments,
-.code-issue-active .code-issue-comment {
- background-color: #CAE3F2;
- border-color: #4B9FD5;
-}
-
-.code-issue-active .code-issue-name,
-.code-issue-active .code-issue-details {
- border-bottom: none;
-}
-
-.code-issue-active .code-issue-details .tabs {
- border-color: #4B9FD5;
-}
-
.tab_header {
border-bottom: 1px solid #DDD;
background-color: #EFEFEF;