Commit 9bd074d4 authored by Douwe Maan's avatar Douwe Maan

Use display: inline where appropriate

parent c015f96b
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
Compare #{from_label}...#{truncate_sha(event.commit_to)} Compare #{from_label}...#{truncate_sha(event.commit_to)}
- if create_mr - if create_mr
%span{"data-user-is" => event.author_id} %span{"data-user-is" => event.author_id, "data-display" => "inline"}
or or
= link_to create_mr_path(event.project.default_branch, event.ref_name, event.project) do = link_to create_mr_path(event.project.default_branch, event.ref_name, event.project) do
create a merge request create a merge request
......
...@@ -7,10 +7,18 @@ ...@@ -7,10 +7,18 @@
display: block !important; display: block !important;
} }
[data-user-is="#{current_user.try(:id)}"][data-display="inline"] {
display: inline !important;
}
[data-user-is-not] { [data-user-is-not] {
display: block !important; display: block !important;
} }
[data-user-is-not][data-display="inline"] {
display: inline !important;
}
[data-user-is-not="#{current_user.try(:id)}"] { [data-user-is-not="#{current_user.try(:id)}"] {
display: none !important; display: none !important;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment