Skip to content

AO3-6765 Use ul in skin preview msg again#5873

Open
nicolacleary wants to merge 2 commits into
otwcode:masterfrom
nicolacleary:AO3-6765_skin_preview_use_ul_again
Open

AO3-6765 Use ul in skin preview msg again#5873
nicolacleary wants to merge 2 commits into
otwcode:masterfrom
nicolacleary:AO3-6765_skin_preview_use_ul_again

Conversation

@nicolacleary

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-6765

Purpose

Feedback from testing on changes in #5744

The message is made up of 3 parts and then a button.

Before all 4 items were part of the list due to how notices are formed, which was replaced in favour of just separating by br.

Change this so the first 3 parts are in a ul and the button is separated from them and wrapped in a p:

image

Renders to:

<ul><li>You are previewing the skin Some Skin.</li><li>Go back or follow any link to remove the skin.</li><li>Tip: You can preview any archive page you want by adding "?site_skin=35" to the end of the URL.</li></ul>
<p><a class="action" href="/skins/35">Return to Skin to Use</a></p>

References

#4934
#5744

Credit

nicolacleary (she/her)

The message is made up of 3 parts and then a button.

Before all 4 items were part of the list due to how notices are
formed, which was replaced in favour of just separating by br.

Change this back so the first 3 parts are in a ul and the button
is separated from them and wrapped in a p.
Comment on lines +138 to +145
helpers.content_tag(
:ul,
helpers.content_tag(:li, t(".skin_title", title: @skin.title)) +
helpers.content_tag(:li, t(".remove_skin")) +
helpers.content_tag(:li, t(".tip", site_skin_id: @skin.id))
),
helpers.content_tag(:p, helpers.link_to(t(".return_to_skin"), skin_path(@skin), class: "action"))
].join("\n")

@nicolacleary nicolacleary Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I basically just took Sarken's suggestion verbatim here - how should I indicate this in the PR?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This comment's fine! I don't need credit and I'll recuse myself from reviewing 😆

@sarken sarken added Priority: High - Broken on Test Merge immediately after approval Awaiting Review and removed Awaiting Review labels Jun 11, 2026
t(".tip", site_skin_id: @skin.id),
helpers.link_to(t(".return_to_skin"), skin_path(@skin), class: "action")
].join("<br />")
helpers.content_tag(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you use helpers.tag.li etc instead of content_tag? The rails docs say that content_tag is legacy: https://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants