{layout layout} {* 问答详情(view/default/article/qa.html) 由栏目「问答」的 template_detail = qa 指定。 answers / bounty / solved / is_asker 由 qa 插件经 content_detail 过滤器注入 (核心本身不会把评论传给模板)。 样式:主题 style.css 里的 qa-panel / qa-section / qa-answer 组件。 *}

{$article.title}

{if !empty($article.bounty)}悬赏 {$article.bounty} 积分{/if} {if !empty($article.solved)} 已解决 {else} 待解决 {/if} 提问于 {$article.created_at|date=Y-m-d} {if !empty($article.asker)}提问者:{$article.asker.name}{/if} {$article.views|default=0} {lang common.views_unit}
{$article.content|raw}
{if !empty($article.qa_tags)}
{loop $article.qa_tags as $t} {$t.name} {/loop}
{/if}

回答({if !empty($article.answer_count)}{$article.answer_count}{else}0{/if})

{if !empty($article.solved)}已采纳最佳答案{/if}
{if !empty($article.answers)}
    {loop $article.answers as $a}
  • {$a.created_at|date=Y-m-d} 回答 {if !empty($a.is_best)}最佳答案{/if}
    {$a.content|raw}
    {if !empty($article.is_asker) && empty($article.best_comment_id) && empty($a.is_best)}
    {/if}
  • {/loop}
{else}

还没有人回答,来做第一个吧。

{/if}

写回答

{if !empty($article.solved)}

该问题已解决,不再接受新的采纳。

{else}
{/if}