Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-02 21:12:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-02 21:12:13 +0300
commit23f57fb31fe83ea8666753f94118f6d834517dfb (patch)
tree0055fc79e5fe1bbb43afcbbce71c745df01f3f6c /app/views/explore
parent125c8a6a81c1c09911c09183c66768571cfd95b4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/explore')
-rw-r--r--app/views/explore/projects/topic.html.haml31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/explore/projects/topic.html.haml b/app/views/explore/projects/topic.html.haml
new file mode 100644
index 00000000000..9b6e4acb02a
--- /dev/null
+++ b/app/views/explore/projects/topic.html.haml
@@ -0,0 +1,31 @@
+- @hide_top_links = false
+- @no_container = true
+- page_title @topic.name, _("Topics")
+- max_topic_name_length = 50
+
+= render_dashboard_ultimate_trial(current_user)
+
+.gl-text-center.gl-bg-gray-10.gl-pb-2.gl-pt-6
+ .gl-pb-5.gl-align-items-center.gl-justify-content-center.gl-display-flex
+ .avatar-container.s60.gl-flex-shrink-0
+ = topic_icon(@topic, alt: _('Topic avatar'), class: 'avatar topic-avatar s60')
+ - if @topic.name.length > max_topic_name_length
+ %h1.gl-mt-3.str-truncated.has-tooltip{ title: @topic.name }
+ = truncate(@topic.name, length: max_topic_name_length)
+ - else
+ %h1.gl-mt-3
+ = @topic.name
+ - if @topic.description.present?
+ .topic-description.gl-ml-4.gl-mr-4
+ = 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
+ .nav-controls
+ = render 'shared/projects/search_form'
+ = render 'shared/projects/dropdown'
+ = render 'filter'
+
+ = render 'projects', projects: @projects