Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding guidance link #1964

Merged
merged 1 commit into from Oct 16, 2020
Merged

Adding guidance link #1964

merged 1 commit into from Oct 16, 2020

Conversation

chris-gds
Copy link
Contributor

What?

  • Adding new guidance link to landing page

Why

Trello Ticket

Visual Before

Screenshot 2020-10-13 at 14 27 27

Visual After

Screenshot 2020-10-13 at 14 22 14

Anything else?

Content was updated here (& here) as a precursor.

Actual link directs:
/search/all?level_one_taxon=5b7b9532-a775-4bd2-a3aa-6ce380184b6c&content_purpose_supergroup%5B%5D=guidance_and_regulation&order=most-viewed


⚠️ This application is Continuously Deployed: ⚠️

@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 13, 2020 14:00 Inactive
Comment on lines 9 to 13
<% if guidance["intro"].present? %>
<p class="govuk-body">
<%= render_govspeak(guidance["intro"]) %>
<p>
<% end %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be moved outside of this if as if there are no links this won't show

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, so take this outside of this <% if guidance.present? && guidance["links"].present? %> check? So if the other links aren't present this paragraph will still render?

I'm wondering if the level of abstraction present in this partial could be reduced so there's editable content but it's more reflective of the rendered markup.

@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 14, 2020 09:20 Inactive
@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 14, 2020 09:34 Inactive
@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 14, 2020 10:26 Inactive
@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 14, 2020 10:31 Inactive
@chris-gds
Copy link
Contributor Author

@DilwoarH Ace - would it be possible to merge when ready? I'm not authorised

@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 15, 2020 09:29 Inactive
@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 15, 2020 09:49 Inactive
Adding new guidance link to landing page

Co-authored-by: Dilwoar Hussain <dilwoar.hussain@digital.cabinet-office.gov.uk>
@bevanloon bevanloon temporarily deployed to govuk-collec-landing-pa-bptpcf October 16, 2020 10:14 Inactive
@sihugh sihugh merged commit f2d29ac into master Oct 16, 2020
@sihugh sihugh deleted the landing-page-guidance-link branch October 16, 2020 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants