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
42a06395
Commit
42a06395
authored
Sep 04, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use local_assigns to document partial params
parent
a70b6729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/views/projects/commit/_signature_badge.html.haml
app/views/projects/commit/_signature_badge.html.haml
+8
-1
No files found.
app/views/projects/commit/_signature_badge.html.haml
View file @
42a06395
-
signature
=
local_assigns
.
fetch
(
:signature
)
-
title
=
local_assigns
.
fetch
(
:title
)
-
label
=
local_assigns
.
fetch
(
:label
)
-
css_class
=
local_assigns
.
fetch
(
:css_class
)
-
icon
=
local_assigns
.
fetch
(
:icon
)
-
show_user
=
local_assigns
.
fetch
(
:show_user
,
false
)
-
css_classes
=
commit_signature_badge_classes
(
css_class
)
-
css_classes
=
commit_signature_badge_classes
(
css_class
)
-
title
=
capture
do
-
title
=
capture
do
...
@@ -8,7 +15,7 @@
...
@@ -8,7 +15,7 @@
=
title
=
title
-
content
=
capture
do
-
content
=
capture
do
-
if
local_assigns
.
fetch
(
:show_user
,
false
)
-
if
show_user
.clearfix
.clearfix
=
render
partial:
'projects/commit/signature_badge_user'
,
locals:
{
signature:
signature
}
=
render
partial:
'projects/commit/signature_badge_user'
,
locals:
{
signature:
signature
}
...
...
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