1. Static Component Guide
  2. Document footer metadata

Component

Document footer metadata

A metadata block to be displayed below the document

How to call this component

<%= render "govuk_component/document_footer" {
  from: [
    "<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
    "<a href='/government/organisations/cabinet-office'>Cabinet Office</a>"
  ]
} %>

How it looks

Other examples (preview all)

Part of only (preview)

<%= render "govuk_component/document_footer" {
  from: [
    "<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
    "<a href='/government/organisations/cabinet-office'>Cabinet Office</a>"
  ],
  part_of: [
    "<a href='/government/topics/energy'>Energy</a>",
    "<a href='/government/topics/environment'>Environment</a>"
  ]
} %>

With other metadata (preview)

<%= render "govuk_component/document_footer" {
  from: [
    "<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
    "<a href='/government/organisations/cabinet-office'>Cabinet Office</a>"
  ],
  other: {
    "Consultation type": "<a href='/government/publications'>Open</a>"
  }
} %>

With other dates (preview)

<%= render "govuk_component/document_footer" {
  published: "20 January 2012",
  other_dates: {
    "Date opened": "1 February 2012",
    "Date closed": "1 March 2013"
  }
} %>

Non link metadata only (preview)

<%= render "govuk_component/document_footer" {
  other: {
    "Registration number": "01234",
    "Another thing": "This other thing"
  }
} %>

Updated (preview)

<%= render "govuk_component/document_footer" {
  published: "20 January 2012",
  updated: "24 January 2012",
  history: [
    {
      display_time: "22 January 2012",
      timestamp: "22-01-2012Z14:19:00T",
      note: "We updated the document"
    },
    {
      display_time: "24 January 2012",
      timestamp: "24-01-2012Z14:19:00T",
      note: "We updated the document again"
    }
  ]
} %>

Extensive (preview)

<%= render "govuk_component/document_footer" {
  published: "20 January 2012",
  updated: "24 January 2012",
  history: [
    {
      display_time: "22 January 2012",
      timestamp: "22-01-2012Z14:19:00T",
      note: "We updated the document"
    },
    {
      display_time: "24 January 2012",
      timestamp: "24-01-2012Z14:19:00T",
      note: "We updated the document again"
    }
  ],
  from: [
    "<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
    "<a href='/government/organisations/cabinet-office'>Cabinet Office</a>"
  ],
  part_of: [
    "<a href='/government/topics/energy'>Energy</a>",
    "<a href='/government/topics/environment'>Environment</a>"
  ],
  other: {
    "Registration number": "01234",
    "Another thing": "This other thing"
  }
} %>

Many items and long (preview)

<%= render "govuk_component/document_footer" {
  part_of: [
    "<a href='#'>Buying and managing government goods and services more efficiently and effectively</a>",
    "<a href='#'>Promoting social action: encouraging and enabling people to play a more active part in society</a>",
    "<a href='#'>Improving the transparency and accountability of government and its services</a>"
  ]
} %>

Basic rtl (preview)

<%= render "govuk_component/document_footer" {
  direction: "rtl",
  published: "20 January 2012",
  from: "<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>",
  part_of: "<a href='/government/topics/energy'>Energy</a>"
} %>