Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8c5a827c
Commit
8c5a827c
authored
May 03, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
9d53199c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
16 deletions
+8
-16
app/controllers/snippets_controller.rb
app/controllers/snippets_controller.rb
+5
-7
app/views/shared/notes/_note.html.haml
app/views/shared/notes/_note.html.haml
+1
-2
db/schema.rb
db/schema.rb
+0
-4
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+2
-3
No files found.
app/controllers/snippets_controller.rb
View file @
8c5a827c
...
...
@@ -62,10 +62,14 @@ class SnippetsController < ApplicationController
end
def
show
<<<<<<<
HEAD
blob
=
@snippet
.
blob
override_max_blob_size
(
blob
)
@noteable
=
@snippet
@discussions
=
@snippet
.
discussions
@notes
=
prepare_notes_for_rendering
(
@discussions
.
flat_map
(
&
:notes
))
respond_to
do
|
format
|
format
.
html
do
render
'show'
...
...
@@ -75,12 +79,6 @@ class SnippetsController < ApplicationController
render_blob_json
(
blob
)
end
end
=======
@noteable
=
@snippet
@discussions
=
@snippet
.
discussions
@notes
=
prepare_notes_for_rendering
(
@discussions
.
flat_map
(
&
:notes
))
>>>>>>>
origin
/
master
end
def
destroy
...
...
app/views/shared/notes/_note.html.haml
View file @
8c5a827c
...
...
@@ -35,8 +35,7 @@
=
render
'projects/notes/actions'
,
note:
note
,
note_editable:
note_editable
.note-body
{
class:
note_editable
?
'js-task-list-container'
:
''
}
.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
)
-
if
note_editable
...
...
db/schema.rb
View file @
8c5a827c
...
...
@@ -11,11 +11,7 @@
#
# 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
>>>>>>>
origin
/
master
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
lib/gitlab/git/repository.rb
View file @
8c5a827c
...
...
@@ -1261,17 +1261,16 @@ module Gitlab
@gitaly_ref_client
||=
Gitlab
::
GitalyClient
::
Ref
.
new
(
self
)
end
<<<<<<<
HEAD
def
gitaly_commit_client
@gitaly_commit_client
||=
Gitlab
::
GitalyClient
::
Commit
.
new
(
self
)
=======
end
def
gitaly_migrate
(
method
,
&
block
)
Gitlab
::
GitalyClient
.
migrate
(
method
,
&
block
)
rescue
GRPC
::
NotFound
=>
e
raise
NoRepository
.
new
(
e
)
rescue
GRPC
::
BadStatus
=>
e
raise
CommandError
.
new
(
e
)
>>>>>>>
origin
/
master
end
# Returns the `Rugged` sorting type constant for a given
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment