Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
21 lines
832 B
Plaintext
Executable File
21 lines
832 B
Plaintext
Executable File
<%# Link showing page number
|
|
- available local variables
|
|
page: a page object for "this" page
|
|
url: url to this page
|
|
current_page: a page object for the currently displayed page
|
|
total_pages: total number of pages
|
|
per_page: number of items to fetch per page
|
|
remote: data-remote
|
|
-%>
|
|
<li>
|
|
<% if page.current? %>
|
|
<span class="px-3 py-2 text-sm font-medium text-white bg-indigo-600 border border-indigo-600 rounded shadow-md" aria-current="page">
|
|
<%= page %>
|
|
</span>
|
|
<% else %>
|
|
<%= link_to page, url,
|
|
class: "px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200 shadow-sm hover:shadow-md",
|
|
remote: remote, rel: page.rel %>
|
|
<% end %>
|
|
</li>
|