quality_gates.no_conditions=No Conditions
quality_gates.introduction=Only project measures are checked against thresholds. Modules, packages and classes are ignored.
quality_gates.health_icons=Project health icons represent:
-quality_gates.projects_for_default=You must not select specific projects for the default quality gate.
+quality_gates.projects_for_default=Every project not specifically associated to a quality gate will be associated to this one by default.
+quality_gates.projects_for_default.edit=You must not select specific projects for the default quality gate.
quality_gates.projects.with=With
quality_gates.projects.without=Without
quality_gates.projects.all=All
"quality_gates.projects.with",
"quality_gates.projects.without",
"quality_gates.projects_for_default",
+ "quality_gates.projects_for_default.edit",
"quality_gates.rename",
"rename",
"save",
<div class="quality-gate-section-name">{{t 'quality_gates.projects'}}</div>
{{#if default}}
- <p>{{t 'quality_gates.projects_for_default'}}</p>
+ {{#if canEdit}}
+ <p>{{t 'quality_gates.projects_for_default.edit'}}</p>
+ {{else}}
+ <p>{{t 'quality_gates.projects_for_default'}}</p>
+ {{/if}}
{{else}}
<div id="select-list-projects"></div>
{{/if}}
tooltips:
select: t('quality_gates.projects.select_hint')
deselect: t('quality_gates.projects.deselect_hint')
+
+ serializeData: ->
+ _.extend super, canEdit: @options.app.canEdit
}
};
+ QualityGateDetailProjectsView.prototype.serializeData = function() {
+ return _.extend(QualityGateDetailProjectsView.__super__.serializeData.apply(this, arguments), {
+ canEdit: this.options.app.canEdit
+ });
+ };
+
return QualityGateDetailProjectsView;
})(Marionette.ItemView);
Collection<Map> periods = (Collection<Map>) responseJson.get("periods");
assertThat(periods).hasSize(3);
Map messages = (Map) responseJson.get("messages");
- assertThat(messages).isNotNull().isNotEmpty().hasSize(46);
+ assertThat(messages).isNotNull().isNotEmpty().hasSize(47);
for (Entry message: (Set<Entry>) messages.entrySet()) {
assertThat(message.getKey()).isEqualTo(message.getValue());
}