From 08918c5a91d236a1dfa7c8975613922486b0abe3 Mon Sep 17 00:00:00 2001 From: cynthia sanchez Date: Mon, 13 Jun 2016 13:43:00 +0200 Subject: [PATCH] webhooks fix --- app/assets/stylesheets/buttons.scss | 10 ++++++++++ app/views/namespaces/show.html.slim | 19 +++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/buttons.scss b/app/assets/stylesheets/buttons.scss index 06097aea7..965dc0b5d 100644 --- a/app/assets/stylesheets/buttons.scss +++ b/app/assets/stylesheets/buttons.scss @@ -17,3 +17,13 @@ header .topbar.btn.btn-default { margin-left: 1em; } } +.dropdown-aligned-right { + right: 0; + left: auto; + text-align: left; + min-width: 100px; +} +.align-top-inline { + display: inline-block; + vertical-align: top; +} diff --git a/app/views/namespaces/show.html.slim b/app/views/namespaces/show.html.slim index 686753281..8fd76708d 100644 --- a/app/views/namespaces/show.html.slim +++ b/app/views/namespaces/show.html.slim @@ -104,14 +104,17 @@ tabindex="0" data-html="true"] i.fa.fa-eye ' Viewer - - if current_user.admin? || @namespace.team.users.include?(current_user) - .pull-right - a.btn.btn-link.btn-xs.btn-show-webhooks[ - value="#{@namespace.id}" class="button_namespace_description" - href=url_for(namespace_webhooks_path(@namespace)) - ] - i.fa.fa-eye.fa-lg - | Show webhooks + - if current_user.admin? || @namespace.team.users.include?(current_user) + .dropdown.align-top-inline + i.fa.fa-ellipsis-v.fa-fw.btn.btn-link[aria-expanded="false" aria-haspopup="true" data-toggle="dropdown" type="button"] + ul.dropdown-menu.dropdown-aligned-right + li + a.btn.btn-link.btn-xs.btn-show-webhooks[ + value="#{@namespace.id}" class="button_namespace_description" + href=url_for(namespace_webhooks_path(@namespace)) + ] + i.fa.fa-eye + | Show webhooks .panel-body .table-responsive table.table.table-stripped.table-hover