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
8b40a774
Commit
8b40a774
authored
May 24, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
79b375e1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+8
-0
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+0
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
No files found.
app/helpers/button_helper.rb
View file @
8b40a774
...
...
@@ -22,6 +22,14 @@ module ButtonHelper
type: :button
end
def
clipboard_button_with_class
(
data
=
{},
css_class:
'btn-clipboard'
)
content_tag
:button
,
icon
(
'clipboard'
),
class:
"btn
#{
css_class
}
"
,
data:
data
,
type: :button
end
def
http_clone_button
(
project
)
klass
=
'http-selector'
klass
<<
' has-tooltip'
if
current_user
.
try
(
:require_password?
)
...
...
app/helpers/commits_helper.rb
View file @
8b40a774
...
...
@@ -200,7 +200,6 @@ module CommitsHelper
source_email
=
clean
(
commit
.
send
"
#{
options
[
:source
]
}
_email"
.
to_sym
)
person_name
=
user
.
try
(
:name
)
||
source_name
person_email
=
user
.
try
(
:email
)
||
source_email
text
=
if
options
[
:avatar
]
...
...
app/views/projects/commits/_commit.html.haml
View file @
8b40a774
...
...
@@ -19,7 +19,7 @@
.commit-actions
-
if
commit
.
status
=
render_commit_status
(
commit
,
cssclass:
'btn btn-transparent'
)
=
clipboard_button
({
clipboard_text:
commit
.
id
},
css_class:
'btn-transparent'
)
=
clipboard_button
_with_class
({
clipboard_text:
commit
.
id
},
css_class:
'btn-transparent'
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
=
link_to_browse_code
(
project
,
commit
)
...
...
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