<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'more'}} <i class="icon-dropdown"></i></a>
<ul class="dropdown-menu">
<li class="dropdown-header">{{t 'layout.dashboards'}}</li>
- {{#each contextDashboards}}
+ {{#withoutFirst contextDashboards}}
<li>
<a href="{{link url}}">{{name}}</a>
</li>
- {{/each}}
+ {{/withoutFirst}}
{{#if canManageContextDashboards}}
<li class="small-divider"></li>
<li>
href.indexOf('/component_issues') === -1;
return _.extend(Marionette.Layout.prototype.serializeData.apply(this, arguments), {
- canManageContextDashboards: window.SS.user != null,
+ canManageContextDashboards: !!window.SS.user,
contextKeyEncoded: encodeURIComponent(this.model.get('contextKey')),
isOverviewActive: isOverviewActive,
<%= link_to h(dashboard.name(true)), {:controller => :dashboard, :action => :index, :did => dashboard.id, :id => (resource_id unless dashboard.global?)},
:id => "view-#{u dashboard.name}" %>
<div class="description"><%= h dashboard.description -%></div>
+ <% if index == 0 %>
+ <div class="note spacer-top"><%= h message('dashboard.default_dashboard') -%></div>
+ <% end %>
</td>
<td class="shared">
<% if (dashboard.shared) %><i class="icon-check" id='<%= "dashboard-#{index}-shared" -%>'></i><% end %>
dashboard.delete_confirm_title=Delete dashboard
dashboard.delete_dashboard=Delete dashboard
dashboard.project_not_found=The requested project does not exist. Either it has never been analyzed successfully or it has been deleted.
+dashboard.default_dashboard=This dashboard is the default one and is displayed when clicking on "Overview".
#------------------------------------------------------------------------------