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
Tatuya Kamada
gitlab-ce
Commits
2db010b6
Commit
2db010b6
authored
Jul 27, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show tooltip with author email for commit
parent
06e98c0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+7
-0
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+7
-2
No files found.
app/assets/stylesheets/sections/commits.scss
View file @
2db010b6
...
...
@@ -440,6 +440,13 @@
.ui-box.commit-box
{
margin-top
:
0
;
.commit-committer-link
,
.commit-author-link
{
color
:
#333
;
font-weight
:
bold
;
text-shadow
:
0
1px
1px
#FFF
;
}
}
.commit-stat-summary
{
...
...
app/helpers/commits_helper.rb
View file @
2db010b6
...
...
@@ -167,10 +167,15 @@ module CommitsHelper
user
=
User
.
where
(
'name like ? or email like ?'
,
source_name
,
source_email
).
first
options
=
{
class:
"commit-
#{
options
[
:source
]
}
-link has_tooltip"
,
data:
{
:'original-title'
=>
sanitize
(
source_email
)
}
}
if
user
.
nil?
mail_to
(
source_email
,
text
.
html_safe
,
class:
"commit-
#{
options
[
:source
]
}
-link"
)
mail_to
(
source_email
,
text
.
html_safe
,
options
)
else
link_to
(
text
.
html_safe
,
user_path
(
user
),
class:
"commit-
#{
options
[
:source
]
}
-link"
)
link_to
(
text
.
html_safe
,
user_path
(
user
),
options
)
end
end
end
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