Sha256: 44988fe2c302c89253a8ca369382d3d7737df4b298c5490b803dbff03f957f63
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
<% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %> <% content_for :application_stylesheet do %> <% if @component_doc.source == "application" && application_stylesheet_in_use? %> <%= render 'application_stylesheet' %> <% end %> <% end %> <%= render 'govuk_publishing_components/components/heading', { text: @component_example.name, context: "#{@component_doc.name} example", heading_level: 1, font_size: "xl", margin_bottom: 8 } %> <% code_example = capture do %> <%= render partial: "govuk_publishing_components/component_guide/component_doc/call", locals: { component_doc: @component_doc, example: @component_example } %> <% end %> <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> <%= code_example %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems