Sha256: 5e0910e862211aa64ec0cde563b342303f98b0c7d200c2498051a09bb22b3187

Contents?: true

Size: 1.15 KB

Versions: 184

Compression:

Stored size: 1.15 KB

Contents

<% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
<% content_for :application_stylesheet do %>
  <% if @component_doc.source == "application" %>
    <%= render 'application_stylesheet' %>
  <% end %>
<% end %>

<%= render 'govuk_publishing_components/components/title', title: @component_example.name, context: "#{@component_doc.name} example", margin_top: 0 %>

<div class="component-show">
  <div class="component-doc">
    <div class="component-markdown">
      <%= raw(@component_example.html_description) %>
    </div>
    <h2 class="component-doc-h2">
      How it looks
      <small>(<a href="<%= component_preview_path(@component_doc.id, @component_example.id) %>" class="govuk-link">preview</a>)</small>
    </h2>
    <%= render partial: "govuk_publishing_components/component_guide/component_doc/preview", locals: { component_doc: @component_doc, example: @component_example } %>

    <h2 class="component-doc-h2">How to call this example</h2>
    <%= render partial: "govuk_publishing_components/component_guide/component_doc/call", locals: { component_doc: @component_doc, example: @component_example } %>
  </div>
</div>

Version data entries

184 entries across 184 versions & 1 rubygems

Version Path
govuk_publishing_components-29.1.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-29.0.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-29.0.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.9.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.9.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.9.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.8.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.8.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.7.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.6.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.5.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.4.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.3.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.2.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.1.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-28.0.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-27.20.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-27.19.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-27.18.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-27.17.0 app/views/govuk_publishing_components/component_guide/example.html.erb