index.html 4.8 KB
Newer Older
Chris Reffett's avatar
Chris Reffett committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="description" content="GMU Keyserver">
      <meta name="author" content="Kunal Sarkhel">

      <title>GMU Keyserver</title>

      <link href="http://bootswatch.com/lumen/bootstrap.min.css" rel="stylesheet" type="text/css">
      <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
      <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

      <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
      <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
      <![endif]-->
  </head>
  <body>
    <div class="page-header" id="banner" style="border-bottom: 0px;">
      <div class="row">
        <div class="col-lg-12">
          <h1 class="text-center"><strong>gmu</strong>keyserver</h1>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
          <form action="/pks/lookup" method="get" class="form" role="form">
            <div class="control-group">
              <div class="controls">
                <input name="search" class="form-control" type="text" style="font-size: 1.5em; line-height: 1.5em; height: 2em;"/>
              </div>
            </div>
            <div class="control-group text-center" style="margin-top: 0.5em;">
              <div class="controls">
                <button type="submit" class="btn btn-primary">Search Key</button>
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Submit Key</button>
              </div>
            </div>
            <div class="text-center" style="margin-top: 0.5em;">
              <a data-toggle="collapse" data-target="#advancedOptionsCollapse">Advanced Options</a>
            </div>
            <div id="advancedOptionsCollapse" class="collapse">
              <div class="control-group">
                <div class="controls">
                  <label class="checkbox" for="fingerprint">
                    <input type="checkbox" name="fingerprint" checked="checked" />
                    How OpenPGP "fingerprints" for keys
                  </label>
                  <label class="checkbox" for="exact">
                    <input type="checkbox" name="exact" />
                    Only return exact matches
                  </label>
                </div>
              </div>
              <div class="control-group">
                <div class="controls">
                  <label class="radio" for="radios-0">
                    <input name="op" id="radios-0" value="index" checked="checked" type="radio">
                    Get regular index of matching keys
                  </label>
                  <label class="radio" for="radios-1">
                    <input name="op" id="radios-1" value="vindex" type="radio">
                    Get <strong>verbose</strong> index of matching keys
                  </label>
                </div>
              </div>
            <div>
          </form>
        </div>
      </div>
    </div>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="myModalLabel">Submit PGP Key</h4>
          </div>
          <div class="modal-body">
                    <form action="/pks/add" method="post" id="keySubmitForm">
                      <div class="control-group">
                        <label class="control-label" for="textarea">Enter an ASCII-armored OpenPGP key:</label>
                        <div class="controls">
                          <textarea id="textarea" name="keytext" rows="5" style="width: 100%;"></textarea>
                        </div>
                      </div>
                    </form>
          </div>
          <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary" onClick="$('#keySubmitForm').submit();">Submit Key</button>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>