mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Shared Templates. In Progress.
Part 3: - Template container titles "Card/List/Board Templates" automatically translated. Thanks to xet7 ! Related #3313
This commit is contained in:
parent
2dca6e8e7c
commit
7f17bc9fb0
3 changed files with 22 additions and 8 deletions
|
@ -1,8 +1,11 @@
|
||||||
template(name="boardHeaderBar")
|
template(name="boardHeaderBar")
|
||||||
h1.header-board-menu
|
h1.header-board-menu
|
||||||
with currentBoard
|
with currentBoard
|
||||||
+viewer
|
if $eq title 'Templates'
|
||||||
= title
|
| {{_ 'templates'}}
|
||||||
|
else
|
||||||
|
+viewer
|
||||||
|
= title
|
||||||
|
|
||||||
.board-header-btns.left
|
.board-header-btns.left
|
||||||
unless isMiniScreen
|
unless isMiniScreen
|
||||||
|
|
|
@ -225,7 +225,8 @@ const CreateBoard = BlazeComponent.extendComponent({
|
||||||
|
|
||||||
this.boardId.set(
|
this.boardId.set(
|
||||||
Boards.insert({
|
Boards.insert({
|
||||||
title: TAPi18n.__('templates'),
|
// title: TAPi18n.__('templates'),
|
||||||
|
title: title,
|
||||||
permission: 'private',
|
permission: 'private',
|
||||||
type: 'template-container',
|
type: 'template-container',
|
||||||
}),
|
}),
|
||||||
|
@ -233,7 +234,8 @@ const CreateBoard = BlazeComponent.extendComponent({
|
||||||
|
|
||||||
// Insert the card templates swimlane
|
// Insert the card templates swimlane
|
||||||
Swimlanes.insert({
|
Swimlanes.insert({
|
||||||
title: TAPi18n.__('card-templates-swimlane'),
|
// title: TAPi18n.__('card-templates-swimlane'),
|
||||||
|
title: 'Card Templates',
|
||||||
boardId: this.boardId.get(),
|
boardId: this.boardId.get(),
|
||||||
sort: 1,
|
sort: 1,
|
||||||
type: 'template-container',
|
type: 'template-container',
|
||||||
|
@ -242,7 +244,8 @@ const CreateBoard = BlazeComponent.extendComponent({
|
||||||
// Insert the list templates swimlane
|
// Insert the list templates swimlane
|
||||||
Swimlanes.insert(
|
Swimlanes.insert(
|
||||||
{
|
{
|
||||||
title: TAPi18n.__('list-templates-swimlane'),
|
// title: TAPi18n.__('list-templates-swimlane'),
|
||||||
|
title: 'List Templates',
|
||||||
boardId: this.boardId.get(),
|
boardId: this.boardId.get(),
|
||||||
sort: 2,
|
sort: 2,
|
||||||
type: 'template-container',
|
type: 'template-container',
|
||||||
|
@ -252,7 +255,8 @@ const CreateBoard = BlazeComponent.extendComponent({
|
||||||
// Insert the board templates swimlane
|
// Insert the board templates swimlane
|
||||||
Swimlanes.insert(
|
Swimlanes.insert(
|
||||||
{
|
{
|
||||||
title: TAPi18n.__('board-templates-swimlane'),
|
//title: TAPi18n.__('board-templates-swimlane'),
|
||||||
|
title: 'Board Templates',
|
||||||
boardId: this.boardId.get(),
|
boardId: this.boardId.get(),
|
||||||
sort: 3,
|
sort: 3,
|
||||||
type: 'template-container',
|
type: 'template-container',
|
||||||
|
|
|
@ -11,8 +11,15 @@ template(name="swimlaneHeader")
|
||||||
template(name="swimlaneFixedHeader")
|
template(name="swimlaneFixedHeader")
|
||||||
.swimlane-header(
|
.swimlane-header(
|
||||||
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
||||||
+viewer
|
if $eq title 'Card Templates'
|
||||||
= title
|
| {{_ 'card-templates-swimlane'}}
|
||||||
|
else if $eq title 'List Templates'
|
||||||
|
| {{_ 'list-templates-swimlane'}}
|
||||||
|
else if $eq title 'Board Templates'
|
||||||
|
| {{_ 'board-templates-swimlane'}}
|
||||||
|
else
|
||||||
|
+viewer
|
||||||
|
= title
|
||||||
.swimlane-header-menu
|
.swimlane-header-menu
|
||||||
unless currentUser.isCommentOnly
|
unless currentUser.isCommentOnly
|
||||||
if currentUser.isBoardAdmin
|
if currentUser.isBoardAdmin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue