Skip to content

Commit

Permalink
渡しそびれていたインスタンス変数を追記
Browse files Browse the repository at this point in the history
  • Loading branch information
reckyy committed May 8, 2024
1 parent 9a63cbd commit 00a5b38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/users/_filter.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.page-main-filter
.container
= form_with url: admin_users_path(target: @target), local: true, method: 'get', class: 'page-main-filter__inner' do
= form_with url: admin_users_path(target: @target, job: @job), local: true, method: 'get', class: 'page-main-filter__inner' do
.page-main-filter__row
.page-main-filter__column
.page-main-filter__row
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/users/_sort_column.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- direction = params[:order_by] == order_by && direction == 'asc' ? 'desc' : 'asc'

= link_to admin_users_path(order_by:, direction:, target:), class: 'a-button is-xs is-secondary is-icon' do
= link_to admin_users_path(order_by:, direction:, target:, job:), class: 'a-button is-xs is-secondary is-icon' do
- if direction == 'asc'
i.fa-solid.fa-caret-up
- else
Expand Down
8 changes: 4 additions & 4 deletions app/views/admin/users/_table.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
th.admin-table__label ステータス
th.admin-table__label
| ユーザー名
= render 'sort_column', order_by: 'login_name', direction: direction, target: @target
= render 'sort_column', order_by: 'login_name', direction: direction, target: @target, job: @job
th.admin-table__label
| メールアドレス
th.admin-table__label
| 企業
= render 'sort_column', order_by: 'company_id', direction: direction, target: @target
= render 'sort_column', order_by: 'company_id', direction: direction, target: @target, job: @job
th.admin-table__label 職業
th.admin-table__label Discord
th.admin-table__label
|
= User.human_attribute_name :last_activity_at
= render 'sort_column', order_by: 'last_activity_at', direction: direction, target: @target
= render 'sort_column', order_by: 'last_activity_at', direction: direction, target: @target, job: @job
th.admin-table__label
| 登録日時
= render 'sort_column', order_by: 'created_at', direction: direction, target: @target
= render 'sort_column', order_by: 'created_at', direction: direction, target: @target, job: @job
th.admin-table__label 相談部屋
th.admin-table__label カード登録
th.admin-table__label サブスク
Expand Down

0 comments on commit 00a5b38

Please sign in to comment.