Skip to content

Commit

Permalink
Merge pull request #85 from co-cddo/add-updated-date-time-to-records
Browse files Browse the repository at this point in the history
Add updated date if record has been updated since creation.
  • Loading branch information
RobNicholsGDS authored May 30, 2024
2 parents 30dc9fb + 252df29 commit 3853a24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/views/agreements/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<dd class="govuk-summary-list__value"><%= value %></dd>
</div>
<% end %>
<% if @agreement.created_at != @agreement.updated_at %>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">Updated</dt>
<dd class="govuk-summary-list__value"><%= @agreement.updated_at.strftime("%d %B %Y") %></dd>
</div>
<% end %>
</dl>

<% associations = {
Expand Down

0 comments on commit 3853a24

Please sign in to comment.