Skip to content

Commit

Permalink
Merge pull request #127 from BillionOysterProject/protocol-refactor
Browse files Browse the repository at this point in the history
Misc fixes
  • Loading branch information
thetif authored Jun 14, 2016
2 parents c70d7f8 + 179340a commit 99d6851
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
3 changes: 2 additions & 1 deletion config/env/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = {
}
},
app: {
title: 'Billion Oyster Project'
title: 'Billion Oyster Project',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
Expand Down
3 changes: 2 additions & 1 deletion config/env/staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ module.exports = {
}
},
app: {
title: 'Billion Oyster Project - Staging Environment'
title: 'Billion Oyster Project - Staging Environment',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
Expand Down
11 changes: 11 additions & 0 deletions modules/core/server/views/layout.server.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@
<!--Load The Socket.io File-->
<script type="text/javascript" src="/socket.io/socket.io.js"></script>

<!--Google Analytics-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', '{{googleAnalyticsTrackingID}}', 'auto');
ga('send', 'pageview');
</script>

<!--Application JavaScript Files-->
{% for jsFile in jsFiles %}<script type="text/javascript" src="{{jsFile}}"></script>{% endfor %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

vm.dateTime = {
min: moment().subtract(7, 'days').toDate(),
min: moment().subtract(1, 'days').toDate(),
max: moment().add(1, 'year').toDate()
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
byOwner: true,
teamId: '',
searchString: '',
page: 1,
limit: 8
//page: 1,
//limit: 8
};

vm.fieldChanged = function($event) {
Expand All @@ -37,8 +37,8 @@
byOwner: true,
teamId: vm.filter.teamId,
searchString: vm.filter.searchString,
page: vm.filter.page,
limit: vm.filter.limit
//page: vm.filter.page,
//limit: vm.filter.limit
}, function(data) {
vm.members = data;
vm.buildPager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ angular.module('users.admin').controller('UserListController', ['$scope', '$filt
organizationId: '',
role: '',
searchString: '',
sort: '',
limit: 20,
page: 1
sort: 'lastName',
//limit: 20,
//page: 1
};

$scope.organizations = SchoolOrganizationsService.query();
Expand All @@ -31,8 +31,8 @@ angular.module('users.admin').controller('UserListController', ['$scope', '$filt
role: $scope.filter.role,
searchString: $scope.filter.searchString,
sort: $scope.filter.sort,
limit: $scope.filter.limit,
page: $scope.filter.page,
//limit: $scope.filter.limit,
//page: $scope.filter.page,
showTeams: true
}, function (data) {
$scope.users = data;
Expand Down

0 comments on commit 99d6851

Please sign in to comment.