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.
4 lines
120 B
Plaintext
4 lines
120 B
Plaintext
<div class="access-status <%= html_class %>" title="<%= text %>">
|
|
<span class="show-for-sr"><%= text %></span>
|
|
</div>
|