diff options
author | B. Stack <bgstack15@gmail.com> | 2022-02-11 19:30:19 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-02-11 19:30:19 -0500 |
commit | 4cd7dfecfbe0d9d5cc5db944e47da8c058e55166 (patch) | |
tree | f7145e18cf45646b750c025bcfb591612cb40aa0 /templates | |
parent | update style to mine (diff) | |
download | stackbin-4cd7dfecfbe0d9d5cc5db944e47da8c058e55166.tar.gz stackbin-4cd7dfecfbe0d9d5cc5db944e47da8c058e55166.tar.bz2 stackbin-4cd7dfecfbe0d9d5cc5db944e47da8c058e55166.zip |
add support for title, and ensure no js
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 7 | ||||
-rw-r--r-- | templates/new_paste.html | 2 | ||||
-rw-r--r-- | templates/show_paste.html | 5 |
3 files changed, 6 insertions, 8 deletions
diff --git a/templates/layout.html b/templates/layout.html index 348df3e..6b53bb3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -6,13 +6,10 @@ <meta name="format-detection" content="telephone=no"> <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" media="screen and (max-width: 800px)" href="{{ url_for('static', filename='small.css') }}" /> -<script type=text/javascript src="{{ url_for('static', filename='jquery.js') }}"></script> - {# +<script type=text/javascript src="{{ url_for('static', filename='jquery.js') }}"></script> <script type=text/javascript src="{{ url_for('static', filename='pastebin.js') }}"></script> -<script type=text/javascript> - pastebin.urlRoot = {{ request.url_root|tojson|safe }}; -</script> +<script type=text/javascript>pastebin.urlRoot = {{ request.url_root|tojson|safe }};</script> #} <div class=page> <ul class=nav> diff --git a/templates/new_paste.html b/templates/new_paste.html index 5f1760a..4d658c6 100644 --- a/templates/new_paste.html +++ b/templates/new_paste.html @@ -2,7 +2,7 @@ {% block title %}New Paste{% endblock %} {% block body %} <form action="" method=post> - <h2>New Paste + <h2><div class="pastetitle"><textarea rows="1" name="pastetitle">Enter title here</textarea></div> {%- if parent %} - Reply to #{{ parent.id }} {%- endif %} diff --git a/templates/show_paste.html b/templates/show_paste.html index 9628402..26273bf 100644 --- a/templates/show_paste.html +++ b/templates/show_paste.html @@ -1,7 +1,8 @@ {% extends "layout.html" %} -{% block title %}Paste #{{ paste.id }}{% endblock %} +{% block title %}{{ paste.title }}{% endblock %} {% block body %} - <h2>Paste #{{ paste.id }}</h2> + {# <h2>Paste #{{ paste.id }}</h2> #} + <h2>{{ paste.title }}</h2> <dl> {% if paste.user %} <dt>Author |