debian-mirror-gitlab/app/views/shared/topics/_topic.html.haml

17 lines
773 B
Text
Raw Normal View History

2022-07-16 23:28:13 +05:30
- max_topic_title_length = 30
2021-12-11 22:18:48 +05:30
- detail_page_link = topic_explore_projects_path(topic_name: topic.name)
.col-lg-3.col-md-4.col-sm-12
2022-07-23 23:45:48 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' },
body_options: { class: 'gl-display-flex gl-align-items-center' }) do |c|
= c.body do
2023-05-27 22:25:52 +05:30
= link_to detail_page_link do
= render Pajamas::AvatarComponent.new(topic, size: 48, alt: '', class: 'gl-mr-3')
2021-12-11 22:18:48 +05:30
= link_to detail_page_link do
2022-07-16 23:28:13 +05:30
- if topic.title_or_name.length > max_topic_title_length
%h5.gl-str-truncated.has-tooltip{ title: topic.title_or_name }
= truncate(topic.title_or_name, length: max_topic_title_length)
2021-12-11 22:18:48 +05:30
- else
%h5
2022-07-16 23:28:13 +05:30
= topic.title_or_name