summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-05-11 23:40:18 +0300
committerLauri Ojansivu <x@xet7.org>2019-05-11 23:40:18 +0300
commitb795115042c2eb6bccbf029f21d78849a44128ca (patch)
tree29c2682387b22e3b4eeeccd3fb6b3daac6236a14 /client
parent52fe845d2427afdda1a426b9f616d400a4dafae1 (diff)
downloadwekan-b795115042c2eb6bccbf029f21d78849a44128ca.tar.gz
wekan-b795115042c2eb6bccbf029f21d78849a44128ca.tar.bz2
wekan-b795115042c2eb6bccbf029f21d78849a44128ca.zip
- [View markdown on List names, Custom Fields (Text and Dropdown), Label names,
All Boards view Board names and Board descriptions](https://github.com/wekan/wekan/issues/2334). Thanks to shaygover and xet7 ! Related #2334
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardsList.jade8
-rw-r--r--client/components/cards/cardCustomFields.jade13
-rw-r--r--client/components/cards/cardDetails.jade7
-rw-r--r--client/components/cards/labels.jade3
-rw-r--r--client/components/cards/minicard.jade3
-rw-r--r--client/components/lists/listHeader.jade3
-rw-r--r--client/components/sidebar/sidebar.jade4
-rw-r--r--client/components/sidebar/sidebarCustomFields.jade4
8 files changed, 32 insertions, 13 deletions
diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade
index 0739def6..85f47963 100644
--- a/client/components/boards/boardsList.jade
+++ b/client/components/boards/boardsList.jade
@@ -18,11 +18,15 @@ template(name="boardList")
else
a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
span.details
- span.board-list-item-name= title
+ span.board-list-item-name
+ +viewer
+ = title
i.fa.js-star-board(
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
title="{{_ 'star-board-title'}}")
- p.board-list-item-desc= description
+ p.board-list-item-desc
+ +viewer
+ = description
if hasSpentTimeCards
i.fa.js-has-spenttime-cards(
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
diff --git a/client/components/cards/cardCustomFields.jade b/client/components/cards/cardCustomFields.jade
index 65081e3b..c4fa6863 100644
--- a/client/components/cards/cardCustomFields.jade
+++ b/client/components/cards/cardCustomFields.jade
@@ -4,9 +4,10 @@ template(name="cardCustomFieldsPopup")
li.item(class="")
a.name.js-select-field(href="#")
span.full-name
+ +viewer
= name
if hasCustomField
- i.fa.fa-check
+ i.fa.fa-check
hr
a.quiet-button.full.js-settings
i.fa.fa-cog
@@ -61,9 +62,13 @@ template(name="cardCustomField-dropdown")
select.inline
each items
if($eq data.value this._id)
- option(value=_id selected="selected") {{name}}
+ option(value=_id selected="selected")
+ +viewer
+ = name
else
- option(value=_id) {{name}}
+ option(value=_id)
+ +viewer
+ = name
.edit-controls.clearfix
button.primary(type="submit") {{_ 'save'}}
a.fa.fa-times-thin.js-close-inlined-form
@@ -73,4 +78,4 @@ template(name="cardCustomField-dropdown")
+viewer
= selectedItem
else
- | {{_ 'edit'}} \ No newline at end of file
+ | {{_ 'edit'}}
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 88f97adc..13b6bd13 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -77,7 +77,9 @@ template(name="cardDetails")
h3.card-details-item-title {{_ 'labels'}}
a(class="{{#if canModifyCard}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
each labels
- span.card-label(class="card-label-{{color}}" title=name)= name
+ span.card-label(class="card-label-{{color}}" title=name)
+ +viewer
+ = name
if canModifyCard
a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
i.fa.fa-plus
@@ -86,7 +88,8 @@ template(name="cardDetails")
each customFieldsWD
.card-details-item.card-details-item-customfield
h3.card-details-item-title
- = definition.name
+ +viewer
+ = definition.name
+cardCustomField
.card-details-items
diff --git a/client/components/cards/labels.jade b/client/components/cards/labels.jade
index 6c6efb08..48e28b34 100644
--- a/client/components/cards/labels.jade
+++ b/client/components/cards/labels.jade
@@ -31,7 +31,8 @@ template(name="cardLabelsPopup")
a.card-label-edit-button.fa.fa-pencil.js-edit-label
span.card-label.card-label-selectable.js-select-label(class="card-label-{{color}}"
class="{{# if isLabelSelected ../_id }}active{{/if}}")
- = name
+ +viewer
+ = name
if(isLabelSelected ../_id)
i.card-label-selectable-icon.fa.fa-check
if currentUser.isBoardAdmin
diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade
index f47ae0c9..442d3c6c 100644
--- a/client/components/cards/minicard.jade
+++ b/client/components/cards/minicard.jade
@@ -58,7 +58,8 @@ template(name="minicard")
.minicard-custom-field
if definition.showLabelOnMiniCard
.minicard-custom-field-item
- = definition.name
+ +viewer
+ = definition.name
.minicard-custom-field-item
+viewer
= trueValue
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index aa6d3786..d9644d00 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -10,7 +10,8 @@ template(name="listHeader")
a.list-header-left-icon.fa.fa-angle-left.js-unselect-list
h2.list-header-name(
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
- = title
+ +viewer
+ = title
if wipLimit.enabled
|&nbsp;(
span(class="{{#if reachedWipLimit}}highlight{{/if}}") {{cards.count}}
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index 4e4d355c..8abd6a68 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -189,7 +189,9 @@ template(name="labelsWidget")
each currentBoard.labels
a.card-label(class="card-label-{{color}}"
class="{{#if currentUser.isNotCommentOnly}}js-label{{/if}}")
- span.card-label-name= name
+ span.card-label-name
+ +viewer
+ = name
if currentUser.isBoardAdmin
a.card-label.add-label.js-add-label
i.fa.fa-plus
diff --git a/client/components/sidebar/sidebarCustomFields.jade b/client/components/sidebar/sidebarCustomFields.jade
index f0a17773..4d023f45 100644
--- a/client/components/sidebar/sidebarCustomFields.jade
+++ b/client/components/sidebar/sidebarCustomFields.jade
@@ -6,7 +6,9 @@ template(name="customFieldsSidebar")
div.minicard
a.fa.fa-pencil.js-edit-custom-field.minicard-edit-button
div.minicard-title
- | {{ name }} ({{ type }})
+ +viewer
+ =name
+ | ({{ type }})
if currentUser.isBoardMember
hr