navbar.tmpl 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <div class="four wide column">
  2. <div class="ui vertical menu">
  3. <div class="header item">{{.i18n.Tr "admin_panel"}}</div>
  4. <a class="{{if .PageIsAdminDashboard}}active{{end}} item" href="{{AppSubURL}}/admin">
  5. {{.i18n.Tr "admin.dashboard"}}
  6. </a>
  7. <a class="{{if .PageIsAdminUsers}}active{{end}} item" href="{{AppSubURL}}/admin/users">
  8. {{.i18n.Tr "admin.users"}}
  9. </a>
  10. <a class="{{if .PageIsAdminOrganizations}}active{{end}} item" href="{{AppSubURL}}/admin/orgs">
  11. {{.i18n.Tr "admin.organizations"}}
  12. </a>
  13. <a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubURL}}/admin/repos">
  14. {{.i18n.Tr "admin.repositories"}}
  15. </a>
  16. <a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubURL}}/admin/auths">
  17. {{.i18n.Tr "admin.authentication"}}
  18. </a>
  19. <a class="{{if .PageIsAdminConfig}}active{{end}} item" href="{{AppSubURL}}/admin/config">
  20. {{.i18n.Tr "admin.config"}}
  21. </a>
  22. <a class="{{if .PageIsAdminNotices}}active{{end}} item" href="{{AppSubURL}}/admin/notices">
  23. {{.i18n.Tr "admin.notices"}}
  24. </a>
  25. <a class="{{if .PageIsAdminMonitor}}active{{end}} item" href="{{AppSubURL}}/admin/monitor">
  26. {{.i18n.Tr "admin.monitor"}}
  27. </a>
  28. </div>
  29. </div>