mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* dummy * Renamed internationalized strings to more meaningful names * moved the new group creation state out to its own URL, so it can also be linked to by the static/plans page * Added redirect-through-login functionality from the static/plans page new-group button This includes a static non-modal login page (similar to how other sites have both a login page and login modal) The login body has been abstracted out from its modal-specific view into mixins to accomplish this * deleted bak files added by mistake * deleted scripts added by mistake * changed static/plans Create Group button text * Added form link (https://github.com/HabitRPG/habitica/issues/8674#issuecomment-303518039) Removed changes to non-EN locale files (https://github.com/HabitRPG/habitica/pull/8729#issuecomment-303555211) * reverted key name changes as per https://github.com/HabitRPG/habitica/pull/8729#issuecomment-304515534 * changed $rootScope to $scope https://github.com/HabitRPG/habitica/pull/8729#discussion_r120695874
20 lines
461 B
JavaScript
20 lines
461 B
JavaScript
"use strict";
|
|
|
|
/*
|
|
A controller to manage the Group Plans page
|
|
*/
|
|
|
|
angular.module('habitrpg')
|
|
.controller("GroupPlansCtrl", ['$scope', '$window', 'Groups', 'Payments',
|
|
function($scope, $window, Groups, Payments) {
|
|
$scope.PAGES = {
|
|
BENEFITS: 'benefits',
|
|
};
|
|
$scope.activePage = $scope.PAGES.BENEFITS;
|
|
|
|
$scope.changePage = function (page) {
|
|
$scope.activePage = page;
|
|
$window.scrollTo(0, 0);
|
|
};
|
|
}]);
|