songtianlun
0335ef4ed6
- Changed pagination elements from <li> to <button> for better accessibility. - Updated the paginator structure to use a <div> instead of <ul>. - Ensured that all pagination links are now buttons, improving the user experience. These changes enhance the semantic structure of the pagination, making it more intuitive and accessible for users, especially those using assistive technologies.
10 lines
278 B
Plaintext
10 lines
278 B
Plaintext
<% if page.current? %>
|
|
<button class='join-item btn btn-active'>
|
|
<%= content_tag :a, page, data: { remote: remote }, rel: page.rel %>
|
|
</button>
|
|
<% else %>
|
|
<button class="join-item btn">
|
|
<%= link_to page, url, remote: remote, rel: page.rel %>
|
|
</button>
|
|
<% end %>
|