blob: fcaf9cc2672906b3fe026f3f6cc064201c2477c7 (
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
|
<div class="container">
<div class="navbar-header">
<a class="navbar-brand {{#if logoUrl}}navbar-brand-custom{{/if}}" href="{{link '/'}}">
{{#if logoUrl}}
<img src="{{logoUrl}}" {{#if logoWidth}}width="{{logoWidth}}"{{/if}} height="30"
alt="{{t 'layout.sonar.slogan'}}" title="{{t 'layout.sonar.slogan'}}">
{{else}}
{{> '_nav-logo'}}
{{/if}}
</a>
</div>
<ul class="nav navbar-nav">
<li class="dropdown t-dashboards">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{{t 'layout.dashboards'}} <span class="icon-dropdown"></span>
</a>
<ul class="dropdown-menu">
{{#each globalDashboards}}
<li>
<a href="{{link '/dashboard/index?did=' key}}">{{dashboardL10n name}}</a>
</li>
{{/each}}
{{#if canManageGlobalDashboards}}
<li class="divider"></li>
<li>
<a href="{{link '/dashboards'}}">{{t 'dashboard.manage_dashboards'}}</a>
</li>
{{/if}}
</ul>
</li>
<li {{#isActiveLink '/issues'}}class="active"{{/isActiveLink}}>
<a href="{{link '/issues/search'}}">{{t 'issues.page'}}</a>
</li>
<li {{#isActiveLink '/measures'}}class="active"{{/isActiveLink}}>
<a href="{{link '/measures/search?qualifiers[]=TRK'}}">{{t 'layout.measures'}}</a>
</li>
<li {{#isActiveLink '/coding_rules'}}class="active"{{/isActiveLink}}>
<a href="{{link '/coding_rules'}}">{{t 'coding_rules.page'}}</a>
</li>
<li {{#isActiveLink '/profiles'}}class="active"{{/isActiveLink}}>
<a href="{{link '/profiles'}}">{{t 'quality_profiles.page'}}</a>
</li>
<li {{#isActiveLink '/quality_gates'}}class="active"{{/isActiveLink}}>
<a href="{{link '/quality_gates'}}">{{t 'quality_gates.page'}}</a>
</li>
{{#if isUserAdmin}}
<li {{#isActiveLink '/settings'}}class="active"{{/isActiveLink}}>
<a class="navbar-admin-link" href="{{link '/settings'}}">{{t 'layout.settings'}}</a>
</li>
{{/if}}
<li class="dropdown t-more">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'more'}} <i class="icon-dropdown"></i></a>
<ul class="dropdown-menu">
<li>
<a href="{{link '/comparison'}}">{{t 'comparison_global.page'}}</a>
</li>
<li>
<a href="{{link '/dependencies'}}">{{t 'dependencies.page'}}</a>
</li>
{{#each globalPages}}
<li>
<a href="{{link url}}">{{name}}</a>
</li>
{{/each}}
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
{{#if user}}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{{userName}} <span class="icon-dropdown"></span>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a href="{{link '/account/index'}}">{{t 'layout.user_panel.my_profile'}}</a>
</li>
<li>
<a href="{{link '/sessions/logout'}}"
onclick="if (sonarRecentHistory) { sonarRecentHistory.clear(); }">{{t 'layout.logout'}}</a>
</li>
</ul>
</li>
{{else}}
<li>
<a class="js-login" href="{{link '/sessions/new'}}">{{t 'layout.login'}}</a>
</li>
{{/if}}
<li class="dropdown js-search-dropdown">
<a class="dropdown-toggle navbar-search-dropdown js-search-dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-search navbar-icon"></i> <span class="icon-dropdown"></span>
</a>
<div class="js-search-region dropdown-menu dropdown-menu-right"></div>
</li>
<li>
<a class="js-shortcuts" href="#">
<i class="icon-help navbar-icon"></i>
</a>
</li>
</ul>
</div>
|