mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
57 lines
2.5 KiB
Text
57 lines
2.5 KiB
Text
template(name='notificationIcon')
|
|
if($in activityType 'deleteAttachment' 'addAttachment')
|
|
span.activity-type(title="attachment") 📎
|
|
else if($in activityType 'createBoard' 'importBoard')
|
|
span.activity-type(title="board") 🗂️
|
|
|
|
else if($in activityType 'createCard' 'importCard' 'moveCard')
|
|
+cardNotificationIcon
|
|
else if($in activityType 'moveCardBoard' 'archivedCard' 'restoredCard')
|
|
+cardNotificationIcon
|
|
//- $in can only handle up to 3 cases so we have to break this case over 2 cases... use a simple template to keep it
|
|
//- DRY and consistant
|
|
|
|
else if($in activityType 'addChecklist' 'removedChecklist' 'completeChecklist')
|
|
+checklistNotificationIcon
|
|
else if($in activityType 'uncompleteChecklist')
|
|
+checklistNotificationIcon
|
|
//- $in can only handle up to 3 cases so we have to break this case over 2 cases... use a simple template to keep it
|
|
//- DRY and consistant
|
|
|
|
else if($in activityType 'checkedItem' 'uncheckedItem' 'addChecklistItem' 'removedChecklistItem')
|
|
span.activity-type(title="checklist item") ☑️
|
|
else if($in activityType 'addComment')
|
|
span.activity-type(title="comment") 💬
|
|
else if($in activityType 'createCustomField' 'setCustomField' 'unsetCustomField')
|
|
span.activity-type(title="custom field") 🧩
|
|
else if($in activityType 'addedLabel' 'removedLabel')
|
|
span.activity-type(title="label") 🏷️
|
|
else if($in activityType 'a-startAt' 'a-receivedAt')
|
|
span.activity-type(title="date") ⏰
|
|
else if($in activityType 'a-dueAt' 'a-endAt')
|
|
span.activity-type(title="date") ⏰
|
|
|
|
else if($in activityType 'createList' 'removeList' 'archivedList')
|
|
+listNotificationIcon
|
|
else if($in activityType 'importList')
|
|
+listNotificationIcon
|
|
//- $in can only handle up to 3 cases so we have to break this case over 2 cases... use a simple template to keep it
|
|
//- DRY and consistant
|
|
|
|
//- elswhere in the app we use fa-trello to indicate lists...
|
|
//- i personally like fa-columns a bit better
|
|
else if($in activityType 'unjoinMember' 'addBoardMember' 'joinMember' 'removeBoardMember')
|
|
span.activity-type(title="member") 👤
|
|
else if($in activityType 'createSwimlane' 'archivedSwimlane')
|
|
span.activity-type(title="swimlane") 🧭
|
|
else
|
|
span.activity-type(title="can't find icon for #{activityType}") 🐞
|
|
|
|
template(name='cardNotificationIcon')
|
|
span.activity-type(title="card") 🗒️
|
|
|
|
template(name='checklistNotificationIcon')
|
|
span.activity-type(title="checklist") 📝
|
|
|
|
template(name='listNotificationIcon')
|
|
span.activity-type(title="list") 📋
|