Replacing follow requests in the settings area with in-UI column
This commit is contained in:
parent
004382e4d0
commit
3689c119f0
17 changed files with 334 additions and 87 deletions
|
@ -1,16 +0,0 @@
|
|||
- content_for :page_title do
|
||||
= t('follow_requests.title')
|
||||
|
||||
- if @follow_requests.empty?
|
||||
%p.nothing-here= t('accounts.nothing_here')
|
||||
- else
|
||||
%table.table
|
||||
%tbody
|
||||
- @follow_requests.each do |follow_request|
|
||||
%tr
|
||||
%td= link_to follow_request.account.acct, web_path("accounts/#{follow_request.account.id}")
|
||||
%td{ style: 'text-align: right' }
|
||||
= table_link_to 'check-circle', t('follow_requests.authorize'), authorize_follow_request_path(follow_request), method: :post
|
||||
= table_link_to 'times-circle', t('follow_requests.reject'), reject_follow_request_path(follow_request), method: :post
|
||||
|
||||
.form-footer= render "settings/shared/links"
|
|
@ -1,8 +1,6 @@
|
|||
%ul.no-list
|
||||
- if controller_name != 'profiles'
|
||||
%li= link_to t('settings.edit_profile'), settings_profile_path
|
||||
- if controller_name != 'follow_requests'
|
||||
%li= link_to t('follow_requests.title'), follow_requests_path
|
||||
- if controller_name != 'preferences'
|
||||
%li= link_to t('settings.preferences'), settings_preferences_path
|
||||
- if controller_name != 'registrations'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue