Back to Super Productivity

Issue Content.Component

src/app/features/issue/issue-content/issue-content.component.html

18.4.41.7 KB
Original Source

@if (currentTask()?.issueWasUpdated) { {{ T.F.ISSUE.ISSUE_CONTENT.MARK_AS_CHECKED | translate }} } @if (config(); as cfg) {

@for (field of visibleFields(); track trackByIndex($index)) { | {{ field.label | translate }} | @switch (field.type) { @case (IssueFieldType.TEXT) { {{ getFieldValue(field, currentIssue()) }} } @case (IssueFieldType.LINK) { @if (getFieldLink(field, currentIssue()); as link) { {{ getFieldValue(field, currentIssue()) }} } @else { {{ getFieldValue(field, currentIssue()) }} } } @case (IssueFieldType.CHIPS) { @for (chip of getFieldValue(field, currentIssue()); track $index) { {{ chip.name || chip }} } } @case (IssueFieldType.MARKDOWN) {

} @case (IssueFieldType.CUSTOM) { } } | } @if (hasComments()) { @if (isCollapsedIssueComments() && cfg.hasCollapsingComments) { download {{ T.F.ISSUE.ISSUE_CONTENT.LOAD_ALL_COMMENTS | translate: { nr: commentsLength() } }} @if (lastComment()) {

{{ T.F.ISSUE.ISSUE_CONTENT.LAST_COMMENT | translate }}

@if (getCommentAvatar(lastComment(), cfg); as avatar) { }

{{ getCommentAuthor(lastComment(), cfg) }} {{ T.F.ISSUE.ISSUE_CONTENT.AT | translate }} {{ getCommentCreated(lastComment(), cfg) | localeDate: 'short' }} @if (getCommentBody(lastComment(), cfg); as body) { @if (cfg.issueType === 'JIRA') {

} @else {

} }

} } @else { @for (comment of comments() | sort: cfg.comments?.sortField; track $index) { @if (getCommentAvatar(comment, cfg); as avatar) { }

{{ getCommentAuthor(comment, cfg) }} {{ T.F.ISSUE.ISSUE_CONTENT.AT | translate }} {{ getCommentCreated(comment, cfg) | localeDate: 'short' }} @if (getCommentBody(comment, cfg); as body) { @if (cfg.issueType === 'JIRA') {

} @else {

} }

} } } }