Retrospring/app/views/tabs/_feed.haml

25 lines
1.2 KiB
Plaintext
Raw Normal View History

.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
2020-05-06 04:56:09 -07:00
%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
2020-05-06 04:56:09 -07:00
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
2020-05-06 04:56:09 -07:00
when 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