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:
Diffstat (limited to 'app/views/search/results')
-rw-r--r--app/views/search/results/_blob.html.haml9
-rw-r--r--app/views/search/results/_empty.html.haml4
-rw-r--r--app/views/search/results/_issue.html.haml14
-rw-r--r--app/views/search/results/_merge_request.html.haml16
-rw-r--r--app/views/search/results/_note.html.haml26
-rw-r--r--app/views/search/results/_project.html.haml6
-rw-r--r--app/views/search/results/_snippet_blob.html.haml59
-rw-r--r--app/views/search/results/_snippet_title.html.haml23
-rw-r--r--app/views/search/results/_wiki_blob.html.haml9
9 files changed, 0 insertions, 166 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml
deleted file mode 100644
index 84e9be82c44..00000000000
--- a/app/views/search/results/_blob.html.haml
+++ /dev/null
@@ -1,9 +0,0 @@
-.blob-result
- .file-holder
- .file-title
- = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename), :anchor => "L" + blob.startline.to_s) do
- %i.fa.fa-file
- %strong
- = blob.filename
- .file-content.code.term
- = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, user_color_scheme_class: 'white'
diff --git a/app/views/search/results/_empty.html.haml b/app/views/search/results/_empty.html.haml
deleted file mode 100644
index 01fb8cd9b8e..00000000000
--- a/app/views/search/results/_empty.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-.search_box
- .search_glyph
- %span.fa.fa-search
- %h4 #{message}
diff --git a/app/views/search/results/_issue.html.haml b/app/views/search/results/_issue.html.haml
deleted file mode 100644
index ce8ddff9556..00000000000
--- a/app/views/search/results/_issue.html.haml
+++ /dev/null
@@ -1,14 +0,0 @@
-.search-result-row
- %h4
- = link_to [issue.project.namespace.becomes(Namespace), issue.project, issue] do
- %span.term.str-truncated= issue.title
- .pull-right ##{issue.iid}
- - if issue.description.present?
- .description.term
- = preserve do
- = search_md_sanitize(markdown(issue.description))
- %span.light
- #{issue.project.name_with_namespace}
- - if issue.closed?
- .pull-right
- %span.label.label-danger Closed
diff --git a/app/views/search/results/_merge_request.html.haml b/app/views/search/results/_merge_request.html.haml
deleted file mode 100644
index 2efa616d664..00000000000
--- a/app/views/search/results/_merge_request.html.haml
+++ /dev/null
@@ -1,16 +0,0 @@
-.search-result-row
- %h4
- = link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do
- %span.term.str-truncated= merge_request.title
- .pull-right ##{merge_request.iid}
- - if merge_request.description.present?
- .description.term
- = preserve do
- = search_md_sanitize(markdown(merge_request.description))
- %span.light
- #{merge_request.project.name_with_namespace}
- .pull-right
- - if merge_request.merged?
- %span.label.label-primary Merged
- - elsif merge_request.closed?
- %span.label.label-danger Closed
diff --git a/app/views/search/results/_note.html.haml b/app/views/search/results/_note.html.haml
deleted file mode 100644
index 5fcba2b7e93..00000000000
--- a/app/views/search/results/_note.html.haml
+++ /dev/null
@@ -1,26 +0,0 @@
-- project = note.project
-.search-result-row
- %h5.note-search-caption.str-truncated
- %i.fa.fa-comment
- = link_to_member(project, note.author, avatar: false)
- commented on
-
- - if note.for_commit?
- = link_to project do
- = project.name_with_namespace
- ·
- = link_to namespace_project_commit_path(project.namespace, project, note.commit_id, anchor: dom_id(note)) do
- Commit #{truncate_sha(note.commit_id)}
- - else
- = link_to project do
- = project.name_with_namespace
- ·
- %span #{note.noteable_type.titleize} ##{note.noteable.iid}
- ·
- = link_to [project.namespace.becomes(Namespace), project, note.noteable, anchor: dom_id(note)] do
- = note.noteable.title
-
- .note-search-result
- .term
- = preserve do
- = search_md_sanitize(markdown(note.note, {no_header_anchors: true}))
diff --git a/app/views/search/results/_project.html.haml b/app/views/search/results/_project.html.haml
deleted file mode 100644
index 195cf06c8ea..00000000000
--- a/app/views/search/results/_project.html.haml
+++ /dev/null
@@ -1,6 +0,0 @@
-.search-result-row
- %h4
- = link_to [project.namespace.becomes(Namespace), project] do
- %span.term= project.name_with_namespace
- - if project.description.present?
- %span.light.term= project.description
diff --git a/app/views/search/results/_snippet_blob.html.haml b/app/views/search/results/_snippet_blob.html.haml
deleted file mode 100644
index 8af393777f0..00000000000
--- a/app/views/search/results/_snippet_blob.html.haml
+++ /dev/null
@@ -1,59 +0,0 @@
-.search-result-row
- %span
- = snippet_blob[:snippet_object].title
- by
- = link_to user_snippets_path(snippet_blob[:snippet_object].author) do
- = image_tag avatar_icon(snippet_blob[:snippet_object].author_email), class: "avatar avatar-inline s16", alt: ''
- = snippet_blob[:snippet_object].author_name
- %span.light #{time_ago_with_tooltip(snippet_blob[:snippet_object].created_at)}
- %h4.snippet-title
- - snippet_path = reliable_snippet_path(snippet_blob[:snippet_object])
- = link_to snippet_path do
- .file-holder
- .file-title
- %i.fa.fa-file
- %strong= snippet_blob[:snippet_object].file_name
- - if gitlab_markdown?(snippet_blob[:snippet_object].file_name)
- .file-content.wiki
- - snippet_blob[:snippet_chunks].each do |snippet|
- - unless snippet[:data].empty?
- = preserve do
- = markdown(snippet[:data])
- - else
- .file-content.code
- .nothing-here-block Empty file
- - elsif markup?(snippet_blob[:snippet_object].file_name)
- .file-content.wiki
- - snippet_blob[:snippet_chunks].each do |snippet|
- - unless snippet[:data].empty?
- = render_markup(snippet_blob[:snippet_object].file_name, snippet[:data])
- - else
- .file-content.code
- .nothing-here-block Empty file
- - else
- .file-content.code
- %div.highlighted-data{class: user_color_scheme_class}
- .line-numbers
- - snippet_blob[:snippet_chunks].each do |snippet|
- - unless snippet[:data].empty?
- - snippet[:data].lines.to_a.size.times do |index|
- - offset = defined?(snippet[:start_line]) ? snippet[:start_line] : 1
- - i = index + offset
- = link_to snippet_path+"#L#{i}", id: "L#{i}", rel: "#L#{i}" do
- %i.fa.fa-link
- = i
- - unless snippet == snippet_blob[:snippet_chunks].last
- %a
- = "."
- .highlight.term
- %pre
- %code
- - snippet_blob[:snippet_chunks].each do |snippet|
- - unless snippet[:data].empty?
- = snippet[:data]
- - unless snippet == snippet_blob[:snippet_chunks].last
- %a
- = "..."
- - else
- .file-content.code
- .nothing-here-block Empty file
diff --git a/app/views/search/results/_snippet_title.html.haml b/app/views/search/results/_snippet_title.html.haml
deleted file mode 100644
index c414acb6a11..00000000000
--- a/app/views/search/results/_snippet_title.html.haml
+++ /dev/null
@@ -1,23 +0,0 @@
-.search-result-row
- %h4.snippet-title.term
- = link_to reliable_snippet_path(snippet_title) do
- = truncate(snippet_title.title, length: 60)
- - if snippet_title.private?
- %span.label.label-gray
- %i.fa.fa-lock
- private
- %span.cgray.monospace.tiny.pull-right.term
- = snippet_title.file_name
-
- %small.pull-right.cgray
- - if snippet_title.project_id?
- = link_to snippet_title.project.name_with_namespace, namespace_project_path(snippet_title.project.namespace, snippet_title.project)
-
- .snippet-info
- = "##{snippet_title.id}"
- %span
- by
- = link_to user_snippets_path(snippet_title.author) do
- = image_tag avatar_icon(snippet_title.author_email), class: "avatar avatar-inline s16", alt: ''
- = snippet_title.author_name
- %span.light #{time_ago_with_tooltip(snippet_title.created_at)}
diff --git a/app/views/search/results/_wiki_blob.html.haml b/app/views/search/results/_wiki_blob.html.haml
deleted file mode 100644
index f9c5810e3d0..00000000000
--- a/app/views/search/results/_wiki_blob.html.haml
+++ /dev/null
@@ -1,9 +0,0 @@
-.blob-result
- .file-holder
- .file-title
- = link_to namespace_project_wiki_path(@project.namespace, @project, wiki_blob.filename) do
- %i.fa.fa-file
- %strong
- = wiki_blob.filename
- .file-content.code.term
- = render 'shared/file_highlight', blob: wiki_blob, first_line_number: wiki_blob.startline, user_color_scheme_class: 'white'