debian-mirror-gitlab/app/views/shared/topics/_topic.html.haml
2021-12-11 22:18:48 +05:30

16 lines
625 B
Text

- max_topic_name_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.name.length > max_topic_name_length
%h5.str-truncated.has-tooltip{ title: topic.name }
= truncate(topic.name, length: max_topic_name_length)
- else
%h5
= topic.name