-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dab2cd
commit 1d4bc5e
Showing
13 changed files
with
217 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
* Add some basic logging to storages, none of them have it. | ||
* Also some timing information to the upload view + UploadObjects function | ||
* Test that tries to upload an HTML file and ensures it's not served as HTML. | ||
* Consolidate StoredFile and StoredHTML somehow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.page-details { | ||
.page-upload-details { | ||
.file-holder { | ||
display: flex; | ||
justify-content: center; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,42 @@ | ||
{{define "extraHead"}}{{end}} | ||
|
||
{{define "content"}} | ||
CONTENT HERE | ||
{{end}} | ||
<div id="files"> | ||
{{range .UploadedFiles}} | ||
<div class="file-holder"> | ||
<div class="file{{if .IsImage}} image{{end}}"> | ||
<div class="filename"> | ||
<img src="{{$.Meta.MIMEIconSmallURL ($.Meta.MIMEIcon .Name)}}" /> | ||
{{.Name}} | ||
</div> | ||
|
||
{{if .IsImage}} | ||
<div class="image-holder"> | ||
<a href="{{$.Meta.Conf.FileURL .Key}}"> | ||
<img src="{{$.Meta.Conf.FileURL .Key}}" /> | ||
</a> | ||
</div> | ||
{{end}} | ||
|
||
<div class="metadata-bar"> | ||
<div class="filesize"> | ||
{{$.Meta.FormatBytes .Bytes}} | ||
</div> | ||
|
||
{{define "inlineJS"}} | ||
<div class="buttons"> | ||
<a href="{{$.Meta.Conf.FileURL .Key}}" class="download">Direct Link</a> | ||
<!-- TODO: implement this! --> | ||
<a href="TODO_PASTE_URL" class="view-paste">View Text</a> | ||
</div> | ||
|
||
<div class="clearfix"></div> | ||
</div> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
{{end}} | ||
|
||
{{define "inlineJS"}}{{end}} | ||
|
||
{{template "base.html" .}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.