Change calling convention to explicitly indicate whether the attributes are for the <th> element or the <td> element. Fixes various cases where the two were mixed up. * Fix .col-expand classes not being set correctly on the /post_versions, /pool_versions, and /notes pages. * Fix .updater and .updated-at classes not being set correctly on the /forum_topics page. * Fix the name param being ignored (noticeable in the post count field on the /tags page). * Don't pass empty string when column has no name.
28 lines
854 B
Plaintext
28 lines
854 B
Plaintext
<div id="c-user-name-change-requests">
|
|
<div id="a-index">
|
|
<h1>Name Change Requests</h1>
|
|
|
|
<%= table_for @change_requests, width: "100%" do |t| %>
|
|
<% t.column "User" do |change_request| %>
|
|
<%= link_to_user change_request.user %>
|
|
<% end %>
|
|
<% t.column "Old Name" do |change_request| %>
|
|
<%= change_request.original_name %>
|
|
<% end %>
|
|
<% t.column "New Name" do |change_request| %>
|
|
<%= change_request.desired_name %>
|
|
<% end %>
|
|
<% t.column "Date" do |change_request| %>
|
|
<%= compact_time change_request.created_at %>
|
|
<% end %>
|
|
<% t.column do |change_request| %>
|
|
<%= link_to "view", user_name_change_request_path(change_request) %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@change_requests) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|