debian-mirror-gitlab/app/views/shared/topics/_topic.html.haml
2022-07-16 19:58:13 +02:00

16 lines
667 B
Text

- max_topic_title_length = 30
- detail_page_link = topic_explore_projects_path(topic_name: topic.name)
.col-lg-3.col-md-4.col-sm-12
.gl-card.gl-mb-5
.gl-card-body.gl-display-flex.gl-align-items-center
.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
- 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)
- else
%h5
= topic.title_or_name