Browse Source

fix init-tabs bug

pull/40/head
FuXiaoHei 11 years ago
parent
commit
a8623ec104
  1. 2
      templates/admin/nav.tmpl
  2. 2
      templates/repo/setting.tmpl
  3. 2
      templates/user/profile.tmpl

2
templates/admin/nav.tmpl

@ -1,5 +1,5 @@
<div id="user-setting-nav" class="col-md-3 admin-nav">
<ul class="list-group" data-init="tabs">
<ul class="list-group">
<li class="list-group-item{{if .PageIsDashboard}} active{{end}}"><a href="/admin"><i class="fa fa-tachometer fa-lg"></i> Dashboard</a></li>
<li class="list-group-item{{if .PageIsUsers}} active{{end}}"><a href="/admin/users"><i class="fa fa-users fa-lg"></i> Users</a></li>
<li class="list-group-item{{if .PageIsRepos}} active{{end}}"><a href="/admin/repos"><i class="fa fa-book fa-lg"></i> Repositories</a></li>

2
templates/repo/setting.tmpl

@ -4,7 +4,7 @@
{{template "repo/toolbar" .}}
<div id="body" class="container">
<div id="user-setting-nav" class="col-md-3">
<ul class="list-group" data-init="tabs">
<ul class="list-group">
<li class="list-group-item active"><a href="/{{.Owner.Name}}/{{.Repository.Name}}/settings">Options</a></li>
<!--<li class="list-group-item"><a href="#">Collaborators</a></li>
<li class="list-group-item"><a href="#">Notifications</a></li>-->

2
templates/user/profile.tmpl

@ -24,7 +24,7 @@
</div>
</div>
<div id="user-activity" class="col-md-9">
<ul class="nav nav-tabs" id="user-act-tabs" data-init="tabs">
<ul class="nav nav-tabs" id="user-act-tabs">
<li{{if not .TabName}} class="active"{{end}}><a href="{{.Owner.HomeLink}}"><i class="fa fa-gittip"></i>Repositories</a></li>
<li{{if eq .TabName "activity"}} class="active"{{end}}><a href="{{.Owner.HomeLink}}?tab=activity"><i class="fa fa-rss"></i>Public Activity</a></li>
</ul>

Loading…
Cancel
Save