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
All design system discussions take place in the #design-system Slack channel. For current issues, roadmap and other info see the Github project board and related issues.