andreimarcu
9 years ago
18 changed files with 78 additions and 64 deletions
-
4README.md
-
4fileserve.go
-
54server.go
-
2templates/404.html
-
2templates/API.html
-
12templates/base.html
-
4templates/display/audio.html
-
2templates/display/base.html
-
12templates/display/bin.html
-
2templates/display/file.html
-
4templates/display/image.html
-
2templates/display/md.html
-
4templates/display/pdf.html
-
8templates/display/story.html
-
4templates/display/video.html
-
8templates/index.html
-
8templates/paste.html
-
6upload.go
@ -1,5 +1,5 @@ |
|||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
|
|
||||
{% block content %} |
{% block content %} |
||||
<a href="/"><img src='/static/images/404.jpg'></a> |
|
||||
|
<a href="{{ sitepath }}"><img src='{{ sitepath }}static/images/404.jpg'></a> |
||||
{% endblock %} |
{% endblock %} |
@ -1,7 +1,7 @@ |
|||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
|
|
||||
{% block main %} |
{% block main %} |
||||
<a href="/selif/{{ filename }}"> |
|
||||
<img class="display-image" src="/selif/{{ filename }}" /> |
|
||||
|
<a href="{{ sitepath }}selif/{{ filename }}"> |
||||
|
<img class="display-image" src="{{ sitepath }}selif/{{ filename }}" /> |
||||
</a> |
</a> |
||||
{% endblock %} |
{% endblock %} |
@ -1,10 +1,10 @@ |
|||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
|
|
||||
{% block main %} |
{% block main %} |
||||
<object class="display-pdf" data="/selif/{{ filename }}" type="application/pdf"> |
|
||||
|
<object class="display-pdf" data="{{ sitepath }}selif/{{ filename }}" type="application/pdf"> |
||||
|
|
||||
<p>It appears your Web browser is not configured to display PDF files. |
<p>It appears your Web browser is not configured to display PDF files. |
||||
No worries, just <a href="/selif/{{ filename }}">click here to download the PDF file.</a></p> |
|
||||
|
No worries, just <a href="{{ sitepath }}selif/{{ filename }}">click here to download the PDF file.</a></p> |
||||
|
|
||||
</object> |
</object> |
||||
{% endblock %} |
{% endblock %} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue