Newer
Older
GitBucket / src / main / twirl / gitbucket / core / dashboard / issuesnavi.scala.html
@Naoki Takezoe Naoki Takezoe on 8 Dec 2015 1 KB Fix styles
@(filter: String,
  active: String,
  condition: gitbucket.core.service.IssuesService.IssueSearchCondition)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
<ul class="nav nav-pills pull-left" style="line-height: 14px;">
  <li class="@if(filter == "created_by"){active}">
    <a href="@path/dashboard/@active/created_by@condition.copy(author = None, assigned = None).toURL">Created</a>
  </li>
  <li class="@if(filter == "assigned"){active}">
    <a href="@path/dashboard/@active/assigned@condition.copy(author = None, assigned = None).toURL">Assigned</a>
  </li>
  <li class="@if(filter == "mentioned"){active}">
    <a href="@path/dashboard/@active/mentioned@condition.copy(author = None, assigned = None).toURL">Mentioned</a>
  </li>
</ul>
<form method="GET" id="search-filter-form" action="@path/dashboard/@active" class="pull-right">
  <input type="text" id="search-filter-box" class="form-control input-lg" name="q" style="width: 400px;"
         value="is:@{if(active == "issues") "issue" else "pr"} @condition.toFilterString"/>
</form>