Page review
Page last reviewed on 21 September 2020
<p class="cads-page-review">Page last reviewed on <strong>21 September 2020</strong></p>
<%= render(CitizensAdviceComponents::PageReview.new(
page_review_date: Date.new(2020, 9, 21)
)) %>
Using with Rails
If you are using the citizens_advice_components gem, you can call the component from within a template using:
<%= render(CitizensAdviceComponents::PageReview.new(
page_review_date: Date.new(2020, 9, 21)
)) %>
Component arguments
| Argument | Description |
|---|---|
Argument
page_review_date
|
Description Required, date object for last reviewed date |
Argument
date_format
|
Description
Optional, custom date format passed to I18n.l. Defaults to %d %B %Y
|
Questions and contributions
For National Citizens Advice staff you can find us in the #design-system channel on Slack. For open issues, roadmap, and source code see the GitHub project.