diff --git a/grunt-tasks/concat.js b/grunt-tasks/concat.js
index ba5252746..e540306df 100644
--- a/grunt-tasks/concat.js
+++ b/grunt-tasks/concat.js
@@ -28,13 +28,13 @@ module.exports = function(grunt) {
],
dest: "<%= jsDistPath %>/<%= pkg.name %>.js"
},
- diagnose: {
+ untriaged: {
src: [
"<%= jsPath %>/lib/models/label-list.js",
"<%= jsPath %>/lib/models/issue.js",
- "<%= jsPath %>/lib/diagnose.js"
+ "<%= jsPath %>/lib/untriaged.js"
],
- dest: "<%= jsDistPath %>/diagnose.js"
+ dest: "<%= jsDistPath %>/untriaged.js"
},
issues: {
src: [
diff --git a/grunt-tasks/uglify.js b/grunt-tasks/uglify.js
index 6c234ca67..94ff9591a 100644
--- a/grunt-tasks/uglify.js
+++ b/grunt-tasks/uglify.js
@@ -28,9 +28,9 @@ module.exports = function(grunt) {
src: "<%= concat.userActivity.dest %>",
dest: "<%= jsDistPath %>/user-activity.min.js"
},
- diagnose: {
- src: "<%= concat.diagnose.dest %>",
- dest: "<%= jsDistPath %>/diagnose.min.js"
+ untriaged: {
+ src: "<%= concat.untriaged.dest %>",
+ dest: "<%= jsDistPath %>/untriaged.min.js"
},
contributors: {
src: "<%= jsPath %>/lib/contributors.js",
diff --git a/tests/functional/index-non-auth.js b/tests/functional/index-non-auth.js
index a9bd34619..e0ca97319 100755
--- a/tests/functional/index-non-auth.js
+++ b/tests/functional/index-non-auth.js
@@ -61,7 +61,7 @@ registerSuite("Index", {
return FunctionalHelpers.openPage(this, url("/"), ".js-hero-title")
.findAllByCssSelector("#js-lastIssue .js-IssueList.label-needstriage")
.then(function(elms) {
- assert.equal(elms.length, 10, "10 issues should be displayed");
+ assert.equal(elms.length, 5, "5 issues should be displayed");
})
.end()
.findByCssSelector(".js-IssueList.label-needstriage .js-issue-number")
diff --git a/webcompat/static/js/lib/diagnose.js b/webcompat/static/js/lib/untriaged.js
similarity index 68%
rename from webcompat/static/js/lib/diagnose.js
rename to webcompat/static/js/lib/untriaged.js
index 0f3386622..0f2b47e25 100644
--- a/webcompat/static/js/lib/diagnose.js
+++ b/webcompat/static/js/lib/untriaged.js
@@ -2,20 +2,20 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-var diagnose = diagnose || {}; // eslint-disable-line no-use-before-define
+var untriaged = untriaged || {}; // eslint-disable-line no-use-before-define
var issues = issues || {}; // eslint-disable-line no-use-before-define
-diagnose.NeedsTriageCollection = Backbone.Collection.extend({
+untriaged.NeedsTriageCollection = Backbone.Collection.extend({
model: issues.Issue,
url: "/api/issues/category/needstriage"
});
-diagnose.NeedsTriageView = Backbone.View.extend({
+untriaged.NeedsTriageView = Backbone.View.extend({
el: $("#js-lastIssue"),
initialize: function() {
var self = this;
var headersBag = { headers: { Accept: "application/json" } };
- this.issues = new diagnose.NeedsTriageCollection();
+ this.issues = new untriaged.NeedsTriageCollection();
this.issues
.fetch(headersBag)
.done(function() {
@@ -27,8 +27,8 @@ diagnose.NeedsTriageView = Backbone.View.extend({
render: function() {
this.$el.html(
this.template({
- // Just display the first 10.
- issues: this.issues.toJSON().slice(0, 10)
+ // Just display the first 5.
+ issues: this.issues.toJSON().slice(0, 5)
})
);
return this;
@@ -36,5 +36,5 @@ diagnose.NeedsTriageView = Backbone.View.extend({
});
$(function() {
- new diagnose.NeedsTriageView();
+ new untriaged.NeedsTriageView();
});
diff --git a/webcompat/templates/index.html b/webcompat/templates/index.html
index 4b0bb6f6d..4c51470e0 100644
--- a/webcompat/templates/index.html
+++ b/webcompat/templates/index.html
@@ -13,10 +13,10 @@
{% endblock %}
{%- block extrascripts -%}
{%- if config.PRODUCTION or config.STAGING -%}
-
+
{%- else -%}
-
+
{%- endif -%}
{%- endblock %}