Add "Network" to the global navigation.

This commit is contained in:
takezoe
2013-08-10 03:51:31 +09:00
parent ef03f77dc9
commit f3a1815bc5
3 changed files with 5 additions and 1 deletions

View File

@@ -34,6 +34,9 @@
<th class="box-header@if(active=="wiki"){ active}">
<a href="@url(repository)/wiki">Wiki</a>
</th>
<th class="box-header@if(active=="network"){ active}">
<a href="@url(repository)/network/members">Network</a>
</th>
@if(loginAccount.isDefined && (loginAccount.get.isAdmin || loginAccount.get.userName == repository.owner)){
<th class="box-header@if(active=="settings"){ active}">
<a href="@url(repository)/settings">Settings</a>

View File

@@ -3,6 +3,7 @@
@import context._
@import view.helpers._
@html.main(s"${repository.owner}/${repository.name}", Some(repository)) {
@html.header("network", repository)
<ul class="nav nav-tabs">
<li class="active"><a href="@url(repository)/network/members">Members</a></li>
</ul>

View File

@@ -62,7 +62,7 @@ table.global-nav {
table.global-nav th {
padding-top: 5px;
padding-bottom: 8px;
width: 20%;
width: 16%;
border-bottom: 2px solid silver;
cursor: pointer;
}