added recent answer display to index

This commit is contained in:
pixeldesu 2014-08-18 16:33:43 +02:00
parent 0daf40a1e7
commit 10fdcbffee

View File

@ -25,5 +25,17 @@
</div>
<input type="hidden" name="words">
</form>
{if="$recent_answers"}
<h4>Recent Answers by others:</h4>
<table class="table table-responsive table-bordered table-condensed">
<tbody>
{loop="$recent"}
<tr>
<td><b>{$value.author}</b> wrote that {$user_name} is <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> and <span class="label label-default">{$value.word3}</span></td>
</tr>
{/loop}
</tbody>
</table>
{/if}
</div>
{include="footer"}