summaryrefslogtreecommitdiffstats
path: root/templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/layout.html')
-rw-r--r--templates/layout.html55
1 files changed, 13 insertions, 42 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 61f56b7..d5e3929 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -12,44 +12,26 @@
<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 %}
+ <div id="sub-header">
+ <p>
+ {% if not request.base_url.endswith(url_for('upload')) %}
+ <a href="{{url_for('upload')}}">neue Klausur hochladen</a>
+ {% else %}
+ <a href="{{url_for('list')}}">zurück</a>
+ {% endif %}
+ </p>
<ul class="flashes">
- {% with messages = get_flashed_messages() %}
- {% for message in messages %}
- <li>{{ message }}</li>
- {% endfor %}
- {% endwith %}
+ {% 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 %}
@@ -65,14 +47,3 @@
</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>