Merge pull request #4834 from SabreCat/surveys

Survey achievement update
This commit is contained in:
Sabe Jones 2015-03-10 19:12:06 -05:00
commit c86257b585
5 changed files with 54 additions and 22 deletions

View file

@ -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"
}

View file

@ -0,0 +1,5 @@
db.users.update(
{'achievements.helpedHabit':true},
{$set:{'achievements.habitSurveys':1}},
{multi:1}
)

View file

@ -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,

View file

@ -1,26 +1,44 @@
h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BOX
h5 3/10/2015 - SURVEY, TESTIMONIALS GUILD, AND CHAT EXTENSION
hr
tr
td
h5 March Backgrounds Revealed
p There are three new avatar backgrounds in the <a href='https://habitrpg.com/#/options/profile/backgrounds' target='_blank'>Background Shop</a>! Now your avatar can dance in the Spring Rain, admire some Stained Glass, or frolic through the Rolling Hills!
p.small.muted by (in order) Sunstroke, Kiwibot, and Uncommon Criminal
h5 Survey and Achievement
.achievement.achievement-tree.pull-right
p We're giving out the rare Helped Habit Grow achievement to all users who help us out by completing <a href='https://www.surveymonkey.com/s/62RXRF3' target='_blank'>this 10-question survey</a>! If you already received this badge, taking this new survey will stack your achievement. Thanks for sparing a minute to let us know what you think about HabitRPG!
p.small.muted by sugarfiend and SabreCat
tr
td
h5 Android App Notifications
p The <a href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg' target='_blank'>Android app</a> can now remind you to log in! Simply go to Settings and select the time that you want the reminder.
p.small.muted by Negue
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
.inventory_present.pull-right
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
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
p There are three new avatar backgrounds in the <a href='https://habitrpg.com/#/options/profile/backgrounds' target='_blank'>Background Shop</a>! Now your avatar can dance in the Spring Rain, admire some Stained Glass, or frolic through the Rolling Hills!
p.small.muted by (in order) Sunstroke, Kiwibot, and Uncommon Criminal
tr
td
h5 Android App Notifications
p The <a href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg' target='_blank'>Android app</a> can now remind you to log in! Simply go to Settings and select the time that you want the reminder.
p.small.muted by Negue
tr
td
.inventory_present.pull-right
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
h5 2/24/2015 - FEBRUARY SUBSCRIBER ITEM AND ADD MULTIPLE TASKS!
tr
td

View file

@ -14,6 +14,20 @@
if mobile
.item.item-divider=env.t('achievements')
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(ng-if='profile.achievements.habitSurveys > 1')
=env.t('surveysMultiple', {surveys: "{{profile.achievements.habitSurveys}}"})
|&nbsp;
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
small(ng-if='!(profile.achievements.habitSurveys > 1)')
=env.t('surveysSingle')
| &nbsp;
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
hr
div(ng-if='::profile.backer.npc')
.achievement.achievement-helm
h5
@ -120,15 +134,6 @@ div(ng-if='profile.achievements.rebirths')
|&nbsp;{{profile.achievements.rebirthLevel}}.
hr
div(ng-if='::profile.achievements.helpedHabit')
.achievement.achievement-tree
h5=env.t('helped')
small
=env.t('helpedText1')
|&nbsp;
+aLink('http://community.habitrpg.com/node/290', env.t('helpedText2'))
hr
div(ng-if=':: profile.achievements.veteran')
.achievement.achievement-cake
div(ng-if='::profile.achievements.veteran')