Display created time of query in show page.

This commit is contained in:
BoHung Chiu 2021-02-18 11:09:59 +08:00
parent efb805b810
commit b06747ad6d
1 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,10 @@
<div class="ticket-query-wrap">
<div class="query ticket-query">
<span class="query-created-date t-label t-label-primary">
<i class="icon-time"></i>
<% dt = query.created_at %> <%= dt.strftime("%d %B %Y - %H:%M") %>
</span>
<div style="clear: both;"></div>
<%= smart_links_parser(query.query, @ticket.registered_site).html_safe %>
</div>
<div class="ticket-response t-depth-1">
@ -46,3 +51,12 @@
<% end %>
</div>
</div>
<style type="text/css">
.query-created-date{
background-color: cyan;
}
.ticket-query{
border: 0.1em solid gray;
margin-bottom: 0.5em;
}
</style>