2022-04-29 09:09:48 +00:00
|
|
|
- max_topic_title_length = 30
|
2021-11-04 09:12:56 +00:00
|
|
|
- detail_page_link = topic_explore_projects_path(topic_name: topic.name)
|
|
|
|
|
|
|
|
.col-lg-3.col-md-4.col-sm-12
|
2022-06-07 12:08:05 +00:00
|
|
|
= 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
|
2021-11-04 09:12:56 +00:00
|
|
|
.avatar-container.rect-avatar.s40.gl-flex-shrink-0
|
|
|
|
= link_to detail_page_link do
|
|
|
|
= topic_icon(topic, class: "avatar s40")
|
|
|
|
= link_to detail_page_link do
|
2022-04-29 09:09:48 +00:00
|
|
|
- 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-11-04 09:12:56 +00:00
|
|
|
- else
|
|
|
|
%h5
|
2022-04-29 09:09:48 +00:00
|
|
|
= topic.title_or_name
|