Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-04 10:41:01 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-09-05 13:18:34 +0300
commit42a06395ac659ebd200a4c80c2c5cfefb57ab502 (patch)
tree669cb95e6812cff02181c71aa47b6f6c8144421e /app/views/projects/commit/_signature_badge.html.haml
parenta70b67295c345b7fd4e603044f3d9ec34dddd1b5 (diff)
use local_assigns to document partial params
Diffstat (limited to 'app/views/projects/commit/_signature_badge.html.haml')
-rw-r--r--app/views/projects/commit/_signature_badge.html.haml9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/projects/commit/_signature_badge.html.haml b/app/views/projects/commit/_signature_badge.html.haml
index 2224f267b8a..edff018ba6d 100644
--- a/app/views/projects/commit/_signature_badge.html.haml
+++ b/app/views/projects/commit/_signature_badge.html.haml
@@ -1,3 +1,10 @@
+- 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)
- title = capture do
@@ -8,7 +15,7 @@
= title
- content = capture do
- - if local_assigns.fetch(:show_user, false)
+ - if show_user
.clearfix
= render partial: 'projects/commit/signature_badge_user', locals: { signature: signature }