dir-index-uncat.html 3.34 KB
Newer Older
rht's avatar
rht committed
1 2 3 4 5 6 7 8 9 10 11 12
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <!-- TODO: seed these - maybe like the starter ex or the webui? -->
  <link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/bootstrap.min.css"/>
  <!-- helper to construct this is here: https://github.com/cryptix/exp/blob/master/imgesToCSSData/convert.go -->
  <link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/icons.css">
  <style>
  .narrow {width: 0px;}
  .padding { margin: 100px;}
  #header {
13 14 15 16 17
    background: #0b3a53;
    border-bottom: 4px solid #69c4cd;
    color: #ffffff;
    margin: 0;
    padding: 0;
rht's avatar
rht committed
18 19
  }
  #logo {
20
    height: 35px;
rht's avatar
rht committed
21 22
    margin: 10px;
  }
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
  #header-menu {
    align-items: center;
    display: flex;
    margin: 10px;
    float: right;
    font-size: 16px;
    font-weight: 500;
  }
  #header-menu a {
    color: #69c4cd;
  }
  #header-menu a:active, a:visited {
    color: #9ad4db;
  }
  #header-menu a:hover {
    color: #ffffff;
  }
  .header-menu-item {
    margin: 0px 8px;
  }
  #bug-report svg {
    height: 30px;
    fill: #69c4cd;
    margin-top: 2px;
  }
  #bug-report svg:hover {
    fill: #ffffff;
  }
rht's avatar
rht committed
51 52 53
  .ipfs-icon {
    width:16px;
  }
Jack Loughran's avatar
Jack Loughran committed
54 55 56
  .ipfs-hash {
    color: #999;
  }
rht's avatar
rht committed
57 58 59 60 61
  </style>
  <title>{{ .Path }}</title>
</head>
<body>
  <div id="header" class="row">
62
    <div class="" style="float:left; padding: 0 15px; width: 160px;">
rht's avatar
rht committed
63 64
      <div id="logo" class="ipfs-logo">&nbsp;</div>
    </div>
65 66 67 68 69 70 71 72 73
    <div id="header-menu">
      <div class="header-menu-item"><a href="https://ipfs.io" target="_blank" rel="noopener noreferrer">About IPFS</a></div>
      <div class="header-menu-item"><a href="https://ipfs.io#install" target="_blank" rel="noopener noreferrer">Install IPFS</a></div>
      <div class="header-menu-item" id="bug-report">
        <a href="https://github.com/ipfs/dir-index-html/issues/" target="_blank" rel="noopener noreferrer">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.4 21"><circle cx="7.5" cy="4.8" r="1"/><circle cx="11.1" cy="4.8" r="1"/><path d="M12.7 8.4c-0.5-1.5-1.9-2.5-3.5-2.5 -1.6 0-3 1-3.5 2.5H12.7z"/><path d="M8.5 9.7H5c-0.5 0.8-0.7 1.7-0.7 2.7 0 2.6 1.8 4.8 4.2 5.2V9.7z"/><path d="M13.4 9.7H9.9v7.9c2.4-0.4 4.2-2.5 4.2-5.2C14.1 11.4 13.9 10.5 13.4 9.7z"/><circle cx="15.7" cy="12.9" r="1"/><circle cx="15.1" cy="15.4" r="1"/><circle cx="15.3" cy="10.4" r="1"/><circle cx="2.7" cy="12.9" r="1"/><circle cx="3.3" cy="15.4" r="1"/><circle cx="3.1" cy="10.4" r="1"/></svg>
        </a>
      </div>
    </div>
rht's avatar
rht committed
74 75 76 77 78 79
  </div>
  <br/>
  <div class="col-xs-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <strong>Index of {{ .Path }}</strong>
Jack Loughran's avatar
Jack Loughran committed
80 81 82 83 84
        {{ if .Hash }}
        <div class="ipfs-hash">
          {{ .Hash }}
        </div>
        {{ end }}
rht's avatar
rht committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
      </div>
      <table class="table table-striped">
        <tr>
          <td class="narrow">
            <div class="ipfs-icon ipfs-_blank">&nbsp;</div>
          </td>
          <td class="padding">
            <a href="{{.BackLink}}">..</a>
          </td>
          <td></td>
        </tr>
        {{ range .Listing }}
        <tr>
          <td>
            <div class="ipfs-icon {{iconFromExt .Name}}">&nbsp;</div>
          </td>
          <td>
            <a href="{{ .Path }}">{{ .Name }}</a>
          </td>
          <td>{{ .Size }}</td>
        </tr>
      {{ end }}
      </table>
    </div>
  </div>
</body>
</html>