Compare commits
2 Commits
c3acc2114b
...
79982ecb58
Author | SHA1 | Date | |
---|---|---|---|
79982ecb58 | |||
cbcc4d87a6 |
@ -7,7 +7,7 @@ body {
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
width: 400px;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
a {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div class="container" style="max-width: 900px;">
|
||||
<div class="container">
|
||||
{% include 'nav.html' %}
|
||||
<h2 class="center">{{file[2]}}</h2>
|
||||
<p class="center">Expires at: {{file[5]|expirein}}</p>
|
||||
@ -18,7 +18,7 @@
|
||||
</audio>
|
||||
{% 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] %}
|
||||
<p class="text" readonly style="width: 900px">{{ filed|gettxt|replace('&', '&')|replace('<', '<')|replace('>', '>')|replace('\n', '<br>')|safe}}</p>
|
||||
<p class="text" readonly>{{ filed|gettxt|replace('&', '&')|replace('<', '<')|replace('>', '>')|replace('\n', '<br>')|safe}}</p>
|
||||
{% elif file[2].split('.')[-1] in ['md'] %}
|
||||
{% set filed = file[1] + '.' + file[2].split('.')[-1] %}
|
||||
<p class="text-md">{{ filed|gettxt|markdown|safe}}</p>
|
||||
|
Loading…
Reference in New Issue
Block a user