(refs #488)Fix presentation of issue list header

This commit is contained in:
Naoki Takezoe
2014-09-22 18:29:30 +09:00
parent cb512cd98d
commit 5870cacf44
3 changed files with 10 additions and 14 deletions

View File

@@ -4,10 +4,10 @@
style : String = "",
right : Boolean = false,
flat : Boolean = false)(body: Html)
<div class="btn-group"@if(style.nonEmpty){ style="@style"}>
<div class="btn-group" @if(style.nonEmpty){style="@style"}>
<button
@if(flat){style="border: none; background-color: #eee;"}
class="dropdown-toggle @if(!flat){btn} @if(mini){btn-mini} else {btn-small}" data-toggle="dropdown">
class="dropdown-toggle @if(!flat){btn} else {flat} @if(mini){btn-mini} else {btn-small}" data-toggle="dropdown">
@if(value.isEmpty){
<i class="icon-cog"></i>
} else {

View File

@@ -129,18 +129,7 @@
</li>
}
}
@helper.html.dropdown(
value = (condition.sort, condition.direction) match {
case ("created" , "desc") => "Newest"
case ("created" , "asc" ) => "Oldest"
case ("comments", "desc") => "Most commented"
case ("comments", "asc" ) => "Least commented"
case ("updated" , "desc") => "Recently updated"
case ("updated" , "asc" ) => "Least recently updated"
},
prefix = "Sort",
flat = true
){
@helper.html.dropdown("Sort", flat = true){
<li>
<a href="@condition.copy(sort="created", direction="desc").toURL">
@helper.html.checkicon(condition.sort == "created" && condition.direction == "desc") Newest

View File

@@ -620,6 +620,13 @@ span.simplified-path {
/****************************************************************************/
/* Issues */
/****************************************************************************/
.btn-group.open .dropdown-toggle.flat {
background-image: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
a.button-link {
font-weight: normal;
color: gray;