File: topic.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (31 lines) | stat: -rw-r--r-- 1,358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- add_to_breadcrumbs _("Topics"), topics_explore_projects_path
- breadcrumb_title @topic.title_or_name
- page_title @topic.title_or_name, _("Topics")
- max_topic_title_length = 50

= render_dashboard_ultimate_trial(current_user)

.gl-text-center.gl-bg-gray-10.gl-pb-3.gl-pt-6
  %div{ class: container_class }
    .gl-pb-5.gl-items-center.gl-justify-center.gl-flex
      = render Pajamas::AvatarComponent.new(@topic, size: 64, alt: '')
      - if @topic.title_or_name.length > max_topic_title_length
        %h1.gl-mt-3.gl-ml-5.gl-str-truncated.has-tooltip{ title: @topic.title_or_name }
          = truncate(@topic.title_or_name, length: max_topic_title_length)
      - else
        %h1.gl-mt-3.gl-ml-5
          = @topic.title_or_name
    - if @topic.description.present?
      .topic-description
        = markdown(@topic.description)

%div{ class: container_class }
  .gl-py-5.gl-border-gray-100.gl-border-b-solid.gl-border-b-1
    %h3.gl-m-0= _('Projects with this topic')
  .top-area.gl-pt-2.gl-pb-2.gl-justify-between
    .nav-controls
      = render 'shared/projects/search_form'
      = render 'filter'
    = link_button_to nil, topic_explore_projects_path(@topic.name, rss_url_options), title: s_("Topics|Subscribe to the new projects feed"), class: 'gl-hidden sm:gl-inline-flex has-tooltip', icon: 'rss'

  = render 'projects', projects: @projects