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

_wiki_blob.html.haml « results « search « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b59275c35dfabfd84d0152d62865a7130acbcca9 (plain)
1
2
3
4
5
6
7
8
9
- project = wiki_blob.project
- wiki_blob_link = project_wiki_path(project, wiki_blob.basename)

%div{ class: 'search-result-row gl-pb-3! gl-mt-5 gl-mb-0!' }
  %span.gl-display-flex.gl-align-items-center
    = link_to wiki_blob_link, data: { track_action: 'click_text', track_label: "wiki_title", track_property: 'search_result' }, class: 'gl-w-full' do
      %span.term.str-truncated.gl-font-weight-bold= ::Gitlab::Git::Wiki::GollumSlug.canonicalize_filename(wiki_blob.path)
  .description.term.col-sm-10.gl-px-0
    = simple_search_highlight_and_truncate(wiki_blob.data, @search_term)