(refs #265)Fix label pulldown position.

This commit is contained in:
takezoe
2014-02-08 05:04:06 +09:00
parent 4366c512fe
commit d7b479d97d
2 changed files with 3 additions and 3 deletions

View File

@@ -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"}>
<button class="btn dropdown-toggle@if(mini){ btn-mini}" data-toggle="dropdown">
@if(value.isEmpty){
@@ -11,7 +11,7 @@
}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<ul class="dropdown-menu@if(right){ pull-right}">
@body
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<span class="strong">Labels</span>
@if(hasWritePermission){
<div class="pull-right">
@helper.html.dropdown() {
@helper.html.dropdown(right = true) {
@labels.map { label =>
<li>
<a href="#" class="toggle-label" data-label-id="@label.labelId">