Update translations and title of date badges.

This commit is contained in:
shoetten 2016-02-10 15:51:55 +01:00
parent 5dd554b999
commit aa5ed6e484
4 changed files with 18 additions and 11 deletions

View file

@ -148,10 +148,6 @@ const CardDate = BlazeComponent.extendComponent({
}); });
}, },
showTitle() {
return this.date.get().format('LLLL');
},
showISODate() { showISODate() {
return this.date.get().toISOString(); return this.date.get().toISOString();
}, },
@ -173,6 +169,10 @@ class CardStartDate extends CardDate {
} }
} }
showTitle() {
return TAPi18n.__('card-start-on') + ' ' + this.date.get().format('LLLL');
}
events() { events() {
return super.events().concat({ return super.events().concat({
'click .js-edit-date': Popup.open('editCardStartDate'), 'click .js-edit-date': Popup.open('editCardStartDate'),
@ -199,6 +199,10 @@ class CardDueDate extends CardDate {
return 'almost-due'; return 'almost-due';
} }
showTitle() {
return TAPi18n.__('card-due-on') + ' ' + this.date.get().format('LLLL');
}
events() { events() {
return super.events().concat({ return super.events().concat({
'click .js-edit-date': Popup.open('editCardDueDate'), 'click .js-edit-date': Popup.open('editCardDueDate'),

View file

@ -30,9 +30,9 @@
color: #fff color: #fff
&.current &.current
background-color: #42ca00 background-color: #5ba639
&:hover, &.is-active &:hover, &.is-active
background-color: darken(#42ca00, 15) background-color: darken(#5ba639, 10)
&.almost-due &.almost-due
background-color: #edc909 background-color: #edc909
@ -42,7 +42,7 @@
&.due &.due
background-color: #fa3f00 background-color: #fa3f00
&:hover, &.is-active &:hover, &.is-active
background-color: darken(#fa3f00, 15) background-color: darken(#fa3f00, 10)
&.long-overdue &.long-overdue
background-color: #fd5d47 background-color: #fd5d47

View file

@ -37,12 +37,12 @@ template(name="cardDetails")
if startAt if startAt
.card-details-item.card-details-item-start .card-details-item.card-details-item-start
h3.card-details-item-title {{_ 'start-at'}} h3.card-details-item-title {{_ 'card-start'}}
+cardStartDate +cardStartDate
if dueAt if dueAt
.card-details-item.card-details-item-due .card-details-item.card-details-item-due
h3.card-details-item-title {{_ 'due-at'}} h3.card-details-item-title {{_ 'card-due'}}
+cardDueDate +cardDueDate

View file

@ -88,11 +88,15 @@
"card-delete-notice": "Deleting is permanent. You will lose all actions associated with this card.", "card-delete-notice": "Deleting is permanent. You will lose all actions associated with this card.",
"card-delete-pop": "All actions will be removed from the activity feed and you won't be able to re-open the card. There is no undo.", "card-delete-pop": "All actions will be removed from the activity feed and you won't be able to re-open the card. There is no undo.",
"card-delete-suggest-archive": "You can archive a card to remove it from the board and preserve the activity.", "card-delete-suggest-archive": "You can archive a card to remove it from the board and preserve the activity.",
"card-due": "Due",
"card-due-on": "Due on",
"card-edit-attachments": "Edit attachments", "card-edit-attachments": "Edit attachments",
"card-edit-labels": "Edit labels", "card-edit-labels": "Edit labels",
"card-edit-members": "Edit members", "card-edit-members": "Edit members",
"card-labels-title": "Change the labels for the card.", "card-labels-title": "Change the labels for the card.",
"card-members-title": "Add or remove members of the board from the card.", "card-members-title": "Add or remove members of the board from the card.",
"card-start": "Start",
"card-start-on": "Starts on",
"cardAttachmentsPopup-title": "Attach From", "cardAttachmentsPopup-title": "Attach From",
"cardDeletePopup-title": "Delete Card?", "cardDeletePopup-title": "Delete Card?",
"cardDetailsActionsPopup-title": "Card Actions", "cardDetailsActionsPopup-title": "Card Actions",
@ -144,7 +148,6 @@
"discard": "Discard", "discard": "Discard",
"done": "Done", "done": "Done",
"download": "Download", "download": "Download",
"due-at": "Due",
"edit": "Edit", "edit": "Edit",
"edit-avatar": "Change Avatar", "edit-avatar": "Change Avatar",
"edit-profile": "Edit Profile", "edit-profile": "Edit Profile",
@ -201,6 +204,7 @@
"importMapMembersAddPopup-title": "Select Wekan member", "importMapMembersAddPopup-title": "Select Wekan member",
"info": "Infos", "info": "Infos",
"initials": "Initials", "initials": "Initials",
"invalid-date": "Invalid date",
"joined": "joined", "joined": "joined",
"just-invited": "You are just invited to this board", "just-invited": "You are just invited to this board",
"keyboard-shortcuts": "Keyboard shortcuts", "keyboard-shortcuts": "Keyboard shortcuts",
@ -286,7 +290,6 @@
"star-board-title": "Click to star this board. It will show up at top of your boards list.", "star-board-title": "Click to star this board. It will show up at top of your boards list.",
"starred-boards": "Starred Boards", "starred-boards": "Starred Boards",
"starred-boards-description": "Starred boards show up at the top of your boards list.", "starred-boards-description": "Starred boards show up at the top of your boards list.",
"start-at": "Start",
"subscribe": "Subscribe", "subscribe": "Subscribe",
"team": "Team", "team": "Team",
"this-board": "this board", "this-board": "this board",