Revision fde12b1d
Added by Marek Hulán over 6 years ago
app/views/puppetca/_expiry.html.erb | ||
---|---|---|
<div class="card-pf-body">
|
||
<p class="card-pf-aggregate-status-notifications">
|
||
<% if expiry.is_a? Time %>
|
||
<%= time_column expiry, :tense => :future %>
|
||
<%= date_time_relative(expiry) %>
|
||
<% else %>
|
||
<%= expiry %>
|
||
<% end %>
|
Also available in: Unified diff
Fixes #19047 - unify date formats
This introduces two new helpers for printing date in absolute and
relative format. Helper for absolute accepts also a parameter to choose
between long and short variant. The long one includes the year. The date
also has a title so you see the other format after hovering mouse
cursor.
(cherry picked from commit d738d2c03a58e52b5e04d056ca259925ae71e057)