Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
webhooks fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntss committed Jun 13, 2016
1 parent c886e90 commit 08918c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
19 changes: 11 additions & 8 deletions app/views/namespaces/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08918c5

Please sign in to comment.