2020-05-04 19:31:15 -07:00
|
|
|
.card
|
|
|
|
.list-group.list-group-horizontal-sm.text-center
|
2022-07-18 07:26:11 -07:00
|
|
|
= list_group_item t('views.general.timeline'), timeline_path
|
2020-05-04 19:31:15 -07:00
|
|
|
- if APP_CONFIG.dig(:features, :public, :enabled)
|
|
|
|
= list_group_item t('views.general.public'), public_timeline_path
|
2022-01-01 16:22:05 -08:00
|
|
|
%a.list-group-item.list-group-item-action.dropdown.dropdown-toggle{ class: list ? 'active' : '',
|
|
|
|
type: :button, data: { toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
|
2022-01-01 16:16:42 -08:00
|
|
|
- if list
|
|
|
|
= list.display_name
|
|
|
|
- else
|
|
|
|
Lists
|
2022-01-01 16:21:52 -08:00
|
|
|
.dropdown-menu.dropdown-menu-right.dropdown-menu--lists
|
2022-01-01 16:16:42 -08:00
|
|
|
- if current_user.lists.empty?
|
|
|
|
.p-3
|
|
|
|
%p Looks like you don't have any lists yet.
|
|
|
|
%p
|
|
|
|
You can create lists and add users to them using the
|
|
|
|
%i.fa.fa-fw.fa-list
|
|
|
|
icon in the navigation on user profiles that are not yours.
|
|
|
|
%p.mb-0
|
|
|
|
Once you have done that, the lists will be shown here.
|
|
|
|
When you select a list you'll get a timeline view of all users within that list.
|
|
|
|
- current_user.lists.each do |list|
|
|
|
|
%a.dropdown-item{ href: list_timeline_path(list.name) }= list.display_name
|