123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- {{ define "top-menu" }}
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/agents/"><i class="fa fa-android fa-fw"></i> Agents (Bots/NPCs)</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/positions/"><i class="fa fa-codepen fa-fw"></i> Positions (Cubes)</a></span>
- <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>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/objects/"><i class="fa fa-cubes fa-fw"></i> Obstacles (Objects)</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/commands/"><i class="fa fa-android fa-fw"></i>Commands to Bot</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/controller-commands/"><i class="fa fa-codepen fa-fw"></i>Commands to Controller</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/engine/"><i class="fa fa-gears fa-fw"></i> Engine</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/user-management/"><i class="fa fa-users fa-fw"></i> Manage Users</a></span>
- <span class="icon-bar"><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a></span>
- <span class="icon-bar"><a href="{{.URLPathPrefix}}/admin/logout/"><i class="fa fa-sign-out fa-fw"></i> Logout</a></span>
- </button>
- <a class="navbar-brand" href="{{.URLPathPrefix}}/admin/"><img src="{{.URLPathPrefix}}/templates/images/gobot-logo-menunav.png" height="32" alt="{{.Title}}"></a>
- </div>
- <!-- /.navbar-header -->
- <ul class="nav navbar-top-links navbar-right">
- {{ if .SetCookie }}
- <li id="#username">
- {{ .SetCookie }}
- {{ if .GravatarMenu }}
- <div style="float:left;" class="gravatar-container">
- <a href="https://gravatar.com/{{ .GravatarHash }}" title="{{ .SetCookie }}">
- <img class="avatar avatar-{{ .GravatarSizeMenu }} photo" src="{{ .GravatarMenu }}" srcset="https://secure.gravatar.com/avatar/{{ .GravatarHash }}?s={{ .GravatarTwiceSizeMenu }}&d=mm&r=r 2x" height="{{ .GravatarSizeMenu }}" width="{{ .GravatarSizeMenu }}" alt="{{ .SetCookie }}">
- </a>
- </div> <!-- ./gravatar-container -->
- {{ end }}
- </li> <!-- ./username -->
- {{ end }}
- <li>
- <a href="{{.URLPathPrefix}}/admin/"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-database fa-fw"></i> Database <i class="fa fa-caret-down"></i>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="{{.URLPathPrefix}}/admin/agents/"><i class="fa fa-android fa-fw"></i> Agents (Bots/NPCs)</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/positions/"><i class="fa fa-codepen fa-fw"></i> Positions (Cubes)</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/inventory/"><i class="fa fa-folder-open-o fa-fw"></i> Content/Inventory</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/objects/"><i class="fa fa-cubes fa-fw"></i> Obstacles (Objects)</a>
- </li>
- </ul>
- <!-- /.dropdown-menu -->
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-terminal fa-fw"></i> Commands <i class="fa fa-caret-down"></i>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="{{.URLPathPrefix}}/admin/commands/"><i class="fa fa-android fa-fw"></i> To Bot</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/controller-commands/"><i class="fa fa-codepen fa-fw"></i> To Controller</a>
- </li>
- </ul>
- <!-- /.dropdown-menu -->
- </li>
- <!-- /.dropdown (commands) -->
- <li>
- <a href="{{.URLPathPrefix}}/admin/engine/"><i class="fa fa-gears fa-fw"></i> Engine</a>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-edit fa-fw"></i> LSL scripts <i class="fa fa-caret-down"></i>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="{{.URLPathPrefix}}/admin/lsl-register-object/">Register Object</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/lsl-bot-controller/">Bot Controller</a>
- </li>
- <li>
- <a href="{{.URLPathPrefix}}/admin/lsl-agent-scripts/">Scripts for Agents</a>
- </li>
- </ul> <!-- /.dropdown-menu -->
- </li> <!-- /.dropdown (LSL scripts) -->
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
- </a>
- <ul class="dropdown-menu dropdown-user">
- <li><a href="{{.URLPathPrefix}}/admin/user-management/"><i class="fa fa-users fa-fw"></i> Manage Users</a>
- </li>
- <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
- </li>
- <li class="divider"></li>
- <li><a href="{{.URLPathPrefix}}/admin/logout/"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
- </li>
- </ul>
- <!-- /.dropdown-user -->
- </li>
- <!-- /.dropdown -->
- </ul>
- <!-- /.navbar-top-links -->
- {{ end }}
|