summaryrefslogtreecommitdiff
path: root/app/views/search
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-12 14:01:06 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-12 14:01:06 +0200
commit9ab12e099d10925c1e97d441cb7a3f8f9af31bd2 (patch)
treee7e584ee19f21133e0d92cb676234acb28adfe7c /app/views/search
parentf6609c9882c1d85b7f31072e6341fe5c91b37b41 (diff)
downloadgitlab-ce-9ab12e099d10925c1e97d441cb7a3f8f9af31bd2.tar.gz
Fix search blobs for wiki
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/results/_blob.html.haml2
-rw-r--r--app/views/search/results/_wiki_blob.html.haml1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml
index 9be13207070..58f58eff54d 100644
--- a/app/views/search/results/_blob.html.haml
+++ b/app/views/search/results/_blob.html.haml
@@ -1,4 +1,4 @@
-- blob = @project.repository.search_to_blob(blob)
+- blob = @project.repository.parse_search_result(blob)
.blob-result
.file-holder
.file-title
diff --git a/app/views/search/results/_wiki_blob.html.haml b/app/views/search/results/_wiki_blob.html.haml
index f9c5810e3d0..c03438eb952 100644
--- a/app/views/search/results/_wiki_blob.html.haml
+++ b/app/views/search/results/_wiki_blob.html.haml
@@ -1,3 +1,4 @@
+- wiki_blob = @project.repository.parse_search_result(wiki_blob)
.blob-result
.file-holder
.file-title