You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
2.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. <div class="gogs-masthead navbar" id="masthead">
  2. <div class="container">
  3. <nav class="gogs-nav">
  4. <a id="gogs-nav-logo" class="gogs-nav-item{{if .PageIsHome}} active{{end}}" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a>
  5. <a class="gogs-nav-item{{if .PageIsUserDashboard}} active{{end}}" href="/">Dashboard</a>
  6. <a class="gogs-nav-item{{if .PageIsHelp}} active{{end}}" href="/help">Help</a>{{if .IsSigned}}
  7. <a id="gogs-nav-out" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/user/logout/"><i class="fa fa-power-off fa-lg"></i></a>
  8. <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right{{if .PageIsUserProfile}} active{{end}}" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}">
  9. <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/>
  10. </a>
  11. <a class="navbar-right gogs-nav-item{{if .PageIsNewRepo}} active{{end}}" href="/repo/create" data-toggle="tooltip" data-placement="bottom" title="New Repository"><i class="fa fa-plus fa-lg"></i></a>
  12. <a class="navbar-right gogs-nav-item{{if .PageIsUserSetting}} active{{end}}" href="/user/setting" data-toggle="tooltip" data-placement="bottom" title="Setting"><i class="fa fa-cogs fa-lg"></i></a>
  13. {{if .IsAdmin}}<a class="navbar-right gogs-nav-item{{if .PageIsAdmin}} active{{end}}" href="/admin" data-toggle="tooltip" data-placement="bottom" title="Admin"><i class="fa fa-gear fa-lg"></i></a>{{end}}
  14. {{else}}<a id="gogs-nav-signin" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/user/login/">Sign In</a>
  15. <a id="gogs-nav-signup" class="gogs-nav-item navbar-right" href="/user/sign_up/">Sign Up</a>{{end}}
  16. </nav>
  17. </div>
  18. </div>
  19. <!--<nav class="navbar navbar-inverse navbar-fixed-top">
  20. <div class="container">
  21. <div class="navbar-header">
  22. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gogs-navbar-collapse">
  23. <i class="fa fa-bars"></i>
  24. </button>
  25. <a class="navbar-brand" href="/"><img src="/img/favicon.png" alt="Gogs Logo"></a>
  26. </div>
  27. <div class="collapse navbar-collapse" id="gopmweb-navbar-collapse">
  28. <ul class="nav navbar-nav">
  29. <li><a>{{.Title}}</a></li>
  30. </ul>
  31. <a href="/user/signin" class="navbar-right btn btn-success navbar-btn">Sign In</a>
  32. </div>
  33. </div>
  34. </nav>-->