mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
new client various fixes: all users now see challenge progress, changes to create strings, etc (#9078)
* adjust how User > Profile is referred to * change "Create" to "Add Task" in a Challenge's page * remove commented-out code for making a Group Plan cost Gems (there should be no Gem cost) * split 'create' locales string into multiple strings for different purposes - Allows text to be changed individually for each purpose. - Assists translators in determining the best translation. - Makes it easier to find locations in code for each string. * remove "public" option for Group Plan creation modal * allow all users to see challenge participant progress
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
.svg-icon.gem-icon(v-html="icons.gemIcon")
|
.svg-icon.gem-icon(v-html="icons.gemIcon")
|
||||||
| {{challenge.prize}}
|
| {{challenge.prize}}
|
||||||
.details(v-once) {{$t('prize')}}
|
.details(v-once) {{$t('prize')}}
|
||||||
.row.leader-actions(v-if='isLeader')
|
.row.challenge-actions
|
||||||
.col-7.offset-5
|
.col-7.offset-5
|
||||||
span.view-progress
|
span.view-progress
|
||||||
strong {{ $t('viewProgressOf') }}
|
strong {{ $t('viewProgressOf') }}
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
b-dropdown-item(v-for="member in members", :key="member._id", @click="openMemberProgressModal(member._id)")
|
b-dropdown-item(v-for="member in members", :key="member._id", @click="openMemberProgressModal(member._id)")
|
||||||
| {{ member.profile.name }}
|
| {{ member.profile.name }}
|
||||||
span(v-if='isLeader')
|
span(v-if='isLeader')
|
||||||
b-dropdown.create-dropdown(:text="$t('create')", :variant="'success'")
|
b-dropdown.create-dropdown(:text="$t('addTaskToChallenge')", :variant="'success'")
|
||||||
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
||||||
| {{$t(type)}}
|
| {{$t(type)}}
|
||||||
task-modal(
|
task-modal(
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leader-actions {
|
.challenge-actions {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
|
||||||
.view-progress {
|
.view-progress {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
b-dropdown(:right="true", :variant="'success'")
|
b-dropdown(:right="true", :variant="'success'")
|
||||||
div(slot="button-content")
|
div(slot="button-content")
|
||||||
.svg-icon.positive(v-html="icons.positive")
|
.svg-icon.positive(v-html="icons.positive")
|
||||||
| {{ $t('create') }}
|
| {{ $t('addTaskToGroupPlan') }}
|
||||||
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
||||||
span.dropdown-icon-item(v-once)
|
span.dropdown-icon-item(v-once)
|
||||||
span.svg-icon.inline(v-html="icons[type]")
|
span.svg-icon.inline(v-html="icons[type]")
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
b-dropdown-item(v-for='sortOption in sortOptions', :key="sortOption.value", @click='sort(sortOption.value)') {{sortOption.text}}
|
b-dropdown-item(v-for='sortOption in sortOptions', :key="sortOption.value", @click='sort(sortOption.value)') {{sortOption.text}}
|
||||||
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
|
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
|
||||||
.svg-icon.positive-icon(v-html="icons.positiveIcon")
|
.svg-icon.positive-icon(v-html="icons.positiveIcon")
|
||||||
span(v-once) {{$t('create')}}
|
span(v-once) {{$t('createGuild2')}}
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
public-guild-item(v-for="guild in filteredGuilds", :key='guild._id', :guild="guild", :display-leave='true')
|
public-guild-item(v-for="guild in filteredGuilds", :key='guild._id', :guild="guild", :display-leave='true')
|
||||||
|
|||||||
@@ -86,31 +86,20 @@ div
|
|||||||
label(for='new-group-description') {{ $t('description') }}
|
label(for='new-group-description') {{ $t('description') }}
|
||||||
textarea.form-control#new-group-description.option-content(cols='3', :placeholder="$t('description')", v-model='newGroup.description')
|
textarea.form-control#new-group-description.option-content(cols='3', :placeholder="$t('description')", v-model='newGroup.description')
|
||||||
.form-group(v-if='type === "guild"')
|
.form-group(v-if='type === "guild"')
|
||||||
.radio
|
|
||||||
label
|
|
||||||
input(type='radio', name='new-group-privacy', value='public', v-model='newGroup.privacy')
|
|
||||||
| {{ $t('public') }}
|
|
||||||
.radio
|
.radio
|
||||||
label
|
label
|
||||||
input(type='radio', name='new-group-privacy', value='private', v-model='newGroup.privacy')
|
input(type='radio', name='new-group-privacy', value='private', v-model='newGroup.privacy')
|
||||||
| {{ $t('inviteOnly') }}
|
| {{ $t('inviteOnly') }}
|
||||||
|
|
||||||
// @TODO Does it cost gems for a group plan?
|
|
||||||
.form-group
|
|
||||||
input.btn.btn-default(type='submit', :disabled='!newGroup.privacy && !newGroup.name', :value="$t('create')")
|
|
||||||
span.gem-cost {{ '4 ' + $t('gems') }}
|
|
||||||
p
|
|
||||||
small {{ $t('gemCost') }}
|
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
.checkbox
|
.checkbox
|
||||||
label
|
label
|
||||||
input(type='checkbox', v-model='newGroup.leaderOnly.challenges')
|
input(type='checkbox', v-model='newGroup.leaderOnly.challenges')
|
||||||
| {{ $t('leaderOnlyChallenges') }}
|
| {{ $t('leaderOnlyChallenges') }}
|
||||||
.form-group(v-if='type === "party"')
|
.form-group(v-if='type === "party"')
|
||||||
button.btn.btn-default.form-control(@click='createGroup()', :value="$t('create')")
|
button.btn.btn-default.form-control(@click='createGroup()', :value="$t('createGroupPlan')")
|
||||||
.form-group
|
.form-group
|
||||||
button.btn.btn-primary.btn-lg.btn-block(@click="createGroup()", :disabled="!newGroupIsReady") {{ $t('create') }}
|
button.btn.btn-primary.btn-lg.btn-block(@click="createGroup()", :disabled="!newGroupIsReady") {{ $t('createGroupPlan') }}
|
||||||
.col-12(v-if='activePage === PAGES.PAY')
|
.col-12(v-if='activePage === PAGES.PAY')
|
||||||
.payment-providers
|
.payment-providers
|
||||||
h3 Choose your payment method
|
h3 Choose your payment method
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
.col-4
|
.col-4
|
||||||
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
|
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
|
||||||
.svg-icon.positive-icon(v-html="icons.positiveIcon")
|
.svg-icon.positive-icon(v-html="icons.positiveIcon")
|
||||||
span(v-once) {{$t('create')}}
|
span(v-once) {{$t('createGuild2')}}
|
||||||
// @TODO: Add when we implement recent activity .float-right
|
// @TODO: Add when we implement recent activity .float-right
|
||||||
span.dropdown-label {{ $t('sortBy') }}
|
span.dropdown-label {{ $t('sortBy') }}
|
||||||
b-dropdown(:text="$t('sort')", right=true)
|
b-dropdown(:text="$t('sort')", right=true)
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
b-dropdown(:right="true", :variant="'success'")
|
b-dropdown(:right="true", :variant="'success'")
|
||||||
div(slot="button-content")
|
div(slot="button-content")
|
||||||
.svg-icon.positive(v-html="icons.positive")
|
.svg-icon.positive(v-html="icons.positive")
|
||||||
| {{ $t('create') }}
|
| {{ $t('addTaskToUser') }}
|
||||||
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
|
||||||
span.dropdown-icon-item(v-once)
|
span.dropdown-icon-item(v-once)
|
||||||
span.svg-icon.inline(v-html="icons[type]", :class='`icon_${type}`')
|
span.svg-icon.inline(v-html="icons[type]", :class='`icon_${type}`')
|
||||||
|
|||||||
@@ -13,8 +13,10 @@
|
|||||||
"challengeWinner": "Was the winner in the following challenges",
|
"challengeWinner": "Was the winner in the following challenges",
|
||||||
"challenges": "Challenges",
|
"challenges": "Challenges",
|
||||||
"challengesLink": "<a href='http://habitica.wikia.com/wiki/Challenges' target='_blank'>Challenges</a>",
|
"challengesLink": "<a href='http://habitica.wikia.com/wiki/Challenges' target='_blank'>Challenges</a>",
|
||||||
|
|
||||||
"noChallenges": "No challenges yet, visit",
|
"noChallenges": "No challenges yet, visit",
|
||||||
"toCreate": "to create one.",
|
"toCreate": "to create one.",
|
||||||
|
|
||||||
"selectWinner": "Select a winner and close the challenge:",
|
"selectWinner": "Select a winner and close the challenge:",
|
||||||
"deleteOrSelect": "Delete or select winner",
|
"deleteOrSelect": "Delete or select winner",
|
||||||
"endChallenge": "End Challenge",
|
"endChallenge": "End Challenge",
|
||||||
@@ -29,6 +31,7 @@
|
|||||||
"either": "Either",
|
"either": "Either",
|
||||||
"createChallenge": "Create Challenge",
|
"createChallenge": "Create Challenge",
|
||||||
"createChallengeAddTasks": "Add Challenge Tasks",
|
"createChallengeAddTasks": "Add Challenge Tasks",
|
||||||
|
"addTaskToChallenge": "Add Task",
|
||||||
"discard": "Discard",
|
"discard": "Discard",
|
||||||
"challengeTitle": "Challenge Title",
|
"challengeTitle": "Challenge Title",
|
||||||
"challengeTag": "Tag Name",
|
"challengeTag": "Tag Name",
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
"wantExistingParty": "Want to join an existing party? Go to the <%= linkStart %>Party Wanted Guild<%= linkEnd %> and post this User ID:",
|
"wantExistingParty": "Want to join an existing party? Go to the <%= linkStart %>Party Wanted Guild<%= linkEnd %> and post this User ID:",
|
||||||
"joinExistingParty": "Join Someone Else's Party",
|
"joinExistingParty": "Join Someone Else's Party",
|
||||||
"needPartyToStartQuest": "Whoops! You need to <a href='http://habitica.wikia.com/wiki/Party' target='_blank'>create or join a party</a> before you can start a quest!",
|
"needPartyToStartQuest": "Whoops! You need to <a href='http://habitica.wikia.com/wiki/Party' target='_blank'>create or join a party</a> before you can start a quest!",
|
||||||
|
"createGroupPlan": "Create",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
"userId": "User ID",
|
"userId": "User ID",
|
||||||
"invite": "Invite",
|
"invite": "Invite",
|
||||||
@@ -92,6 +93,7 @@
|
|||||||
"search": "Search",
|
"search": "Search",
|
||||||
"publicGuilds": "Public Guilds",
|
"publicGuilds": "Public Guilds",
|
||||||
"createGuild": "Create Guild",
|
"createGuild": "Create Guild",
|
||||||
|
"createGuild2": "Create",
|
||||||
"guild": "Guild",
|
"guild": "Guild",
|
||||||
"guilds": "Guilds",
|
"guilds": "Guilds",
|
||||||
"guildsLink": "<a href='http://habitica.wikia.com/wiki/Guilds' target='_blank'>Guilds</a>",
|
"guildsLink": "<a href='http://habitica.wikia.com/wiki/Guilds' target='_blank'>Guilds</a>",
|
||||||
@@ -315,6 +317,7 @@
|
|||||||
"userMustBeMember": "User must be a member",
|
"userMustBeMember": "User must be a member",
|
||||||
"userIsNotManager": "User is not manager",
|
"userIsNotManager": "User is not manager",
|
||||||
"canOnlyApproveTaskOnce": "This task has already been approved.",
|
"canOnlyApproveTaskOnce": "This task has already been approved.",
|
||||||
|
"addTaskToGroupPlan": "Create",
|
||||||
"leaderMarker": " - Leader",
|
"leaderMarker": " - Leader",
|
||||||
"managerMarker": " - Manager",
|
"managerMarker": " - Manager",
|
||||||
"joinedGuild": "Joined a Guild",
|
"joinedGuild": "Joined a Guild",
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
"email": "Email",
|
"email": "Email",
|
||||||
"registerWithSocial": "Register with <%= network %>",
|
"registerWithSocial": "Register with <%= network %>",
|
||||||
"registeredWithSocial": "Registered with <%= network %>",
|
"registeredWithSocial": "Registered with <%= network %>",
|
||||||
"loginNameDescription": "This is what you use to login to Habitica. To change it, use the form below. If instead you want to change the Display Name that appears on your avatar and in chat messages, go to User->Profile and click the Edit button.",
|
"loginNameDescription": "This is what you use to log in to Habitica. To change it, use the form below. If instead you want to change the Display Name that appears on your avatar and in chat messages, go to the User Icon > Profile and click the Edit button.",
|
||||||
"emailNotifications": "Email Notifications",
|
"emailNotifications": "Email Notifications",
|
||||||
"wonChallenge": "You won a Challenge!",
|
"wonChallenge": "You won a Challenge!",
|
||||||
"newPM": "Received Private Message",
|
"newPM": "Received Private Message",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"addsingle": "Add Single",
|
"addsingle": "Add Single",
|
||||||
"editATask": "Edit a <%= type %>",
|
"editATask": "Edit a <%= type %>",
|
||||||
"createTask": "Create <%= type %>",
|
"createTask": "Create <%= type %>",
|
||||||
|
"addTaskToUser": "Create",
|
||||||
"scheduled": "Scheduled",
|
"scheduled": "Scheduled",
|
||||||
"theseAreYourTasks": "These are your <%= taskType %>",
|
"theseAreYourTasks": "These are your <%= taskType %>",
|
||||||
"habit": "Habit",
|
"habit": "Habit",
|
||||||
|
|||||||
Reference in New Issue
Block a user