2020-05-04 19:31:15 -07:00
|
|
|
.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
|
2020-05-10 00:25:34 -07:00
|
|
|
.list-group-item.list-group-item-action.dropdown{ class: group ? 'active' : '' }
|
|
|
|
%a.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false } }
|
|
|
|
- if group
|
|
|
|
= group.display_name
|
2020-05-04 19:31:15 -07:00
|
|
|
- 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.
|
2020-05-04 19:31:15 -07:00
|
|
|
%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.
|
2020-05-04 19:31:15 -07:00
|
|
|
%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.
|
2020-05-04 19:31:15 -07:00
|
|
|
- current_user.groups.each do |group|
|
2020-05-10 00:25:34 -07:00
|
|
|
%a.dropdown-item{ href: group_timeline_path(group.name) }= group.display_name
|