debian-mirror-gitlab/app/views/search/results/_blob_data.html.haml

19 lines
1.1 KiB
Text
Raw Normal View History

2021-11-11 11:23:49 +05:30
.js-blob-result.gl-mt-3.gl-mb-5{ data: { qa_selector: 'result_item_content' } }
2021-10-27 15:23:28 +05:30
.file-holder.file-holder-top-border
2019-10-12 21:52:04 +05:30
.js-file-title.file-title{ data: { qa_selector: 'file_title_content' } }
2021-11-11 11:23:49 +05:30
= link_to blob_link, data: {track_action: 'click_text', track_label: 'blob_path', track_property: 'search_result'} do
2021-01-03 14:25:43 +05:30
= sprite_icon('document')
2018-11-08 19:23:39 +05:30
%strong
2019-12-26 22:10:19 +05:30
= search_blob_title(project, path)
2021-09-30 23:02:18 +05:30
= copy_file_path_button(path)
2018-11-08 19:23:39 +05:30
- if blob.data
2021-10-27 15:23:28 +05:30
- if blob.data.size > 0
.file-content.code.term{ data: { qa_selector: 'file_text_content' } }
2022-01-26 12:08:38 +05:30
= render 'search/results/blob_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link, blame_link: blame_link, highlight_line: blob.highlight_line
2021-10-27 15:23:28 +05:30
- else
.file-content.code
.nothing-here-block
.gl-text-gray-600.gl-font-sm
- max_file_size_indexed = Gitlab::CurrentSettings.elasticsearch_indexed_file_size_limit_kb.kilobytes
= _('The file could not be displayed because it is empty or larger than the maximum file size indexed (%{size}).') % { size: number_to_human_size(max_file_size_indexed) }