|
23 | 23 | </div> |
24 | 24 | <div class="govuk-grid-column-one-third options-sidebar"> |
25 | 25 | <div class="sidebar-components"> |
| 26 | + <% if @draft_url %> |
| 27 | + <%= render "govuk_publishing_components/components/heading", { |
| 28 | + text: t("fact_check_comparison.preview_heading"), |
| 29 | + heading_level: 3, |
| 30 | + font_size: "s", |
| 31 | + padding: true, |
| 32 | + } %> |
| 33 | + <p class="govuk-body"><%= link_to t("fact_check_comparison.preview_link"), @draft_url, class: "govuk-link--no-visited-state govuk-link", target: :_blank, rel: :noopener %></p> |
| 34 | + <hr class="govuk-section-break govuk-section-break govuk-section-break--visible govuk-!-margin-top-6 govuk-!-margin-bottom-3" /> |
| 35 | + <% end %> |
26 | 36 | <%= render "govuk_publishing_components/components/heading", { |
27 | | - text: t("fact_check_comparison.preview_heading"), |
| 37 | + text: t("fact_check_comparison.guidance_heading"), |
28 | 38 | heading_level: 3, |
29 | 39 | font_size: "s", |
30 | 40 | padding: true, |
31 | 41 | } %> |
32 | | - <p class="govuk-body"><%= link_to t("fact_check_comparison.preview_link"), @draft_url, class: "govuk-link--no-visited-state govuk-link" %></p> |
| 42 | + <%= render "govuk_publishing_components/components/list", { |
| 43 | + visible_counters: true, |
| 44 | + items: [ |
| 45 | + t("fact_check_comparison.guidance_deleted"), |
| 46 | + t("fact_check_comparison.guidance_added"), |
| 47 | + ], |
| 48 | + } %> |
| 49 | + <p class="govuk-body"> |
| 50 | + <%= link_to t("fact_check_comparison.guidance_link"), |
| 51 | + "https://gov.uk/government/publications/how-content-requests-from-government-get-published/fact-checking-content-on-govuk", |
| 52 | + class: "govuk-link--no-visited-state govuk-link", target: :_blank, rel: :noopener |
| 53 | + %> |
| 54 | + </p> |
33 | 55 | </div> |
34 | | - <hr class="govuk-section-break govuk-section-break govuk-section-break--visible govuk-!-margin-top-6 govuk-!-margin-bottom-3" /> |
35 | | - <%= render "govuk_publishing_components/components/heading", { |
36 | | - text: t("fact_check_comparison.guidance_heading"), |
37 | | - heading_level: 3, |
38 | | - font_size: "s", |
39 | | - padding: true, |
40 | | - } %> |
41 | | - <%= render "govuk_publishing_components/components/list", { |
42 | | - visible_counters: true, |
43 | | - items: [ |
44 | | - t("fact_check_comparison.guidance_deleted"), |
45 | | - t("fact_check_comparison.guidance_added"), |
46 | | - ], |
47 | | - } %> |
48 | | - <p class="govuk-body"> |
49 | | - <%= link_to t("fact_check_comparison.guidance_link"), |
50 | | - "https://gov.uk/government/publications/how-content-requests-from-government-get-published/fact-checking-content-on-govuk", |
51 | | - class: "govuk-link--no-visited-state govuk-link", target: :_blank, rel: :noopener |
52 | | - %> |
53 | | - </p> |
54 | 56 | </div> |
55 | 57 | </div> |
0 commit comments