Permalink
Browse files

Add completion date to IndieMark page

  • Loading branch information...
adamdawkins committed Jan 22, 2019
1 parent 599bbc1 commit d73a8b58911da6f28cd677b1da6eb5e26a4efe2c
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/views/indie_mark_items/_indie_mark_item.html.erb
@@ -1,4 +1,7 @@
<div class="indiemark-item <%= indie_mark_item.completed? ? 'completed' : ''%>" data-item-id="<%= indie_mark_item.id %>">
<h3><%= indie_mark_item.title %> <% if indie_mark_item.completed? %>(<%= indie_mark_item.score %>pts)<% end %></h3>
<% if indie_mark_item.completed? %>
<pre><%=indie_mark_item.completed_at.strftime("%Y-%m-%d") %></pre>
<% end %>
<p><%= indie_mark_item.details %></p>
</div>

0 comments on commit d73a8b5

Please sign in to comment.