diff --git a/grails-app/assets/javascripts/digivol-stats.js b/grails-app/assets/javascripts/digivol-stats.js
index 5772370f..d39ca97e 100644
--- a/grails-app/assets/javascripts/digivol-stats.js
+++ b/grails-app/assets/javascripts/digivol-stats.js
@@ -67,22 +67,26 @@ function digivolStats(config) {
$log.error("Got error response for leaderboard", resp);
});
- var c = $http.get(config.contributorsUrl, {
- params: {
- institutionId: config.institutionId,
- projectId: config.projectId,
- projectType: config.projectType,
- tags: config.tags,
- maxContributors: config.maxContributors
- }
- });
- c.then(function (resp) {
- angular.extend($scope, resp.data);
- $scope.conLoading = false;
- },
- function (resp) {
- $log.error("Got error response for contributors", resp);
+ //console.log("Disable contributors: " + config.disableContribution);
+ if (config.disableContribution === false) {
+ console.log("Getting contributors");
+ var c = $http.get(config.contributorsUrl, {
+ params: {
+ institutionId: config.institutionId,
+ projectId: config.projectId,
+ projectType: config.projectType,
+ tags: config.tags,
+ maxContributors: config.maxContributors
+ }
});
+ c.then(function (resp) {
+ angular.extend($scope, resp.data);
+ $scope.conLoading = false;
+ },
+ function (resp) {
+ $log.error("Got error response for contributors", resp);
+ });
+ }
}
]);
}
diff --git a/grails-app/i18n/messages.properties b/grails-app/i18n/messages.properties
index 08b1d901..1415cf73 100644
--- a/grails-app/i18n/messages.properties
+++ b/grails-app/i18n/messages.properties
@@ -50,6 +50,8 @@ default.button.approve.label=Approve
default.button.delete.label=Delete
default.button.delete.confirm.message=Are you sure?
+default.leaderboard.describeBadges.label=Badges
+
# Data binding errors. Use "typeMismatch.$className.$propertyName to customize (eg typeMismatch.Book.author)
typeMismatch.java.net.URL=Property {0} must be a valid URL
typeMismatch.java.net.URI=Property {0} must be a valid URI
diff --git a/grails-app/views/about.gsp b/grails-app/views/about.gsp
index d1ce16dc..63edc1b2 100644
--- a/grails-app/views/about.gsp
+++ b/grails-app/views/about.gsp
@@ -138,7 +138,7 @@
-
+
diff --git a/grails-app/views/institution/index.gsp b/grails-app/views/institution/index.gsp
index b50d16dc..8ffac4eb 100644
--- a/grails-app/views/institution/index.gsp
+++ b/grails-app/views/institution/index.gsp
@@ -210,7 +210,7 @@
-
+
diff --git a/grails-app/views/institution/list.gsp b/grails-app/views/institution/list.gsp
index d224069b..a18946bc 100644
--- a/grails-app/views/institution/list.gsp
+++ b/grails-app/views/institution/list.gsp
@@ -175,7 +175,7 @@
-
+
diff --git a/grails-app/views/leaderBoard/_stats.gsp b/grails-app/views/leaderBoard/_stats.gsp
index 617e8b8b..8acd8a71 100644
--- a/grails-app/views/leaderBoard/_stats.gsp
+++ b/grails-app/views/leaderBoard/_stats.gsp
@@ -1,8 +1,10 @@
%{-- include CSS and JS assets in calling page --}%
+
+
-
+
${instName} Stats
@@ -25,8 +27,8 @@
-
-
+
+
@@ -128,8 +130,9 @@
-
+
+
@@ -177,8 +180,10 @@
+
+
digivolStats({
@@ -194,5 +199,6 @@ digivolStats({
maxContributors: ${maxContributors ?: 5},
disableStats: ${disableStats ? 'true' : 'false' },
disableHonourBoard: ${disableHonourBoard ? 'true' : 'false' },
+ disableContribution: ${disableContribution ? 'true' : 'false' }
});
\ No newline at end of file
diff --git a/grails-app/views/leaderBoard/describeBadges.gsp b/grails-app/views/leaderBoard/describeBadges.gsp
index 375081c8..d5be3a99 100644
--- a/grails-app/views/leaderBoard/describeBadges.gsp
+++ b/grails-app/views/leaderBoard/describeBadges.gsp
@@ -53,7 +53,7 @@
-
+
diff --git a/grails-app/views/project/customLandingPage.gsp b/grails-app/views/project/customLandingPage.gsp
index 93840044..e215305e 100644
--- a/grails-app/views/project/customLandingPage.gsp
+++ b/grails-app/views/project/customLandingPage.gsp
@@ -113,7 +113,7 @@
%{----}%
-
+
diff --git a/grails-app/views/project/index.gsp b/grails-app/views/project/index.gsp
index 62f51bcd..5121fd0f 100644
--- a/grails-app/views/project/index.gsp
+++ b/grails-app/views/project/index.gsp
@@ -179,7 +179,7 @@
%{-- mini leaderboard --}%
-
+
diff --git a/grails-app/views/project/list.gsp b/grails-app/views/project/list.gsp
index 5b8d34d9..e132f9b0 100644
--- a/grails-app/views/project/list.gsp
+++ b/grails-app/views/project/list.gsp
@@ -100,7 +100,7 @@
-
+
diff --git a/grails-app/views/project/wildlifespotter.gsp b/grails-app/views/project/wildlifespotter.gsp
index cdfb889e..26d9444f 100644
--- a/grails-app/views/project/wildlifespotter.gsp
+++ b/grails-app/views/project/wildlifespotter.gsp
@@ -112,7 +112,7 @@
-
+