aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs/design/design.hbs
blob: b81223774e7fc86b25c92ff0d1d9683ee9fb06e6 (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
<div class="dsm-header">
  <i class="icon-help"></i> <a href="http://docs.codehaus.org/x/QQFhC">{{t 'design.help'}}</a>
</div>

<ul class="dsm-legend">
  <li>
    <span class="dsm-legend-square gray"></span>
    <span class="dsm-legend-label">{{t 'design.legend.dependencies'}}</span>
  </li>
  <li>
    <span class="dsm-legend-square red"></span>
    <span class="dsm-legend-label">{{t 'design.legend.cycles'}}</span>
  </li>
  <li>
    <span class="dsm-legend-square green"></span>
    <span class="dsm-legend-label">{{t 'design.legend.uses'}}</span>
    <span class="dsm-legend-square blue"></span>
    <span class="dsm-legend-label">{{t 'design.legend.uses'}}</span>
    <span class="dsm-legend-square yellow"></span>
  </li>
</ul>

<div class="dsm-body">
  <table>
    <tbody>
    {{#eachIndex items}}
      <tr>
        <td class="dsm-body-title" title="{{t 'design.rowTooltip'}}">
          {{qualifierIcon q}} {{n}}
          {{#gt pt 0}}
            <span class="dsm-body-title-package-tangles" title="{{t 'metric.package_cycles.name'}}">{{pt}}</span>
          {{/gt}}
          <span class="dsm-body-title-indicator"></span>
        </td>
        {{#eachIndex v}}
          <td class="dsm-body-cell {{#if status}}dsm-body-cell-{{status}}{{/if}}" title="{{t 'design.cellTooltip'}}">
            {{#eq index ../index}}{{else}}{{w}}{{/eq}}
          </td>
        {{/eachIndex}}
      </tr>
    {{/eachIndex}}
    </tbody>
  </table>
</div>

<div class="dsm-info"></div>