github.com/cayleygraph/cayley@v0.7.7/templates/sidebar.tmpl (about)

     1  <!--
     2  // Copyright 2014 The Cayley Authors. All rights reserved.
     3  //
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  //     http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    15  -->
    16  {{define "sidebar"}}
    17  <!-- sidebar -->
    18  <div class="col-xs-6 col-sm-2 sidebar-offcanvas" id="sidebar" role="navigation">
    19    <div class="row bottompad">
    20      <div class="col-xs-8 col-sm-8 col-xs-offset-2 col-sm-offset-2">
    21        <div class="btn-group-vertical center-block">
    22          <button id="run_button" type="button" class="btn btn-primary center-block">Run Query</button>
    23          <div class="btn-group center-block">
    24            <button id="selected-query-lang" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
    25              Gizmo &nbsp; <span class="caret"></span>
    26            </button>
    27            <ul class="dropdown-menu" role="menu">
    28              <li class="dropdown-header">Query Languauge</li>
    29              <li><a id="gizmo-dropdown" href="#">Gizmo</a></li>
    30              <li><a id="mql-dropdown" href="#">MQL</a></li>
    31              <li><a id="graphql-dropdown" href="#">GraphQL</a></li>
    32            </ul>
    33          </div>
    34        </div>
    35      </div>
    36    </div>
    37    <ul class="nav">
    38      <li id="sbQuery"><a href="/">Query</a></li>
    39      <li id="sbQueryShape"><a href="/ui/query_shape">Query Shape</a></li>
    40      <li id="sbVisualize"><a href="/ui/visualize">Visualize</a></li>
    41      <li ></li>
    42      <li id="sbWrite"><a href="/ui/write">Write</a></li>
    43    </ul>
    44  
    45    <div class="row bottompad at-bottom">
    46      <div class="col-xs-8 col-sm-8 col-xs-offset-2 col-sm-offset-2">
    47        <!--<div class="btn-group-vertical center-block">-->
    48        <div class="btn-group center-block dropup">
    49          <button class="btn btn-sm center-block dropdown-toggle" type="button" data-toggle="dropdown"> Documentation <span class="caret"></span>
    50          </button>
    51          <ul class="dropdown-menu">
    52              <li><a href="/docs/Quickstart-As-Application" target="_blank">Quickstart</a></li>
    53              <li><a href="/docs/GizmoAPI" target="_blank">Gizmo API</a></li>
    54              <li><a href="/docs/MQL" target="_blank">MQL</a></li>
    55              <li><a href="/docs/Configuration" target="_blank">Configuration</a></li>
    56              <li><a href="/docs/HTTP" target="_blank">HTTP API</a></li>
    57          </ul>
    58        </div>
    59        <!--</div>-->
    60      </div>
    61    </div>
    62  
    63  </div>
    64  {{end}}