Newer
Older
gitbucket_jkp / src / main / twirl / wikihistory.scala.html
@takezoe takezoe on 3 May 2013 1 KB Add History for page.
@(pageName: Option[String], commits: List[app.CommitInfo], repository: app.RepositoryInfo)(implicit context: app.Context)
@import view.helpers
@import context._
@main("History - " + repository.owner + "/" + repository.name){
  @header("wiki", repository)
  @wikitab(if(pageName.isEmpty) "history" else "", repository)
  <ul class="nav nav-tabs">
    <li>
      <h1 class="wiki-title">
        @if(pageName.nonEmpty){
          <span class="description">History for</span> @pageName.get
        }
        @if(pageName.isEmpty){
          <span class="description">History</span>
        }
      </h1>
    </li>
    <li class="pull-right">
      <div class="btn-group">
        <a class="btn" href="@path/@repository.owner/@repository.name/wiki/_new">New Page</a>
      </div>
    </li>
  </ul>
  <table class="table table-bordered">
    @commits.map { commit =>
      <tr>
        <td width="0%"><input type="checkbox"></td>
        <td><a href="@path/@commit.committer">@commit.committer</a></td>
        <td width="80%">
          <span class="description">@helpers.datetime(commit.time):</span>
          @commit.message
        </td>
      </tr>
      
    }
  </table>
  <input type="button" value="Compare Revisions" class="btn"/>
  <input type="button" value="Back to Top" class="btn"/>
}