Improve feedback list some more

This commit is contained in:
Tom Bloor 2017-09-28 17:10:13 +01:00
parent 9cc1358283
commit 2486c701a5

View file

@ -15,14 +15,16 @@
% for my $feedback ( $feedback_rs->all ) { % for my $feedback ( $feedback_rs->all ) {
<div class="col col-md-4 mb-3"> <div class="col col-md-4 mb-3">
<div class="card"> <div class="card">
<div class="card-header">
%= $feedback->user->email;
</div>
<div class="card-block"> <div class="card-block">
<h6 class="card-title"> <h6 class="card-title">
%= format_human_datetime $feedback->submitted_at; %= format_human_datetime $feedback->submitted_at;
</h6> </h6>
<h6 class="card-subtitle mb-2 text-muted">
%= $feedback->user->email;
</h6>
<pre class="card-text"><%= truncate_text $feedback->feedbacktext => 50; %></pre> <pre class="card-text"><%= truncate_text $feedback->feedbacktext => 50; %></pre>
</div>
<div class="card-footer text-right">
<a href="<%= url_for . '/' . $feedback->id %>" class="card-link"> <a href="<%= url_for . '/' . $feedback->id %>" class="card-link">
More info More info
</a> </a>