1. Bastian Blank
  2. wsgiwar2013

Commits

Bastian Blank  committed 75b334e

Reformat templates

  • Participants
  • Parent commits 875053e
  • Branches master

Comments (0)

Files changed (3)

File bepasty/templates/_error_404.html

View file
  • Ignore whitespace
 {% extends "_layout.html" %}
+
 {% block content %}
-<h1>Not found</h1>
-<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
+<div class="page-header">
+    <h1>Not found</h1>
+</div>
+
+<p>
+    The requested URL was not found on the server.
+    If you entered the URL manually please check your spelling and try again.
+</p>
 {% endblock %}

File bepasty/templates/display.html

View file
  • Ignore whitespace
 {% extends "_layout.html" %}
+
 {% block content %}
-<h1>
-{{ item.meta['filename'] }}
-</h1>
+<div class="page-header">
+    <h1>{{ item.meta['filename'] }}</h1>
+</div>
+
 <dl>
-  <dt>Download</dt>
-  <dd><a href="{{ url_for('bepasty.download', name=name) }}">try here…</a></dd>
-  <dt>Type</dt>
-  <dd>{{ item.meta.get('type') or 'undefined' }}</dd>
-  <dt>Size</dt>
-  <dd>{{ item.meta['size'] }}</dd>
+    <dt>Download</dt>
+    <dd><a href="{{ url_for('bepasty.download', name=name) }}">try here…</a></dd>
+    <dt>Type</dt>
+    <dd>{{ item.meta.get('type') or 'undefined' }}</dd>
+    <dt>Size</dt>
+    <dd>{{ item.meta['size'] }}</dd>
 </p>
 {% endblock content %}

File bepasty/templates/display_error.html

View file
  • Ignore whitespace
 {% extends "_layout.html" %}
+
 {% block content %}
-<h1>
-{{ item.meta['filename'] }}
-</h1>
+<div class="page-header">
+    <h1>{{ item.meta['filename'] }}</h1>
+</div>
+
 <div class="alert alert-danger">
-  <p>{{ error }}</p>
+    <p>{{ error }}</p>
 </div>
+
 <dl>
-  <dt>Type</dt>
-  <dd>{{ item.meta.get('type') or 'undefined' }}</dd>
-  <dt>Size</dt>
-  <dd>{{ item.meta['size'] }}</dd>
+    <dt>Type</dt>
+    <dd>{{ item.meta.get('type') or 'undefined' }}</dd>
+    <dt>Size</dt>
+    <dd>{{ item.meta['size'] }}</dd>
 </p>
 {% endblock content %}