2016-03-13 02:09:46 +11:00
|
|
|
- content_for :content do
|
|
|
|
.dashboard-wrapper
|
|
|
|
.dashboard__sidebar
|
|
|
|
.dashboard__top-bar.alternate
|
|
|
|
|
|
|
|
.dashboard__current-user
|
|
|
|
= link_to account_path(current_user.account) do
|
|
|
|
= image_tag current_user.account.avatar.url(:medium), class: 'dashboard__current-user__avatar'
|
2016-03-19 22:49:34 +11:00
|
|
|
%strong.dashboard__current-user__display-name= display_name(current_user.account)
|
2016-03-13 02:09:46 +11:00
|
|
|
%span.dashboard__current-user__username= "@#{current_user.account.username}"
|
|
|
|
%ul
|
2016-03-13 05:46:06 +11:00
|
|
|
%li{ class: active_nav_class(root_path) }
|
2016-03-13 02:09:46 +11:00
|
|
|
= link_to root_path do
|
|
|
|
= fa_icon 'home'
|
|
|
|
Home
|
2016-03-13 05:46:06 +11:00
|
|
|
%li{ class: active_nav_class(oauth_authorized_applications_path) }
|
2016-03-13 02:09:46 +11:00
|
|
|
= link_to oauth_authorized_applications_path do
|
|
|
|
= fa_icon 'shield'
|
|
|
|
Authorized apps
|
2016-03-13 06:47:22 +11:00
|
|
|
%li{ class: active_nav_class(settings_path) }
|
|
|
|
= link_to settings_path do
|
|
|
|
= fa_icon 'user'
|
|
|
|
Edit profile
|
2016-03-26 02:10:14 +11:00
|
|
|
|
2016-03-13 02:09:46 +11:00
|
|
|
.dashboard__content
|
|
|
|
.dashboard__top-bar
|
2016-03-13 05:46:06 +11:00
|
|
|
= content_for?(:page_title) ? yield(:page_title) : 'Mastodon'
|
2016-03-13 02:09:46 +11:00
|
|
|
%ul
|
2016-03-13 05:46:06 +11:00
|
|
|
%li= link_to fa_icon('gear'), edit_registration_path(current_user), title: 'Change password'
|
|
|
|
%li= link_to fa_icon('sign-out'), destroy_user_session_path, method: :delete, title: 'Sign out'
|
2016-03-26 02:10:14 +11:00
|
|
|
|
2016-03-13 02:09:46 +11:00
|
|
|
.dashboard__content__content= yield
|
2016-03-26 02:10:14 +11:00
|
|
|
|
|
|
|
= yield(:raw_content)
|
|
|
|
|
2016-03-13 02:09:46 +11:00
|
|
|
.footer
|
|
|
|
.domain= Rails.configuration.x.local_domain
|
|
|
|
|
|
|
|
= render template: "layouts/application"
|