lml/fine_print

View on GitHub
app/views/fine_print/contracts/_show.html.erb

Summary

Maintainability
Test Coverage
<%# Clients of this partial must provide the following variable:
    contract %>

<h2 class='fine_print heading'><%= contract.title %> (<%= contract.version ? \
  t('fine_print.contract.status.version', version: contract.version.to_s) : \
  t('fine_print.contract.status.draft') %>)</h2>

<h4 class='fine_print heading'><%= t('fine_print.contract.status.updated_at', \
  updated_at: l(contract.updated_at, format: :fine_print)) %></h4>

<div class='fine_print contract'>
  <pre><%= @contract.content.html_safe %></pre>
</div>