2020-05-04 19:31:15 -07:00
|
|
|
.card
|
|
|
|
.list-group.list-group-horizontal-sm.text-center
|
2022-07-31 07:06:09 -07:00
|
|
|
= list_group_item t(".timeline"), timeline_path
|
2020-05-04 19:31:15 -07:00
|
|
|
- if APP_CONFIG.dig(:features, :public, :enabled)
|
2022-07-31 07:06:09 -07:00
|
|
|
= list_group_item t(".public"), public_timeline_path
|
|
|
|
%a.list-group-item.list-group-item-action.dropdown.dropdown-toggle{ class: list ? "active" : "",
|
2022-01-01 16:22:05 -08:00
|
|
|
type: :button, data: { toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
|
2022-01-01 16:16:42 -08:00
|
|
|
- if list
|
|
|
|
= list.display_name
|
|
|
|
- else
|
2022-07-31 07:03:25 -07:00
|
|
|
= t(".lists.title")
|
2022-01-01 16:21:52 -08:00
|
|
|
.dropdown-menu.dropdown-menu-right.dropdown-menu--lists
|
2022-10-20 12:59:44 -07:00
|
|
|
- if list
|
|
|
|
%h6.dropdown-header= t(".lists.members.title")
|
|
|
|
- if list.members.empty?
|
|
|
|
%p.text-muted= t(".list.members.none")
|
|
|
|
- else
|
|
|
|
%p.px-4
|
|
|
|
- list.members.each do |member|
|
|
|
|
%a{ href: user_path(member.user), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top } }
|
|
|
|
%img.avatar-xs{ src: member.user.profile_picture.url(:small), loading: :lazy }
|
|
|
|
%li.dropdown-divider
|
2022-01-01 16:16:42 -08:00
|
|
|
- if current_user.lists.empty?
|
2022-07-31 07:03:25 -07:00
|
|
|
.p-3= t(".lists.notice_html")
|
2022-01-01 16:16:42 -08:00
|
|
|
- current_user.lists.each do |list|
|
|
|
|
%a.dropdown-item{ href: list_timeline_path(list.name) }= list.display_name
|