summaryrefslogtreecommitdiffstats
path: root/templates/layout.html
blob: 61f56b7e08ff626c34aae2b88f461ed888238457 (plain)
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="http://960.gs/css/reset.css" />
    <link rel="stylesheet" href="http://960.gs/css/text.css" />
    <link rel="stylesheet" href="http://960.gs/css/960.css" />
    <link rel="stylesheet" type="text/css" media="all" href="{{url_for('static', filename='style.css')}}" />
    <title>Fit</title>
  </head>
  <body>
    <div id="header">
      <h1><a href="/">Fit</a></h1>
      <p>git clone {{url_for('static', filename='fit.git', _external=True)}}</p>
      
      <form action="{{url_for('search')}}" method="get">
        <input type="text" name="search" placeholder="Search for tags" />
        <input type="submit" value="Search" />
      </form>
    </div>

    <div id="content">

    <div id="sub-header">
      {% with url = url_for('list') %}
      <p id="all-files" >
      {% if not request.base_url.endswith(url) %}
          <a href="{{url_for('list')}}">view all files</a>
      {% else %}
          <a href="{{url_for('index')}}">view all tags</a>
      {% endif %}
      </p>
      {% endwith %}

        <ul class="flashes">
      {% with messages = get_flashed_messages() %}
          {% for message in messages %}
            <li>{{ message }}</li>
          {% endfor %}
      {% endwith %}
        </ul>

        <div id="container">
          <h2>Upload</h2>
          <form id="upload-form" method="POST" enctype="multipart/form-data" action="/">
              <input type="file" name="file" />
              <input type="text" name="tags" />
              <input type="submit" />
          </form>

          <ul id="filelist"><li>No runtime found.</li></ul>
        </div>
      </div>

      {% block body %}{% endblock %}

    </div>

    <footer>
      <a href="https://github.com/libgit2/libgit2">libgit2</a>
      |
      <a href="https://spit.spline.de/home/cholin/fit">Fit</a>
      |
      <a href="https://github.com/libgit2/pygit2">pygit2</a>
    </footer>
  </body>
</html>


<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="{{url_for('static',filename='plupload/js/plupload.full.js')}}"></script>
<script type="text/javascript" src="{{url_for('static',filename='upload.js')}}"></script>
 
<script type="text/javascript">
  $(function() {
    fileUploader.init();
  });
</script>