this.app.router.navigate('');
this.app.layout.headerRegion.reset();
this.app.layout.detailsRegion.reset();
- //this.app.layout.renderIntro();
+ this.app.layout.renderIntro();
this.app.gatesView.highlight(null);
}
--- /dev/null
+define([
+ './templates'
+], function () {
+
+ return Marionette.ItemView.extend({
+ template: Templates['quality-gates-intro']
+ });
+
+});
define([
+ './intro-view',
'./templates'
-], function () {
+], function (IntroView) {
var $ = jQuery;
var top = $('.search-navigator').offset().top;
this.$('.search-navigator-workspace-header').css({ top: top });
this.$('.search-navigator-side').css({ top: top }).isolatedScroll();
+ this.renderIntro();
+ },
+
+ renderIntro: function () {
+ this.detailsRegion.show(new IntroView());
}
});
--- /dev/null
+<p class="spacer-bottom">Quality Gates are collections of simple boolean thresholds set on project measures. A project
+ must pass each of the thresholds in order to pass the Quality Gate as a whole.</p>
+<p>It is possible to set a default Quality Gate, which will be applied to all projects not explicitly assigned to some
+ other gate.</p>
</div>
<div class="search-navigator-workspace">
- <div class="search-navigator-workspace-header"> </div>
- <div class="search-navigator-workspace-details">{{> '_quality-gate-intro'}}</div>
+ <div class="search-navigator-workspace-header"></div>
+ <div class="search-navigator-workspace-details"></div>
</div>