Fix issue title.

This commit is contained in:
shimamoto
2013-06-10 22:10:47 +09:00
parent 48bcdc622f
commit 221b61af82

View File

@@ -1,36 +1,36 @@
@(active: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@import context._
@import service.AccountService._
@import service.RepositoryService._
<div class="head">
<a href="@path/@repository.owner">@repository.owner</a> / <a href="@path/@repository.owner/@repository.name">@repository.name</a>
@if(repository.repository.repositoryType == Private){
<i class="icon-lock"></i>
}
</div>
<table class="global-nav box-header">
<tr>
<th class="box-header@if(active=="code"){ active}">
<a href="@path/@repository.owner/@repository.name">Code</a>
</th>
<th class="box-header@if(active=="issue"){ active}">
<a href="@path/@repository.owner/@repository.name/issues">Issue</a>
</th>
<th class="box-header@if(active=="wiki"){ active}">
<a href="@path/@repository.owner/@repository.name/wiki">Wiki</a>
</th>
@if(loginAccount.isDefined && (loginAccount.get.userType == Administrator || loginAccount.get.userName == repository.owner)){
<th class="box-header@if(active=="settings"){ active}">
<a href="@path/@repository.owner/@repository.name/settings">Settings</a>
</th>
}
</tr>
</table>
<script type="text/javascript">
$(function(){
$('.box-header').click(function(){
location.href = $(this).find('a').attr('href');
return false;
});
});
</script>
@(active: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@import context._
@import service.AccountService._
@import service.RepositoryService._
<div class="head">
<a href="@path/@repository.owner">@repository.owner</a> / <a href="@path/@repository.owner/@repository.name">@repository.name</a>
@if(repository.repository.repositoryType == Private){
<i class="icon-lock"></i>
}
</div>
<table class="global-nav box-header">
<tr>
<th class="box-header@if(active=="code"){ active}">
<a href="@path/@repository.owner/@repository.name">Code</a>
</th>
<th class="box-header@if(active=="issues"){ active}">
<a href="@path/@repository.owner/@repository.name/issues">Issues</a>
</th>
<th class="box-header@if(active=="wiki"){ active}">
<a href="@path/@repository.owner/@repository.name/wiki">Wiki</a>
</th>
@if(loginAccount.isDefined && (loginAccount.get.userType == Administrator || loginAccount.get.userName == repository.owner)){
<th class="box-header@if(active=="settings"){ active}">
<a href="@path/@repository.owner/@repository.name/settings">Settings</a>
</th>
}
</tr>
</table>
<script type="text/javascript">
$(function(){
$('.box-header').click(function(){
location.href = $(this).find('a').attr('href');
return false;
});
});
</script>