mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(surveys): Survey achievement
Updates the "Helped Habit Grow" achievement to be stackable. Also includes miscellaneous Bailey announcements for 3/10.
This commit is contained in:
@@ -57,5 +57,8 @@
|
||||
"whyAds": "Why Ads?",
|
||||
"whyAdsContent1": "Habit is an open source project, and can use all the help it can get - consider this a donation to the contributors. You also get 20 Gems from the purchase, which you can use to buy special items.",
|
||||
"whyAdsContent2": "'Hey, I backed the Kickstarter!' - follow",
|
||||
"whyAdsContent3": "these instructions"
|
||||
"whyAdsContent3": "these instructions",
|
||||
"surveysSingle": "Helped HabitRPG grow by filling out a survey. The latest survey can be found here:",
|
||||
"surveysMultiple": "Helped HabitRPG grow by filling out <%= surveys %> surveys. The latest survey can be found here:",
|
||||
"currentSurvey": "Current Survey"
|
||||
}
|
||||
|
||||
5
migrations/20150310_survey_achievements.js
Normal file
5
migrations/20150310_survey_achievements.js
Normal file
@@ -0,0 +1,5 @@
|
||||
db.users.update(
|
||||
{'achievements.helpedHabit':true},
|
||||
{$set:{'achievements.habitSurveys':1}},
|
||||
{multi:1}
|
||||
)
|
||||
@@ -32,7 +32,8 @@ var UserSchema = new Schema({
|
||||
_v: { type: Number, 'default': 0 },
|
||||
achievements: {
|
||||
originalUser: Boolean,
|
||||
helpedHabit: Boolean,
|
||||
helpedHabit: Boolean, //TODO: Deprecate this. Superseded by habitSurveys
|
||||
habitSurveys: Number,
|
||||
ultimateGear: Boolean,
|
||||
beastMaster: Boolean,
|
||||
beastMasterCount: Number,
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BOX
|
||||
h5 3/10/2015 - TESTIMONIALS GUILD AND CHAT EXTENSION
|
||||
hr
|
||||
tr
|
||||
td
|
||||
h5 Testimonials Guild
|
||||
p We're collecting testimonials from users to display on the front page along with pictures of their avatars. If HabitRPG has been helpful to you and you feel comfortable leaving a short testimonial for us, you can post it <a href='https://habitrpg.com/#/options/groups/guilds/ae985ab0-fcc3-410d-bdb3-ae4defe712bb' target='_blank'>here</a>. Thanks for all your help! <3
|
||||
tr
|
||||
td
|
||||
h5 Chat Extension
|
||||
p Horacious Moreau has made a <a href='https://chrome.google.com/webstore/detail/habitrpg-chat-client/hidkdfgonpoaiannijofifhjidbnilbb' target='_blank'>chat extension</a> for HabitRPG! It creates a chat box for Tavern, parties, and Guilds. :)
|
||||
br
|
||||
p The Chat Client is also open-source! You can check out the project <a href='https://github.com/Horacious/HabitRPG-Chat-Extension' target='_blank'>here</a>.
|
||||
p.small.muted by Horacious Moreau
|
||||
|
||||
hr
|
||||
a(href='/static/old-news', target='_blank') Read older news
|
||||
|
||||
mixin oldNews
|
||||
h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BOX
|
||||
tr
|
||||
td
|
||||
h5 March Backgrounds Revealed
|
||||
@@ -16,11 +33,6 @@ h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BO
|
||||
h5 March Mystery Box
|
||||
p Wow! What could it be? All Habiticans who are <a href='https://habitrpg.com/#/options/settings/subscription' target='_blank'>subscribed</a> during the month of March will receive the March Mystery Item Set! It will be revealed on the 25th, so keep your eyes peeled. Thanks for supporting the site <3
|
||||
p.small.muted by Lemoness
|
||||
|
||||
hr
|
||||
a(href='/static/old-news', target='_blank') Read older news
|
||||
|
||||
mixin oldNews
|
||||
h5 2/24/2015 - FEBRUARY SUBSCRIBER ITEM AND ADD MULTIPLE TASKS!
|
||||
tr
|
||||
td
|
||||
|
||||
@@ -120,13 +120,18 @@ div(ng-if='profile.achievements.rebirths')
|
||||
| {{profile.achievements.rebirthLevel}}.
|
||||
hr
|
||||
|
||||
div(ng-if='::profile.achievements.helpedHabit')
|
||||
.achievement.achievement-tree
|
||||
div(ng-if='::profile.achievements.habitSurveys || user._id == profile._id')
|
||||
.achievement.achievement-tree(ng-show='profile.achievements.habitSurveys')
|
||||
div(ng-class='{muted: !profile.achievements.habitSurveys}')
|
||||
h5=env.t('helped')
|
||||
small
|
||||
=env.t('helpedText1')
|
||||
small(ng-if='profile.achievements.habitSurveys > 1')
|
||||
=env.t('surveysMultiple', {surveys: "{{profile.achievements.habitSurveys"})
|
||||
|
|
||||
+aLink('http://community.habitrpg.com/node/290', env.t('helpedText2'))
|
||||
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
|
||||
small(ng-if='!(profile.achievements.habitSurveys > 1)')
|
||||
=env.t('surveysSingle')
|
||||
|
|
||||
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
|
||||
hr
|
||||
|
||||
div(ng-if=':: profile.achievements.veteran')
|
||||
|
||||
Reference in New Issue
Block a user