Commit 8c5a827c authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflicts

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 9d53199c
...@@ -62,10 +62,14 @@ class SnippetsController < ApplicationController ...@@ -62,10 +62,14 @@ class SnippetsController < ApplicationController
end end
def show def show
<<<<<<< HEAD
blob = @snippet.blob blob = @snippet.blob
override_max_blob_size(blob) override_max_blob_size(blob)
@noteable = @snippet
@discussions = @snippet.discussions
@notes = prepare_notes_for_rendering(@discussions.flat_map(&:notes))
respond_to do |format| respond_to do |format|
format.html do format.html do
render 'show' render 'show'
...@@ -75,12 +79,6 @@ class SnippetsController < ApplicationController ...@@ -75,12 +79,6 @@ class SnippetsController < ApplicationController
render_blob_json(blob) render_blob_json(blob)
end end
end end
=======
@noteable = @snippet
@discussions = @snippet.discussions
@notes = prepare_notes_for_rendering(@discussions.flat_map(&:notes))
>>>>>>> origin/master
end end
def destroy def destroy
......
...@@ -35,8 +35,7 @@ ...@@ -35,8 +35,7 @@
= render 'projects/notes/actions', note: note, note_editable: note_editable = render 'projects/notes/actions', note: note, note_editable: note_editable
.note-body{ class: note_editable ? 'js-task-list-container' : '' } .note-body{ class: note_editable ? 'js-task-list-container' : '' }
.note-text.md .note-text.md
= preserve do = note.redacted_note_html
= note.redacted_note_html
= edited_time_ago_with_tooltip(note, placement: 'bottom', html_class: 'note_edited_ago', include_author: true) = edited_time_ago_with_tooltip(note, placement: 'bottom', html_class: 'note_edited_ago', include_author: true)
- if note_editable - if note_editable
......
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
<<<<<<< HEAD
ActiveRecord::Schema.define(version: 20170426181740) do
=======
ActiveRecord::Schema.define(version: 20170427180205) do ActiveRecord::Schema.define(version: 20170427180205) do
>>>>>>> origin/master
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
......
...@@ -1261,17 +1261,16 @@ module Gitlab ...@@ -1261,17 +1261,16 @@ module Gitlab
@gitaly_ref_client ||= Gitlab::GitalyClient::Ref.new(self) @gitaly_ref_client ||= Gitlab::GitalyClient::Ref.new(self)
end end
<<<<<<< HEAD
def gitaly_commit_client def gitaly_commit_client
@gitaly_commit_client ||= Gitlab::GitalyClient::Commit.new(self) @gitaly_commit_client ||= Gitlab::GitalyClient::Commit.new(self)
======= end
def gitaly_migrate(method, &block) def gitaly_migrate(method, &block)
Gitlab::GitalyClient.migrate(method, &block) Gitlab::GitalyClient.migrate(method, &block)
rescue GRPC::NotFound => e rescue GRPC::NotFound => e
raise NoRepository.new(e) raise NoRepository.new(e)
rescue GRPC::BadStatus => e rescue GRPC::BadStatus => e
raise CommandError.new(e) raise CommandError.new(e)
>>>>>>> origin/master
end end
# Returns the `Rugged` sorting type constant for a given # Returns the `Rugged` sorting type constant for a given
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment