Selaa lähdekoodia

Renamed Badge to Count of attachments on minicard. Changed icons to Cover image on minicard.

Thanks to xet7 !

Related #4944,
related https://github.com/wekan/wekan/pull/4940
Lauri Ojansivu 2 vuotta sitten
vanhempi
sitoutus
825742359e

+ 2 - 1
client/components/cards/attachments.jade

@@ -75,7 +75,8 @@ template(name="attachmentActionsPopup")
     li
     li
       if isImage
       if isImage
         a(class="{{#if isCover}}js-remove-cover{{else}}js-add-cover{{/if}}")
         a(class="{{#if isCover}}js-remove-cover{{else}}js-add-cover{{/if}}")
-          i.fa.fa-thumb-tack
+          i.fa.fa-book
+          i.fa.fa-picture-o
           if isCover
           if isCover
             | {{_ 'remove-cover'}}
             | {{_ 'remove-cover'}}
           else
           else

+ 2 - 1
client/components/sidebar/sidebar.jade

@@ -306,7 +306,8 @@ template(name="boardMinicardSettingsPopup")
       a.flex.js-field-has-cover-attachment-on-minicard(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
       a.flex.js-field-has-cover-attachment-on-minicard(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
         .materialCheckBox(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
         .materialCheckBox(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
         span
         span
-          i.fa.fa-paperclip
+          i.fa.fa-book
+          i.fa.fa-picture-o
           | {{_ 'cover-attachment-on-minicard'}}
           | {{_ 'cover-attachment-on-minicard'}}
     div.check-div
     div.check-div
       a.flex.js-field-has-badge-attachment-on-minicard(class="{{#if allowsBadgeAttachmentOnMinicard}}is-checked{{/if}}")
       a.flex.js-field-has-badge-attachment-on-minicard(class="{{#if allowsBadgeAttachmentOnMinicard}}is-checked{{/if}}")

+ 3 - 3
imports/i18n/data/en.i18n.json

@@ -92,7 +92,7 @@
   "close-add-checklist-item": "Close add an item to checklist form",
   "close-add-checklist-item": "Close add an item to checklist form",
   "close-edit-checklist-item": "Close edit an item to checklist form",
   "close-edit-checklist-item": "Close edit an item to checklist form",
   "convertChecklistItemToCardPopup-title": "Convert to Card",
   "convertChecklistItemToCardPopup-title": "Convert to Card",
-  "add-cover": "Add Cover",
+  "add-cover": "Add cover image to minicard",
   "add-label": "Add Label",
   "add-label": "Add Label",
   "add-list": "Add List",
   "add-list": "Add List",
   "add-after-list": "Add After List",
   "add-after-list": "Add After List",
@@ -540,7 +540,7 @@
   "public": "Public",
   "public": "Public",
   "public-desc": "This board is public. It's visible to anyone with the link and will show up in search engines like Google. Only people added to the board can edit.",
   "public-desc": "This board is public. It's visible to anyone with the link and will show up in search engines like Google. Only people added to the board can edit.",
   "quick-access-description": "Star a board to add a shortcut in this bar.",
   "quick-access-description": "Star a board to add a shortcut in this bar.",
-  "remove-cover": "Remove Cover",
+  "remove-cover": "Remove cover image from minicard",
   "remove-from-board": "Remove from Board",
   "remove-from-board": "Remove from Board",
   "remove-label": "Remove Label",
   "remove-label": "Remove Label",
   "listDeletePopup-title": "Delete List ?",
   "listDeletePopup-title": "Delete List ?",
@@ -728,7 +728,7 @@
   "deposit-subtasks-list": "Landing list for subtasks deposited here:",
   "deposit-subtasks-list": "Landing list for subtasks deposited here:",
   "show-parent-in-minicard": "Show parent in minicard:",
   "show-parent-in-minicard": "Show parent in minicard:",
   "description-on-minicard": "Description on minicard",
   "description-on-minicard": "Description on minicard",
-  "cover-attachment-on-minicard": "Cover attachment on minicard",
+  "cover-attachment-on-minicard": "Cover image on minicard",
   "badge-attachment-on-minicard": "Count of attachments on minicard",
   "badge-attachment-on-minicard": "Count of attachments on minicard",
   "card-sorting-by-number-on-minicard": "Card sorting by number on minicard",
   "card-sorting-by-number-on-minicard": "Card sorting by number on minicard",
   "prefix-with-full-path": "Prefix with full path",
   "prefix-with-full-path": "Prefix with full path",