{question?.title || 'Question'} { deleteQuestion.shouldDelete = false; deleteQuestion.questionId = ''; }} onDelete={() => handleDelete(true)} isQuestion={true} /> { deleteComment.shouldDelete = false; deleteComment.commentId = ''; }} onDelete={() => handleDelete(false)} />
{#if !question}
{:else}
{$t('community.ask.go_back')}
{#if isEditMode} ({ id: course.id, text: course.title }))} bind:selectedId={editContent.courseId} /> {:else}
upvoteQuestion('question')} disabled={voted.question} />

{question.title}

{/if} {#if question.author.id === $profile.id} {#if isEditMode} (isEditMode = !isEditMode)} className="py-3 px-6 rounded-sm h-fit" disablePadding={true} /> {/if} {/if}

{question.author.name}

{question.createdAt}

{#if question.author.id === $profile.id || $isOrgAdmin} { if (!question) return; deleteQuestion.shouldDelete = true; deleteQuestion.questionId = question.id; }} > {/if}
{#if isEditMode && editorInstance}
(editContent.body = html)} />
{:else}
{@html question.body}
{/if}
{pluralize($t('community.answers'), question.totalComments, true)}
{#each question.comments as comment}
upvoteQuestion('comment', comment.id)} disabled={voted.comment[comment.id]} />

{comment.name}

{comment.createdAt}

{#if isValidAnswer} {/if} {#if comment.authorId === $profile.id || $isOrgAdmin} { deleteComment.shouldDelete = true; deleteComment.commentId = comment.id; }} > {/if}
{@html comment.comment}
{/each}
{#if !editorInstance} (comment = html)} /> {/if}
{/if}