mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Activate a link to tags page.
This commit is contained in:
@@ -205,6 +205,16 @@ class RepositoryViewerController extends ControllerBase {
|
|||||||
repo.html.commit(id, new CommitInfo(revCommit), JGitUtil.getRepositoryInfo(owner, repository, servletContext), JGitUtil.getDiffs(git, id))
|
repo.html.commit(id, new CommitInfo(revCommit), JGitUtil.getRepositoryInfo(owner, repository, servletContext), JGitUtil.getDiffs(git, id))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays tags.
|
||||||
|
*/
|
||||||
|
get("/:owner/:repository/tags"){
|
||||||
|
val owner = params("owner")
|
||||||
|
val repository = params("repository")
|
||||||
|
|
||||||
|
repo.html.tags(JGitUtil.getRepositoryInfo(owner, repository, servletContext))
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides HTML of the file list.
|
* Provides HTML of the file list.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li@if(active=="files"){ class="active"}><a href="@path/@repository.owner/@repository.name/tree/@id">Files</a></li>
|
<li@if(active=="files"){ class="active"}><a href="@path/@repository.owner/@repository.name/tree/@id">Files</a></li>
|
||||||
<li@if(active=="commits"){ class="active"}><a href="@path/@repository.owner/@repository.name/commits/@id">Commits</a></li>
|
<li@if(active=="commits"){ class="active"}><a href="@path/@repository.owner/@repository.name/commits/@id">Commits</a></li>
|
||||||
<li@if(active=="tags"){ class="active"}><a href="#">Tags</a></li>
|
<li@if(active=="tags"){ class="active"}><a href="@path/@repository.owner/@repository.name/tags">Tags</a></li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on">HTTP</span>
|
<span class="add-on">HTTP</span>
|
||||||
|
|||||||
18
src/main/twirl/repo/tags.scala.html
Normal file
18
src/main/twirl/repo/tags.scala.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
@(repository: app.RepositoryInfo)(implicit context: app.Context)
|
||||||
|
@import context._
|
||||||
|
@import view.helpers
|
||||||
|
@html.main(repository.owner + "/" + repository.name) {
|
||||||
|
@html.header("code", repository)
|
||||||
|
@navtab("master", repository, "tags") @* TODO DON'T display branch pulldown *@
|
||||||
|
<h1>Tags</h1>
|
||||||
|
<table class="table table-bordered">
|
||||||
|
@repository.tags.map { tag =>
|
||||||
|
<tr>
|
||||||
|
<td>@tag</td>
|
||||||
|
<td>yyyy/MM/dd HH:mm:SS</td>
|
||||||
|
<td><a href="">xxxxxxxxxx</a></td>
|
||||||
|
<td><a href="">ZIP</a></td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
</table>
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user