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

Allow warning_text helper to accept nested content (blocks) #173

Open
NickColley opened this issue Mar 19, 2020 · 0 comments
Open

Allow warning_text helper to accept nested content (blocks) #173

NickColley opened this issue Mar 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@NickColley
Copy link
Contributor

NickColley commented Mar 19, 2020

We can use the warning_text help with a plain sentence to output a warning:

https://tdt-documentation.london.cloudapps.digital/amend_project/content/#insert-a-warning

If we want to put more complicated markup into this helper it does not work, for example a link.

We should consider making this helper work with blocks, for example.

<%= warning_text do %>
    <p>Hello, world <a href="#">Link to something</a></p>
<% end %>
@NickColley NickColley added the enhancement New feature or request label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant