aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs/issue/issue.hbs
blob: 2eedfcdcc5220aacdefac106883fbac1e9e75a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<table class="issue-table">
  <tr>
    <td>
      <div class="issue-message">{{message}} <a class="issue-rule js-issue-rule">{{t 'rule'}}</a></div>
    </td>

    <td class="issue-table-meta-cell">
      <div class="issue-meta-list">
        {{#if debt}}
          <div class="issue-meta">
            <span class="issue-meta-label">{{t 'issue.debt'}} {{debt}}</span>
          </div>
        {{/if}}

        <div class="issue-meta">
          <a class="issue-action issue-action-with-options js-issue-show-changelog" title="{{dt creationDate}}">
            <span class="issue-meta-label">{{fromNow creationDate}}</span>&nbsp;<i class="icon-dropdown"></i>
          </a>
        </div>

        {{#if line}}
          <div class="issue-meta">
            <span class="issue-meta-label" title="{{t 'line_number'}}">L{{line}}</span>
          </div>
        {{/if}}

        <div class="issue-meta">
          <a class="issue-action js-issue-permalink icon-link" href="{{permalink}}" target="_blank"></a>
        </div>
      </div>
    </td>
  </tr>
</table>

<table class="issue-table">
  <tr>
    <td>
      <div class="issue-meta-list">
        <div class="issue-meta">
          {{#inArray actions "set_severity"}}
            <a class="issue-action issue-action-with-options js-issue-set-severity">
              <span class="issue-meta-label">{{severity severity}}</span>&nbsp;<i class="icon-dropdown"></i>
            </a>
          {{else}}
            {{severity severity}}
          {{/inArray}}
        </div>

        <div class="issue-meta">
          {{#notEmpty transitions}}
            <a class="issue-action issue-action-with-options js-issue-transition">
              <span class="issue-meta-label">{{statusHelper status resolution}}</span>&nbsp;<i
                class="icon-dropdown"></i>
            </a>
          {{else}}
            {{statusHelper status resolution}}
          {{/notEmpty}}
        </div>

        <div class="issue-meta">
          {{#inArray actions "assign"}}
            <a class="issue-action issue-action-with-options js-issue-assign">
        <span
            class="issue-meta-label">{{#if assignee}}{{default assigneeName assignee}}{{else}}{{t 'unassigned'}}{{/if}}</span>&nbsp;<i
                class="icon-dropdown"></i>
            </a>
          {{else}}
            <span
                class="issue-meta-label">{{#if assignee}}{{default assigneeName assignee}}{{else}}{{t 'unassigned'}}{{/if}}</span>
          {{/inArray}}
        </div>

        {{#inArray actions "assign_to_me"}}
          <a class="js-issue-assign-to-me"></a>
        {{/inArray}}

        <div class="issue-meta">
          {{#inArray actions "plan"}}
            <a class="issue-action issue-action-with-options js-issue-plan">
        <span
            class="issue-meta-label">{{#if actionPlan}}{{default actionPlanName actionPlan}}{{else}}{{t 'issue.unplanned'}}{{/if}}</span>&nbsp;<i
                class="icon-dropdown"></i>
            </a>
          {{else}}
            <span
                class="issue-meta-label">{{#if actionPlan}}{{default actionPlanName actionPlan}}{{else}}{{t 'issue.unplanned'}}{{/if}}</span>
          {{/inArray}}
        </div>

        {{#inArray actions "comment"}}
          <div class="issue-meta">
            <a class="issue-action js-issue-comment"><span
                class="issue-meta-label">{{t 'issue.comment.formlink' }}</span></a>
          </div>
        {{/inArray}}

        {{#ifHasExtraActions actions}}
          <div class="issue-meta">
            <a class="issue-action issue-action-with-options js-issue-more">
              <span class="issue-meta-label">{{t 'more'}}</span>&nbsp;<i class="icon-dropdown"></i>
            </a>
          </div>
        {{/ifHasExtraActions}}
      </div>
    </td>

    <td class="issue-table-meta-cell">
      <div class="issue-meta js-issue-tags">
        {{#inArray actions "set_tags"}}
          <a class="issue-action issue-action-with-options js-issue-edit-tags">
            <span>
              <i class="icon-tags"></i>&nbsp;<span>{{#if tags}}{{join tags ', '}}{{else}}{{t 'issue.no_tag'}}{{/if}}</span>
            </span>&nbsp;<i class="icon-dropdown"></i>
          </a>
        {{else}}
          <span>
            <i class="icon-tags"></i>&nbsp;<span>{{#if tags}}{{join tags ', '}}{{else}}{{t 'issue.no_tag'}}{{/if}}</span>
          </span>
        {{/inArray}}
      </div>
    </td>
  </tr>
</table>

{{#notEmpty comments}}
  <div class="issue-comments">
    {{#each comments}}
      <div class="issue-comment" data-comment-key="{{key}}">
        <div class="issue-comment-author" title="{{userName}}"><i class="icon-comment"></i>&nbsp;{{userName}}
        </div>
        <div class="issue-comment-text markdown">{{{show html htmlText}}}</div>
        <div class="issue-comment-age">({{fromNow createdAt}})</div>
        <div class="issue-comment-actions">
          {{#if updatable}}
            <a class="js-issue-comment-edit">{{t 'edit'}}</a>&nbsp;
            <a class="link-red js-issue-comment-delete"
               data-confirm-msg="{{t 'issue.comment.delete_confirm_message'}}">{{t 'delete'}}</a>
          {{/if}}
        </div>
      </div>
    {{/each}}
  </div>
{{/notEmpty}}

<a class="issue-navigate js-issue-navigate">
  <i class="issue-navigate-to-left icon-chevron-left"></i>
  <i class="issue-navigate-to-right icon-chevron-right"></i>
</a>