Files
wekan/client/components/boards/emailView.jade
T
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00

90 lines
3.8 KiB
Plaintext

//- Board View / Email (#794): the board as a Gmail-like mailbox, in the
board's own theme. Design: docs/Features/Board-Header/Board-Views/Email-View.md.
//-
//- Left: Compose, the folders (Inbox = the list email to card puts new cards
in, Sent, All mail), the board's lists as folders and its labels as Gmail
labels. Right: the shared table page (docs/Features/General/Table.md) - one
page of messages, newest first. A row opens the card popup, as a message
opens in Gmail; its comments are the conversation.
template(name="emailView")
.email-view
nav.email-view-sidebar(aria-label="{{_ 'board-view-email'}}")
button.primary.email-view-compose.js-email-compose(type="button")
i.fa.fa-pencil
|  {{_ 'email-view-compose'}}
ul.email-view-folders
each systemFolders
li.email-view-folder(class="{{#if active}}is-active{{/if}}")
a.js-email-folder(href="#" data-folder="{{id}}")
i.fa(class="{{icon}}")
span.email-view-folder-name {{_ labelKey}}
if listFolders.length
li.email-view-folder-heading {{_ 'lists'}}
each listFolders
li.email-view-folder(class="{{#if active}}is-active{{/if}}")
a.js-email-folder(href="#" data-folder="{{id}}")
i.fa.fa-folder-o
span.email-view-folder-name
+inlineViewer
= title
if labelFolders.length
li.email-view-folder-heading {{_ 'labels'}}
each labelFolders
li.email-view-folder(class="{{#if active}}is-active{{/if}}")
a.js-email-folder(href="#" data-folder="{{id}}")
span.email-view-label-dot(class="{{labelColorClass color}}" style="{{labelColorStyle color}}")
span.email-view-folder-name
+inlineViewer
= name
.email-view-main
unless receiving
p.quiet.email-view-hint {{_ 'email-view-not-receiving'}}
+tablePage(tablePageData)
//- One message. Cells match the header: From, Subject, Date.
template(name="emailViewRow")
tr.email-view-row.js-email-open(data-card-id="{{_id}}" class="{{#if outgoing}}is-outgoing{{/if}}")
td.email-view-from
if outgoing
span.quiet {{_ 'email-view-to'}} 
| {{sender}}
//- Markdown, like every card title and description in WeKan: the viewer
honours the Admin Panel's security settings for links and code.
td.email-view-subject
.email-view-subject-title
+viewer
= title
if snippet
.email-view-snippet
+viewer
= snippet
each labels
span.card-label.email-view-row-label(class="{{labelColorClass color}}" style="{{labelColorStyle color}}" title=name)
+inlineViewer
= name
a.email-view-reply.js-email-reply(href="#" title="{{_ 'email-view-reply'}}" data-card-id="{{_id}}")
i.fa.fa-reply
td.email-view-date {{date}}
//- Compose, or reply on a card. Sent From the member's own board address, so
the answer comes back to this board (server/emailView.js sendBoardEmail).
template(name="emailComposePopup")
form.email-compose.js-email-compose-form
if replyTitle
p.quiet {{_ 'email-view-replying-to'}} {{replyTitle}}
label
| {{_ 'email-view-to'}}
input.js-email-to(type="text" value="{{to}}" placeholder="name@example.com" autocomplete="email" required)
label
| {{_ 'email-view-cc'}}
input.js-email-cc(type="text" autocomplete="email")
label
| {{_ 'email-view-subject'}}
input.js-email-subject(type="text" value="{{subject}}" required)
textarea.js-email-text(rows="10")
if error
p.warning {{error}}
button.primary(type="submit" disabled="{{#if sending}}disabled{{/if}}")
i.fa.fa-paper-plane
|  {{_ 'email-view-send'}}