Skip to content

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

Open
@NickColley

Description

@NickColley

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 %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions