summaryrefslogtreecommitdiff
path: root/app/views/search/results/_commits.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/search/results/_commits.html.haml')
-rw-r--r--app/views/search/results/_commits.html.haml32
1 files changed, 1 insertions, 31 deletions
diff --git a/app/views/search/results/_commits.html.haml b/app/views/search/results/_commits.html.haml
index 8076174e59d..7cff694350f 100644
--- a/app/views/search/results/_commits.html.haml
+++ b/app/views/search/results/_commits.html.haml
@@ -1,32 +1,2 @@
.search-result-row
- .commits-row-title
- %strong.str-truncated
- = link_to commits.title, namespace_project_commit_path(@project.namespace, @project, commits.id), class: "commit_short_id"
-
- .pull-right
- = link_to commits.short_id, namespace_project_commit_path(@project.namespace, @project, commits.id), class: "commit_short_id"
-
- .notes_count
- - if @note_counts
- - note_count = @note_counts.fetch(commits.id, 0)
- - else
- - notes = commits.notes
- - note_count = notes.user.count
-
- - if note_count > 0
- %span.light
- %i.fa.fa-comments
- = note_count
-
- - if commits.description?
- .commits-row-description
- %pre
- = preserve(gfm(escape_once(commits.description)))
-
- .commits-row-info
- = commit_author_link(commits, avatar: true, size: 24)
- authored
- .committed_ago
- #{time_ago_with_tooltip(commits.committed_date)}  
- = link_to_browse_code(@project, commits)
- %br
+ = render 'projects/commits/commit', project: @project, commit: commits