mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-10 07:25:50 +01:00
(refs #265)Fix label pulldown position.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
@(value: String = "", prefix: String = "", mini: Boolean = true, style: String = "")(body: Html)
|
@(value: String = "", prefix: String = "", mini: Boolean = true, style: String = "", right: Boolean = false)(body: Html)
|
||||||
<div class="btn-group"@if(style.nonEmpty){ style="@style"}>
|
<div class="btn-group"@if(style.nonEmpty){ style="@style"}>
|
||||||
<button class="btn dropdown-toggle@if(mini){ btn-mini}" data-toggle="dropdown">
|
<button class="btn dropdown-toggle@if(mini){ btn-mini}" data-toggle="dropdown">
|
||||||
@if(value.isEmpty){
|
@if(value.isEmpty){
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu@if(right){ pull-right}">
|
||||||
@body
|
@body
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<span class="strong">Labels</span>
|
<span class="strong">Labels</span>
|
||||||
@if(hasWritePermission){
|
@if(hasWritePermission){
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@helper.html.dropdown() {
|
@helper.html.dropdown(right = true) {
|
||||||
@labels.map { label =>
|
@labels.map { label =>
|
||||||
<li>
|
<li>
|
||||||
<a href="#" class="toggle-label" data-label-id="@label.labelId">
|
<a href="#" class="toggle-label" data-label-id="@label.labelId">
|
||||||
|
|||||||
Reference in New Issue
Block a user