summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/events/event/_push.html.haml2
-rw-r--r--app/views/layouts/_user_styles.html.haml8
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/events/event/_push.html.haml b/app/views/events/event/_push.html.haml
index 4de3e66962b..8bed5cdb9cc 100644
--- a/app/views/events/event/_push.html.haml
+++ b/app/views/events/event/_push.html.haml
@@ -34,7 +34,7 @@
Compare #{from_label}...#{truncate_sha(event.commit_to)}
- if create_mr
- %span{"data-user-is" => event.author_id}
+ %span{"data-user-is" => event.author_id, "data-display" => "inline"}
or
= link_to create_mr_path(event.project.default_branch, event.ref_name, event.project) do
create a merge request
diff --git a/app/views/layouts/_user_styles.html.haml b/app/views/layouts/_user_styles.html.haml
index b7f0f316724..b76b3cb5510 100644
--- a/app/views/layouts/_user_styles.html.haml
+++ b/app/views/layouts/_user_styles.html.haml
@@ -7,10 +7,18 @@
display: block !important;
}
+ [data-user-is="#{current_user.try(:id)}"][data-display="inline"] {
+ display: inline !important;
+ }
+
[data-user-is-not] {
display: block !important;
}
+ [data-user-is-not][data-display="inline"] {
+ display: inline !important;
+ }
+
[data-user-is-not="#{current_user.try(:id)}"] {
display: none !important;
}