issue_filter.delete_confirm_title=Delete Filter
issue_filter.are_you_sure_want_delete_filter_x=Are you sure that you want to delete the filter "{0}"?
issue_filter.private=Private
+issue_filter.shared=Shared
issue_filter.shared_with_all_users=Shared with all users
issue_filter.sharing=Sharing
issue_filter.no_issues=No Issues
<script id="issues-header-template" type="text/x-handlebars-template">
- <h1 class="navigator-header-title">{{#if name}}{{name}}{{else}}<%= message ('issues') -%>{{/if}}</h1>
+ <h1 class="navigator-header-title">
+ {{#if name}}
+ {{name}}
+ <span class="navigator-header-title-note">
+ {{#unless shared}}
+ [<%= message 'issue_filter.private' -%>]
+ {{else}}
+ {{#eq user currentUser}}
+ [<%= message 'issue_filter.shared_with_all_users' -%>]
+ {{else}}
+ {{#if user}}
+ [<%= message 'issue_filter.shared' -%>]
+ {{/if}}
+ {{/eq}}
+ {{/unless}}
+ </span>
+ {{else}}
+ <%= message ('issues') -%>
+ {{/if}}
+ </h1>
<div class="navigator-header-actions button-group">
<button id="issues-new-search"><%= message ('issue_filter.new_search') -%></button>
<h1 id="filter-title" class="navigator-header-title">
<% if @filter.id && @filter.name.present? %>
<%= h @filter.name -%>
- <% if !@filter.shared %>
- [<%= message 'measure_filter.private' -%>]
- <% elsif logged_in? && @filter.user_id==current_user.id %>
- [<%= message 'measure_filter.shared_with_all_users' -%>]
- <% elsif @filter.user_id %>
- [<%= message 'shared_by' -%> <%= @filter.user.name -%>]
- <% else %>
- [<%= message 'shared_by' -%> Sonar]
- <% end %>
+ <span class="navigator-header-title-note">
+ <% if !@filter.shared %>
+ [<%= message 'measure_filter.private' -%>]
+ <% elsif logged_in? && @filter.user_id==current_user.id %>
+ [<%= message 'measure_filter.shared_with_all_users' -%>]
+ <% elsif @filter.user_id %>
+ [<%= message 'shared_by' -%> <%= @filter.user.name -%>]
+ <% else %>
+ [<%= message 'shared_by' -%> Sonar]
+ <% end %>
+ </span>
<% else %>
<%= message('layout.measures') -%>
<% end %>
serializeData: function () {
return _.extend({
canSave: this.model.id && this.options.app.state.get('search'),
- appState: window.SS.appState.toJSON()
+ appState: window.SS.appState.toJSON(),
+ currentUser: window.SS.currentUser
}, this.model.toJSON());
}
font-size: 20px;
line-height: 37px;
}
+.navigator-header-title-note {
+ vertical-align: middle;
+ color: #777;
+ font-size: 11px;
+}
.navigator-header-description {
display: inline-block;
vertical-align: middle;
font-size: 20px;
line-height: 37px;
}
+.navigator-header-title-note {
+ vertical-align: middle;
+ color: #777;
+ font-size: 11px;
+}
.navigator-header-description {
display: inline-block;
vertical-align: middle;
line-height: @navigatorHeaderHeight;
}
+.navigator-header-title-note {
+ vertical-align: middle;
+ color: #777;
+ font-size: @smallFontSize;
+}
+
.navigator-header-description {
display: inline-block;
vertical-align: middle;