From de02b8cb514a95c100d0ec11ab469acfc687ca00 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 22 Oct 2012 15:42:07 +0200 Subject: switch design to bootstrap; minor fixes along the way Initial-work-by: Oliver Mader Additional-work-by: Markus Cisler Signed-off-by: Florian Pritz --- application/views/file/footer.php | 3 - application/views/file/header.php | 28 ------- application/views/file/html_footer.php | 6 +- application/views/file/html_header.php | 131 +++++++++++++++++++----------- application/views/file/upload_form.php | 131 ++++++++++++++++-------------- application/views/file/upload_history.php | 53 ++++++------ 6 files changed, 182 insertions(+), 170 deletions(-) delete mode 100644 application/views/file/footer.php delete mode 100644 application/views/file/header.php (limited to 'application/views/file') diff --git a/application/views/file/footer.php b/application/views/file/footer.php deleted file mode 100644 index eda863585..000000000 --- a/application/views/file/footer.php +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/application/views/file/header.php b/application/views/file/header.php deleted file mode 100644 index 3029e4579..000000000 --- a/application/views/file/header.php +++ /dev/null @@ -1,28 +0,0 @@ - - - - - <?php echo isset($title) ? $title : ''; ?> - " media="screen" /> - - - - - -
- | - | - - - -
- - - - - -
- -
- -
diff --git a/application/views/file/html_footer.php b/application/views/file/html_footer.php index ddc460a39..a2a1cfec2 100644 --- a/application/views/file/html_footer.php +++ b/application/views/file/html_footer.php @@ -1,5 +1,7 @@ - - +
+ + + - - - <?php echo $title; ?> - - " /> - - " /> - - - -
- New | - Raw | - ">Plain | - ">Info | - Currently: | - Timeout: - + +
- + + +
+ +
+ -if ("onhashchange" in window) { - window.onload = function () { - update_anchor_highlight(); - } - window.onhashchange = function () { - update_anchor_highlight(); - } -} -/* ]]> */ - +
+
+ +
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index 20fb1a3d8..d92cbfb5c 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -1,67 +1,72 @@ - -
- -

- File: - -

- -

OR

- -

-
- -

- - - -
- -You have to to be able to upload/paste. -
- - - - - + +
+
+
+
+ +

Text paste

+ + + +
+
+
+ +

File upload

+
+ + +
+

Notice!

+

+ Uploads/pastes are deleted after days + 0) { + echo "unless they are smaller than ".format_bytes($small_upload_size); + } ?>. Maximum upload size is +

+
+
+
- -
-

Uploads/pastes are deleted after days 0): ?> - unless they are smaller than - . Maximum upload size is

-

Features

-

For shell uploading/pasting and download information for the client go to ">

-

You can use the to find old uploads.

-

How to link your pastes:

-
    -
  • /<ID>/ automatically highlight the paste
  • -
  • /<ID> set the detected MIME type and let the browser do the rest
  • -
  • /<ID>/plain force the MIME type to be text/plain
  • -
  • /<ID>/<file extension> override auto detection and use the supplied file extension or language name for highlighting
  • -
  • /<ID>/qr display a qr code containing a link to /<ID>/
  • -
  • /<ID>/rmd convert markdown to HTML
  • -
  • /<ID>/ascii convert text with ANSI (shell) escape codes to HTML
  • -
  • /<ID>/info display some information about the ID
  • -
-

If your upload is not detected as text, only -/<ID>/qr, -/<ID>/plain and -/<ID>/info -will work as above and all others will simply return the file with the detected MIME type.

-

Information

-

This website's primary goal is aiding developers, power users, students and alike in solving problems, debugging software, sharing their configuration, etc. It is not intended to distribute confidential or harmful information, scripts or software.

- -

If you believe you deserve an account, ask someone who is already using this service to you.

+ + -

If you experience any problems feel free to contact me.

-
-
-

Icons by Yusuke Kamiyamane

-

This service is provided without warranty of any kind and may not be used to distribute copyrighted content.

+ + + + + + + +
+
+ +

For shell uploading/pasting and download information for the client go to ">

+

You can use the to find old uploads.

+

How to link your pastes:

+
+
/<ID>/
automatically highlight the paste
+
/<ID>
set the detected MIME type and let the browser do the rest
+
/<ID>/plain
force the MIME type to be text/plain
+
/<ID>/<file extension>
override auto detection and use the supplied file extension or language name for highlighting
+
/<ID>/qr
display a qr code containing a link to /<ID>/
+
/<ID>/rmd
convert markdown to HTML
+
/<ID>/ascii
convert text with ANSI (shell) escape codes to HTML
+
/<ID>/info
display some information about the ID
+
+

If your upload is not detected as text, only /<ID>/qr, /<ID>/plain and /<ID>/info will work as above and all others will simply return the file with the detected MIME type.

+
+
+ +

This website's primary goal is aiding developers, power users, students and alike in solving problems, debugging software, sharing their configuration, etc. It is not intended to distribute confidential or harmful information, scripts or software.

+

If you believe you deserve an account, ask someone who is already using this service to invite you.

+ +

If you experience any problems feel free to contact me.

+ +
diff --git a/application/views/file/upload_history.php b/application/views/file/upload_history.php index 41b055792..2f09240a1 100644 --- a/application/views/file/upload_history.php +++ b/application/views/file/upload_history.php @@ -1,28 +1,31 @@ - - - - - - - - - - - - $item): ?> - - - - - - - - - - -
IDFilenameMimetype - DateHashSize
]" value="" />/">
- + + + + + + + + + + + + + + $item): ?> + + + + + + + + + + + +
IDFilenameMimetype + DateHashSize
]" value="" class="delete-history">/">
+

Total sum of your distinct uploads: .

-- cgit v1.2.3-24-g4f1b