<?php if (!defined('_GNUBOARD_')) exit;?>

<section class="qa-view-ans">
	<div class="t-right">
    	<a href="{_rewrite_href}" class="eb-button eb-button-small eb-button-yellow"><i class="fa fa-question-circle"></i> 추가질문</a>
	</div>
    <h5><i class="fa fa-quote-left"></i> 답변: {=get_text(answer.qa_subject)}</h5>
    <div class="ans-datetime">
        <i class="fa fa-clock-o"></i> {answer.qa_datetime}
    </div>
    <div class="ans-con">
        {=conv_content(answer.qa_content, answer.qa_html)}
    </div>
    <div class="ans-add">
		<!--{? _answer_update_href}-->
        <a href="{_answer_update_href}" class="eb-button eb-button-small eb-button-dark">답변수정</a>
        <!--{/}-->
		<!--{? _answer_delete_href}-->
        <a href="{_answer_delete_href}" class="eb-button eb-button-small eb-button-red" onclick="del(this.href); return false;">답변삭제</a>
        <!--{/}-->
    </div>
</section>

<style>
.qa-view-ans {margin:0 0 20px;padding:20px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
.qa-view-ans .ans-datetime {margin:10px 0;padding:5px 0;border-top:1px dotted #eee;border-bottom:1px dotted #eee;color:#888}
.qa-view-ans .ans-con {margin:10px 0;line-height:1.5}
.qa-view-ans .ans-add {text-align:right}
</style>