Compare commits

..

No commits in common. "79982ecb589819592fa1a22ed0a2579934e04f23" and "c3acc2114baaef6494713a87969674288934780a" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ body {
.container { .container {
margin: 0 auto; margin: 0 auto;
max-width: 900px; width: 400px;
} }
a { a {

View File

@ -1,6 +1,6 @@
{% extends 'layout.html' %} {% extends 'layout.html' %}
{% block content %} {% block content %}
<div class="container"> <div class="container" style="max-width: 900px;">
{% include 'nav.html' %} {% include 'nav.html' %}
<h2 class="center">{{file[2]}}</h2> <h2 class="center">{{file[2]}}</h2>
<p class="center">Expires at: {{file[5]|expirein}}</p> <p class="center">Expires at: {{file[5]|expirein}}</p>
@ -18,7 +18,7 @@
</audio> </audio>
{% elif file[2].split('.')[-1] in ['txt', "py", "php", "htm", "html", "css", "js", "ts", "cr", "c", "cpp", "rs", "rst"] %} {% elif file[2].split('.')[-1] in ['txt', "py", "php", "htm", "html", "css", "js", "ts", "cr", "c", "cpp", "rs", "rst"] %}
{% set filed = file[1] + '.' + file[2].split('.')[-1] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %}
<p class="text" readonly>{{ filed|gettxt|replace('&', '&amp;')|replace('<', '&lt;')|replace('>', '&gt;')|replace('\n', '<br>')|safe}}</p> <p class="text" readonly style="width: 900px">{{ filed|gettxt|replace('&', '&amp;')|replace('<', '&lt;')|replace('>', '&gt;')|replace('\n', '<br>')|safe}}</p>
{% elif file[2].split('.')[-1] in ['md'] %} {% elif file[2].split('.')[-1] in ['md'] %}
{% set filed = file[1] + '.' + file[2].split('.')[-1] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %}
<p class="text-md">{{ filed|gettxt|markdown|safe}}</p> <p class="text-md">{{ filed|gettxt|markdown|safe}}</p>