debian-mirror-gitlab/app/views/admin/topics/index.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
847 B
Text
Raw Normal View History

2021-11-18 22:05:49 +05:30
- page_title _("Topics")
2022-10-11 01:57:18 +05:30
.top-area
.nav-controls.gl-w-full.gl-mt-3.gl-mb-3
= form_tag admin_topics_path, method: :get do |f|
- search = params.fetch(:search, nil)
.search-field-holder
= search_field_tag :search, search, class: "form-control gl-form-input search-text-input js-search-input", autofocus: true, spellcheck: false, placeholder: _('Search by name'), data: { qa_selector: 'topic_search_field' }
= sprite_icon('search', css_class: 'search-icon')
.gl-flex-grow-1
.js-merge-topics{ data: { path: merge_admin_topics_path } }
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(href: new_admin_topic_path, variant: 'confirm') do
2022-10-11 01:57:18 +05:30
= _('New topic')
2021-11-18 22:05:49 +05:30
%ul.content-list
= render partial: 'topic', collection: @topics
= paginate_collection @topics
- if @topics.empty?
= render 'shared/empty_states/topics'