Files
nairobi/app/components/polls/access_status_component.html.erb
Javi Martín 1b9d321c4e Extract methods in poll status component
This way we remove duplication in the HTML.

We're also adding a test checking what happens when users can vote in
order to test the `render?` method we've added.
2025-08-22 13:09:49 +02:00

4 lines
120 B
Plaintext

<div class="access-status <%= html_class %>" title="<%= text %>">
<span class="show-for-sr"><%= text %></span>
</div>