mirror of
https://github.com/szabodanika/microbin
synced 2024-11-15 05:27:07 +00:00
be3ac27920
- Changed 302 responses to 200 where needed - Fixed a bug where expiring pastas cause MicroBin to crahs - Fixed a bug where water.css didn't have the correct MIME type - Fixed a bug where missing doctype declaration caused styling issues in Firefox
60 lines
1.4 KiB
HTML
60 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
{% if args.footer_text.as_ref().is_none() %}
|
|
<title>MicroBin</title>
|
|
{%- else %}
|
|
<title>{{ args.title.as_ref().unwrap() }}</title>
|
|
{%- endif %}
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{% if !args.pure_html %}
|
|
<link rel="stylesheet" href="/static/water.css">
|
|
{%- endif %}
|
|
</head>
|
|
{% if args.wide %}
|
|
<body style="
|
|
max-width: 1080;
|
|
margin: auto;
|
|
padding-left:0.5rem;
|
|
padding-right:0.5rem;
|
|
line-height: 1.5;
|
|
font-size: 1.1em;
|
|
">
|
|
{%- else %}
|
|
<body style="
|
|
max-width: 720;
|
|
margin: auto;
|
|
padding-left:0.5rem;
|
|
padding-right:0.5rem;
|
|
line-height: 1.5;
|
|
font-size: 1.1em;
|
|
">
|
|
{%- endif %}
|
|
<br>
|
|
|
|
{% if !args.hide_header %}
|
|
|
|
<b style="margin-right: 0.5rem">
|
|
|
|
{% if !args.hide_logo %}
|
|
<i><span style="font-size:2.2rem; margin-right:1rem">μ</span></i>
|
|
{%- endif %}
|
|
|
|
{% if args.footer_text.as_ref().is_none() %}
|
|
MicroBin
|
|
{%- else %}
|
|
{{ args.title.as_ref().unwrap() }}
|
|
{%- endif %}
|
|
</b>
|
|
|
|
<a href="/" style="margin-right: 0.5rem; margin-left: 0.5rem">New Pasta</a>
|
|
|
|
<a href="/pastalist" style="margin-right: 0.5rem; margin-left: 0.5rem">Pasta List</a>
|
|
|
|
<a href="/help" style="margin-right: 0.5rem; margin-left: 0.5rem">Help</a>
|
|
|
|
<hr>
|
|
|
|
{%- endif %}
|