mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(event): End Valentine's
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.6 KiB |
@@ -84,14 +84,12 @@ angular.module('habitrpg')
|
|||||||
$scope._expandedMenu = ($scope._expandedMenu == menu) ? null : menu;
|
$scope._expandedMenu = ($scope._expandedMenu == menu) ? null : menu;
|
||||||
};
|
};
|
||||||
|
|
||||||
function selectNotificationValue(mysteryValue, invitationValue, holidayCardValue, unallocatedValue, messageValue, noneValue) {
|
function selectNotificationValue(mysteryValue, invitationValue, unallocatedValue, messageValue, noneValue) {
|
||||||
var user = $scope.user;
|
var user = $scope.user;
|
||||||
if (user.purchased && user.purchased.plan && user.purchased.plan.mysteryItems && user.purchased.plan.mysteryItems.length) {
|
if (user.purchased && user.purchased.plan && user.purchased.plan.mysteryItems && user.purchased.plan.mysteryItems.length) {
|
||||||
return mysteryValue;
|
return mysteryValue;
|
||||||
} else if ((user.invitations.party && user.invitations.party.id) || (user.invitations.guilds && user.invitations.guilds.length > 0)) {
|
} else if ((user.invitations.party && user.invitations.party.id) || (user.invitations.guilds && user.invitations.guilds.length > 0)) {
|
||||||
return invitationValue;
|
return invitationValue;
|
||||||
} else if ((user.items.special.valentineReceived[0] || user.items.special.nyeReceived[0])) {
|
|
||||||
return holidayCardValue;
|
|
||||||
} else if (user.flags.classSelected && !(user.preferences && user.preferences.disableClasses) && user.stats.points) {
|
} else if (user.flags.classSelected && !(user.preferences && user.preferences.disableClasses) && user.stats.points) {
|
||||||
return unallocatedValue;
|
return unallocatedValue;
|
||||||
} else if (!(_.isEmpty(user.newMessages))) {
|
} else if (!(_.isEmpty(user.newMessages))) {
|
||||||
@@ -105,14 +103,13 @@ angular.module('habitrpg')
|
|||||||
return selectNotificationValue(
|
return selectNotificationValue(
|
||||||
"glyphicon-gift",
|
"glyphicon-gift",
|
||||||
"glyphicon-user",
|
"glyphicon-user",
|
||||||
"glyphicon-envelope",
|
|
||||||
"glyphicon-plus-sign",
|
"glyphicon-plus-sign",
|
||||||
"glyphicon-comment",
|
"glyphicon-comment",
|
||||||
"glyphicon-comment inactive");
|
"glyphicon-comment inactive");
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.hasNoNotifications = function() {
|
$scope.hasNoNotifications = function() {
|
||||||
return selectNotificationValue(false, false, false, false, false, true);
|
return selectNotificationValue(false, false, false, false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------ Social ----------
|
// ------ Social ----------
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
|||||||
p
|
p
|
||||||
| 20
|
| 20
|
||||||
span.shop_gold
|
span.shop_gold
|
||||||
div
|
// div
|
||||||
button.customize-option(popover='{{::Content.spells.special.valentine.notes()}}', popover-title='{{::Content.spells.special.valentine.text()}}', popover-trigger='mouseenter', popover-placement='right', popover-append-to-body='true', ng-click='castStart(Content.spells.special.valentine)', class='inventory_special_valentine')
|
button.customize-option(popover='{{::Content.spells.special.valentine.notes()}}', popover-title='{{::Content.spells.special.valentine.text()}}', popover-trigger='mouseenter', popover-placement='right', popover-append-to-body='true', ng-click='castStart(Content.spells.special.valentine)', class='inventory_special_valentine')
|
||||||
p
|
p
|
||||||
| {{Content.spells.special.valentine.value}}
|
| {{Content.spells.special.valentine.value}}
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ nav.toolbar(ng-controller='AuthCtrl', ng-class='{active: isToolbarHidden}')
|
|||||||
span {{v.name}}
|
span {{v.name}}
|
||||||
a(ng-click='Groups.seenMessage(k)', popover=env.t('clear'),popover-placement='right',popover-trigger='mouseenter',popover-append-to-body='true')
|
a(ng-click='Groups.seenMessage(k)', popover=env.t('clear'),popover-placement='right',popover-trigger='mouseenter',popover-append-to-body='true')
|
||||||
span.glyphicon.glyphicon-remove-circle
|
span.glyphicon.glyphicon-remove-circle
|
||||||
li(ng-if='user.items.special.valentineReceived[0] || user.items.special.nyeReceived[0]')
|
// li(ng-if='user.items.special.valentineReceived[0] || user.items.special.nyeReceived[0]')
|
||||||
a(ng-click='$state.go("options.inventory.drops"); expandMenu(null)')
|
a(ng-click='$state.go("options.inventory.drops"); expandMenu(null)')
|
||||||
span.glyphicon.glyphicon-envelope
|
span.glyphicon.glyphicon-envelope
|
||||||
span=env.t('holidayCard')
|
span=env.t('holidayCard')
|
||||||
|
|||||||
Reference in New Issue
Block a user