Adjust navigation layout on main feed pages
This commit is contained in:
parent
aa25e8199f
commit
22ae1f6655
|
@ -1,9 +1,9 @@
|
|||
= render 'navigation/feed'
|
||||
.container.container--main
|
||||
.row
|
||||
.col-md-3.col-sm-4.d-none.d-sm-block
|
||||
= render 'shared/sidebar'
|
||||
.col-md-9.col-xs-12.col-sm-8
|
||||
= render 'layouts/messages'
|
||||
= render 'tabs/feed'
|
||||
= yield
|
||||
.d-block.d-sm-none= render 'shared/links'
|
|
@ -8,18 +8,12 @@
|
|||
= current_user.display_name
|
||||
.profile__screen-name
|
||||
= current_user.screen_name
|
||||
.card
|
||||
.list-group
|
||||
= list_group_item t('views.general.timeline'), root_path
|
||||
- if APP_CONFIG.dig(:features, :public, :enabled)
|
||||
= list_group_item t('views.general.public'), public_timeline_path
|
||||
- current_user.groups.each do |group|
|
||||
= list_group_item group.display_name, group_timeline_path(group.name)
|
||||
- unless @group.nil?
|
||||
.card.profile--panel
|
||||
.card-header
|
||||
%h3.card-title= t('views.group.members')
|
||||
.card
|
||||
.card-header= t('views.group.members')
|
||||
.card-body
|
||||
- if @group.members.empty?
|
||||
%p.text-muted No members yet!
|
||||
- @group.members.each do |member|
|
||||
%a{href: show_user_profile_path(member.user.screen_name), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top }}
|
||||
%img.avatar-xs{src: member.user.profile_picture.url(:medium)}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
.card
|
||||
.list-group.list-group-horizontal-sm.text-center
|
||||
= list_group_item t('views.general.timeline'), root_path
|
||||
- if APP_CONFIG.dig(:features, :public, :enabled)
|
||||
= list_group_item t('views.general.public'), public_timeline_path
|
||||
.list-group-item.list-group-item-action.dropdown{class: "#{'active' if @group}"}
|
||||
%a.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false }}
|
||||
- if @group
|
||||
= @group.display_name
|
||||
- else
|
||||
Groups
|
||||
.dropdown-menu
|
||||
- if current_user.groups.empty?
|
||||
.p-3
|
||||
%p Looks like you don't have any groups yet!
|
||||
%p
|
||||
You can create groups and add users to them using the
|
||||
%i.fa.fa-fw.fa-users
|
||||
icon in the navigation on user profiles (that are not yours)
|
||||
%p.mb-0
|
||||
Once you have done that, the groups will be listed here and
|
||||
if selected, you'll get a timeline view of all users from
|
||||
that group!
|
||||
- current_user.groups.each do |group|
|
||||
%a.dropdown-item{ href: group_timeline_path(group.name) }= group.display_name
|
Loading…
Reference in New Issue