Adding simple_form, adding profile settings, header image
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
%link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
|
||||
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
|
||||
|
||||
.card
|
||||
.card{ style: "background-image: url(#{@account.header.url(:medium)})" }
|
||||
.avatar= image_tag @account.avatar.url(:large)
|
||||
%h1.name
|
||||
= @account.display_name.blank? ? @account.username : @account.display_name
|
||||
|
@ -17,6 +17,10 @@
|
||||
= link_to oauth_authorized_applications_path do
|
||||
= fa_icon 'shield'
|
||||
Authorized apps
|
||||
%li{ class: active_nav_class(settings_path) }
|
||||
= link_to settings_path do
|
||||
= fa_icon 'user'
|
||||
Edit profile
|
||||
.dashboard__content
|
||||
.dashboard__top-bar
|
||||
= content_for?(:page_title) ? yield(:page_title) : 'Mastodon'
|
||||
|
6
app/views/settings/show.html.haml
Normal file
6
app/views/settings/show.html.haml
Normal file
@ -0,0 +1,6 @@
|
||||
= simple_form_for @account, url: settings_path, method: :put do |f|
|
||||
= f.input :display_name
|
||||
= f.input :note
|
||||
= f.input :avatar
|
||||
= f.input :header
|
||||
= f.button :submit
|
Reference in New Issue
Block a user