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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
27809a80
Commit
27809a80
authored
Mar 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
parents
c0337491
2bb4ea85
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
22 deletions
+31
-22
CHANGELOG
CHANGELOG
+1
-0
Gemfile.lock
Gemfile.lock
+1
-1
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+5
-5
app/mailers/emails/projects.rb
app/mailers/emails/projects.rb
+7
-3
app/models/note.rb
app/models/note.rb
+1
-0
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
app/views/projects/diffs/_file.html.haml
app/views/projects/diffs/_file.html.haml
+7
-6
app/views/projects/issues/_issue.html.haml
app/views/projects/issues/_issue.html.haml
+3
-2
app/views/projects/merge_requests/_merge_request.html.haml
app/views/projects/merge_requests/_merge_request.html.haml
+3
-2
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-1
lib/gitlab/project_search_results.rb
lib/gitlab/project_search_results.rb
+1
-1
No files found.
CHANGELOG
View file @
27809a80
...
@@ -31,6 +31,7 @@ v 7.10.0 (unreleased)
...
@@ -31,6 +31,7 @@ v 7.10.0 (unreleased)
- Replace commits calendar with faster contribution calendar that includes issues and merge requests
- Replace commits calendar with faster contribution calendar that includes issues and merge requests
- Add inifinite scroll to user page activity
- Add inifinite scroll to user page activity
- Don't show commit comment button when user is not signed in.
- Don't show commit comment button when user is not signed in.
- Don't include system notes in issue/MR comment count.
v 7.9.0
v 7.9.0
- Send EmailsOnPush email when branch or tag is created or deleted.
- Send EmailsOnPush email when branch or tag is created or deleted.
...
...
Gemfile.lock
View file @
27809a80
...
@@ -188,7 +188,7 @@ GEM
...
@@ -188,7 +188,7 @@ GEM
dotenv (>= 0.7)
dotenv (>= 0.7)
thor (>= 0.13.6)
thor (>= 0.13.6)
formatador (0.2.4)
formatador (0.2.4)
gemnasium-gitlab-service (0.2.
5
)
gemnasium-gitlab-service (0.2.
4
)
rugged (~> 0.21)
rugged (~> 0.21)
gemojione (2.0.0)
gemojione (2.0.0)
json
json
...
...
app/assets/stylesheets/pages/diff.scss
View file @
27809a80
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
word-break
:
break-all
;
word-break
:
break-all
;
margin-right
:
200px
;
margin-right
:
200px
;
display
:
block
;
display
:
block
;
.file-mode
{
margin-left
:
10px
;
color
:
#777
;
}
}
}
.diff-btn-group
{
.diff-btn-group
{
...
@@ -34,11 +39,6 @@
...
@@ -34,11 +39,6 @@
font-family
:
$monospace_font
;
font-family
:
$monospace_font
;
font-size
:
smaller
;
font-size
:
smaller
;
}
}
.file-mode
{
font-family
:
$monospace_font
;
margin-left
:
10px
;
}
}
}
.diff-content
{
.diff-content
{
overflow
:
auto
;
overflow
:
auto
;
...
...
app/mailers/emails/projects.rb
View file @
27809a80
...
@@ -16,13 +16,17 @@ module Emails
...
@@ -16,13 +16,17 @@ module Emails
subject:
subject
(
"Project was moved"
))
subject:
subject
(
"Project was moved"
))
end
end
def
repository_push_email
(
project_id
,
recipient
,
author_id
:,
def
repository_push_email
(
project_id
,
recipient
,
author_id:
nil
,
ref
:,
ref:
nil
,
action
:,
action:
nil
,
compare:
nil
,
compare:
nil
,
reverse_compare:
false
,
reverse_compare:
false
,
send_from_committer_email:
false
,
send_from_committer_email:
false
,
disable_diffs:
false
)
disable_diffs:
false
)
unless
author_id
&&
ref
&&
action
raise
ArgumentError
,
"missing keywords: author_id, ref, action"
end
@project
=
Project
.
find
(
project_id
)
@project
=
Project
.
find
(
project_id
)
@author
=
User
.
find
(
author_id
)
@author
=
User
.
find
(
author_id
)
@reverse_compare
=
reverse_compare
@reverse_compare
=
reverse_compare
...
...
app/models/note.rb
View file @
27809a80
...
@@ -48,6 +48,7 @@ class Note < ActiveRecord::Base
...
@@ -48,6 +48,7 @@ class Note < ActiveRecord::Base
scope
:inline
,
->
{
where
(
"line_code IS NOT NULL"
)
}
scope
:inline
,
->
{
where
(
"line_code IS NOT NULL"
)
}
scope
:not_inline
,
->
{
where
(
line_code:
[
nil
,
''
])
}
scope
:not_inline
,
->
{
where
(
line_code:
[
nil
,
''
])
}
scope
:system
,
->
{
where
(
system:
true
)
}
scope
:system
,
->
{
where
(
system:
true
)
}
scope
:user
,
->
{
where
(
system:
false
)
}
scope
:common
,
->
{
where
(
noteable_type:
[
""
,
nil
])
}
scope
:common
,
->
{
where
(
noteable_type:
[
""
,
nil
])
}
scope
:fresh
,
->
{
order
(
created_at: :asc
,
id: :asc
)
}
scope
:fresh
,
->
{
order
(
created_at: :asc
,
id: :asc
)
}
scope
:inc_author_project
,
->
{
includes
(
:project
,
:author
)
}
scope
:inc_author_project
,
->
{
includes
(
:project
,
:author
)
}
...
...
app/views/projects/commits/_commit.html.haml
View file @
27809a80
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-
note_count
=
@note_counts
.
fetch
(
commit
.
id
,
0
)
-
note_count
=
@note_counts
.
fetch
(
commit
.
id
,
0
)
-
else
-
else
-
notes
=
project
.
notes
.
for_commit_id
(
commit
.
id
)
-
notes
=
project
.
notes
.
for_commit_id
(
commit
.
id
)
-
note_count
=
notes
.
count
-
note_count
=
notes
.
user
.
count
-
if
note_count
>
0
-
if
note_count
>
0
%span
.light
%span
.light
...
...
app/views/projects/diffs/_file.html.haml
View file @
27809a80
...
@@ -13,12 +13,13 @@
...
@@ -13,12 +13,13 @@
-
submodule_item
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff_file
.
file_path
)
-
submodule_item
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff_file
.
file_path
)
=
submodule_link
(
submodule_item
,
@commit
.
id
)
=
submodule_link
(
submodule_item
,
@commit
.
id
)
-
else
-
else
-
if
diff_file
.
renamed_file
%span
%span
=
"
#{
diff_file
.
old_path
}
renamed to
#{
diff_file
.
new_path
}
"
-
if
diff_file
.
renamed_file
-
else
=
"
#{
diff_file
.
old_path
}
renamed to
#{
diff_file
.
new_path
}
"
%span
=
diff_file
.
new_path
-
else
-
if
diff_file
.
mode_changed?
=
diff_file
.
new_path
%span
.file-mode
=
"
#{
diff_file
.
diff
.
a_mode
}
→
#{
diff_file
.
diff
.
b_mode
}
"
-
if
diff_file
.
mode_changed?
%span
.file-mode
=
"
#{
diff_file
.
diff
.
a_mode
}
→
#{
diff_file
.
diff
.
b_mode
}
"
.diff-btn-group
.diff-btn-group
-
if
blob
.
text?
-
if
blob
.
text?
...
...
app/views/projects/issues/_issue.html.haml
View file @
27809a80
...
@@ -10,11 +10,12 @@
...
@@ -10,11 +10,12 @@
-
if
issue
.
closed?
-
if
issue
.
closed?
%span
%span
CLOSED
CLOSED
-
if
issue
.
notes
.
any?
-
note_count
=
issue
.
notes
.
user
.
count
-
if
note_count
>
0
%span
%span
%i
.fa.fa-comments
%i
.fa.fa-comments
=
issue
.
notes
.
count
=
note_
count
.issue-info
.issue-info
=
link_to
"#
#{
issue
.
iid
}
"
,
issue_path
(
issue
),
class:
"light"
=
link_to
"#
#{
issue
.
iid
}
"
,
issue_path
(
issue
),
class:
"light"
...
...
app/views/projects/merge_requests/_merge_request.html.haml
View file @
27809a80
...
@@ -16,11 +16,12 @@
...
@@ -16,11 +16,12 @@
%span
.label-branch
<
%span
.label-branch
<
%i
.fa.fa-code-fork
%i
.fa.fa-code-fork
%span
=
merge_request
.
target_branch
%span
=
merge_request
.
target_branch
-
if
merge_request
.
notes
.
any?
-
note_count
=
merge_request
.
mr_and_commit_notes
.
user
.
count
-
if
note_count
>
0
&
nbsp
;
&
nbsp
;
%span
%span
%i
.fa.fa-comments
%i
.fa.fa-comments
=
merge_request
.
mr_and_commit_notes
.
count
=
note_
count
.merge-request-info
.merge-request-info
=
link_to
"#
#{
merge_request
.
iid
}
"
,
merge_request_path
(
merge_request
),
class:
"light"
=
link_to
"#
#{
merge_request
.
iid
}
"
,
merge_request_path
(
merge_request
),
class:
"light"
-
if
merge_request
.
assignee
-
if
merge_request
.
assignee
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
27809a80
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
=
link_to
merge_request_path
(
@merge_request
)
do
=
link_to
merge_request_path
(
@merge_request
)
do
%i
.fa.fa-comments
%i
.fa.fa-comments
Discussion
Discussion
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
count
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
user
.
count
%li
.commits-tab
{
data:
{
action:
'commits'
}}
%li
.commits-tab
{
data:
{
action:
'commits'
}}
=
link_to
merge_request_path
(
@merge_request
),
title:
'Commits'
do
=
link_to
merge_request_path
(
@merge_request
),
title:
'Commits'
do
%i
.fa.fa-history
%i
.fa.fa-history
...
...
lib/gitlab/project_search_results.rb
View file @
27809a80
...
@@ -67,7 +67,7 @@ module Gitlab
...
@@ -67,7 +67,7 @@ module Gitlab
end
end
def
notes
def
notes
Note
.
where
(
project_id:
limit_project_ids
).
search
(
query
).
order
(
'updated_at DESC'
)
Note
.
where
(
project_id:
limit_project_ids
).
user
.
search
(
query
).
order
(
'updated_at DESC'
)
end
end
def
limit_project_ids
def
limit_project_ids
...
...
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