top-menu.tpl 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {{ define "top-menu" }}
  2. <div class="navbar-header">
  3. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  4. <span class="sr-only">Toggle navigation</span>
  5. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/agents/"><i class="fa fa-android fa-fw"></i> Agents (Bots/NPCs)</a></span>
  6. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/positions/"><i class="fa fa-codepen fa-fw"></i> Positions (Cubes)</a></span>
  7. <span class="icon-bar"><span class="icon-bar"a href="{{.URLPathPrefix}}/admin/inventory/"><i class="fa fa-folder-open-o fa-fw"></i> Content/Inventory</a></span>
  8. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/objects/"><i class="fa fa-cubes fa-fw"></i> Obstacles (Objects)</a></span>
  9. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/commands/"><i class="fa fa-android fa-fw"></i>Commands to Bot</a></span>
  10. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/controller-commands/"><i class="fa fa-codepen fa-fw"></i>Commands to Controller</a></span>
  11. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/engine/"><i class="fa fa-gears fa-fw"></i> Engine</a></span>
  12. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/user-management/"><i class="fa fa-users fa-fw"></i> Manage Users</a></span>
  13. <span class="icon-bar"><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a></span>
  14. <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/logout/"><i class="fa fa-sign-out fa-fw"></i> Logout</a></span>
  15. </button>
  16. <a class="navbar-brand" href="{{.URLPathPrefix}}/admin/"><img src="{{.URLPathPrefix}}/templates/images/gobot-logo-menunav.png" height="32" alt="{{.Title}}"></a>
  17. </div>
  18. <!-- /.navbar-header -->
  19. <ul class="nav navbar-top-links navbar-right">
  20. {{ if .SetCookie }}
  21. <li id="#username">
  22. {{ .SetCookie }}
  23. {{ if .GravatarMenu }}
  24. <div style="float:left;" class="gravatar-container">
  25. <a href="https://gravatar.com/{{ .GravatarHash }}" title="{{ .SetCookie }}">
  26. <img class="avatar avatar-{{ .GravatarSizeMenu }} photo" src="{{ .GravatarMenu }}" srcset="https://secure.gravatar.com/avatar/{{ .GravatarHash }}?s={{ .GravatarTwiceSizeMenu }}&amp;d=mm&amp;r=r 2x" height="{{ .GravatarSizeMenu }}" width="{{ .GravatarSizeMenu }}" alt="{{ .SetCookie }}">
  27. </a>
  28. </div> <!-- ./gravatar-container -->
  29. {{ end }}
  30. </li> <!-- ./username -->
  31. {{ end }}
  32. <li>
  33. <a href="{{.URLPathPrefix}}/admin/"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
  34. </li>
  35. <li class="dropdown">
  36. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  37. <i class="fa fa-database fa-fw"></i> Database <i class="fa fa-caret-down"></i>
  38. </a>
  39. <ul class="dropdown-menu">
  40. <li>
  41. <a href="{{.URLPathPrefix}}/admin/agents/"><i class="fa fa-android fa-fw"></i> Agents (Bots/NPCs)</a>
  42. </li>
  43. <li>
  44. <a href="{{.URLPathPrefix}}/admin/positions/"><i class="fa fa-codepen fa-fw"></i> Positions (Cubes)</a>
  45. </li>
  46. <li>
  47. <a href="{{.URLPathPrefix}}/admin/inventory/"><i class="fa fa-folder-open-o fa-fw"></i> Content/Inventory</a>
  48. </li>
  49. <li>
  50. <a href="{{.URLPathPrefix}}/admin/objects/"><i class="fa fa-cubes fa-fw"></i> Obstacles (Objects)</a>
  51. </li>
  52. </ul>
  53. <!-- /.dropdown-menu -->
  54. </li>
  55. <li class="dropdown">
  56. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  57. <i class="fa fa-terminal fa-fw"></i> Commands <i class="fa fa-caret-down"></i>
  58. </a>
  59. <ul class="dropdown-menu">
  60. <li>
  61. <a href="{{.URLPathPrefix}}/admin/commands/"><i class="fa fa-android fa-fw"></i> To Bot</a>
  62. </li>
  63. <li>
  64. <a href="{{.URLPathPrefix}}/admin/controller-commands/"><i class="fa fa-codepen fa-fw"></i> To Controller</a>
  65. </li>
  66. </ul>
  67. <!-- /.dropdown-menu -->
  68. </li>
  69. <!-- /.dropdown (commands) -->
  70. <li>
  71. <a href="{{.URLPathPrefix}}/admin/engine/"><i class="fa fa-gears fa-fw"></i> Engine</a>
  72. </li>
  73. <li class="dropdown">
  74. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  75. <i class="fa fa-edit fa-fw"></i> LSL scripts <i class="fa fa-caret-down"></i>
  76. </a>
  77. <ul class="dropdown-menu">
  78. <li>
  79. <a href="{{.URLPathPrefix}}/admin/lsl-register-object/">Register Object</a>
  80. </li>
  81. <li>
  82. <a href="{{.URLPathPrefix}}/admin/lsl-bot-controller/">Bot Controller</a>
  83. </li>
  84. <li>
  85. <a href="{{.URLPathPrefix}}/admin/lsl-agent-scripts/">Scripts for Agents</a>
  86. </li>
  87. </ul> <!-- /.dropdown-menu -->
  88. </li> <!-- /.dropdown (LSL scripts) -->
  89. <li class="dropdown">
  90. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  91. <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
  92. </a>
  93. <ul class="dropdown-menu dropdown-user">
  94. <li><a href="{{.URLPathPrefix}}/admin/user-management/"><i class="fa fa-users fa-fw"></i> Manage Users</a>
  95. </li>
  96. <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
  97. </li>
  98. <li class="divider"></li>
  99. <li><a href="{{.URLPathPrefix}}/admin/logout/"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
  100. </li>
  101. </ul>
  102. <!-- /.dropdown-user -->
  103. </li>
  104. <!-- /.dropdown -->
  105. </ul>
  106. <!-- /.navbar-top-links -->
  107. {{ end }}