Retrospring/app/views/tabs/_feed.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1.2 KiB
Plaintext
Raw Normal View History

.card
.list-group.list-group-horizontal-sm.text-center
2022-07-31 07:06:09 -07:00
= list_group_item t(".timeline"), timeline_path
- 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" : "",
type: :button, data: { bs_toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
- if list
= list.display_name
- else
2022-07-31 07:03:25 -07:00
= t(".lists.title")
2023-01-04 03:40:19 -08:00
.dropdown-menu.dropdown-menu-end.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.pb-2
2022-10-20 12:59:44 -07:00
- list.members.each do |member|
2024-03-10 07:29:31 -07:00
%a{ href: user_path(member.user), title: member.user.screen_name, data: { controller: :tooltip, bs_placement: :top } }
= render AvatarComponent.new(user: member.user, size: "xs")
- if !list && lists.empty?
2022-07-31 07:03:25 -07:00
.p-3= t(".lists.notice_html")
- lists.each do |list|
%a.dropdown-item{ href: list_timeline_path(list.name) }= list.display_name