summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-06 14:55:03 +0200
committerDouwe Maan <douwe@gitlab.com>2015-08-06 14:55:03 +0200
commit9bd074d4cf6b81328921c03c93a385b703da71c9 (patch)
tree52c7813e1a8f6c2b153b0a3aeba48940e0965a8a
parentc015f96ba44e80df5d89c6311c7804b439425280 (diff)
downloadgitlab-ce-cache-events.tar.gz
Use display: inline where appropriatecache-events
-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;
}