From db180376d4d52e43c66a11b4d24854c2ce65dd31 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 25 Oct 2013 17:20:11 +0200 Subject: [PATCH] Better help --- public_html/media/css/index-help.css | 9 +++++++++ src/Controllers/IndexController.php | 1 + src/Views/index-help.phtml | 27 +++++++++++++++++++++++---- 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 public_html/media/css/index-help.css diff --git a/public_html/media/css/index-help.css b/public_html/media/css/index-help.css new file mode 100644 index 00000000..54242fc3 --- /dev/null +++ b/public_html/media/css/index-help.css @@ -0,0 +1,9 @@ +code { + margin: 0 0.5em; +} +span.comma { + margin-left: -0.5em; +} +h1 { + margin-top: 2em; +} diff --git a/src/Controllers/IndexController.php b/src/Controllers/IndexController.php index b8d734d8..64096d5f 100644 --- a/src/Controllers/IndexController.php +++ b/src/Controllers/IndexController.php @@ -49,6 +49,7 @@ class IndexController */ public function helpAction() { + $this->context->stylesheets []= 'index-help.css'; $this->context->subTitle = 'help'; } } diff --git a/src/Views/index-help.phtml b/src/Views/index-help.phtml index 8324ba30..dc5b375f 100644 --- a/src/Views/index-help.phtml +++ b/src/Views/index-help.phtml @@ -4,6 +4,15 @@

If you’re not a registered user, you will only see public (Safe) posts. Logging in to your account will enable you to filter content by its rating: Safe, Sketchy, and NSFW.

+

You can use your keyboard to navigate around the site. There are a few shortcuts:

+ + +

Search syntax

You can combine tags and negate any of them for interesting results. sea -favmin:8 type:swf submit:Pirate will show you flash files tagged as sea, that were liked by seven people at most, uploaded by user Pirate.

@@ -30,7 +39,7 @@
  • loved by most: order:favs
  • -

    As shown with order:date, any of them can be reversed in the same way as negating other tags: by placing a dash before the tag.

    +

    As shown with -order:date, any of them can be reversed in the same way as negating other tags: by placing a dash before the tag.

    Registration

    @@ -38,6 +47,16 @@

    Oh, and you can delete your account at any time. Posts you uploaded will stay, unless some angry admin removes them.

    +

    Comments

    + +

    Registered users can post comments. Comments support Markdown syntax, extended by some handy tags:

    + + +

    Uploads

    -

    After registering, you gain the power to upload files to the service, for everyone else to see. Owners of the site are not responsible for content uploaded by users. You are not allowed to post any form of cp. If you possess it, we ask you to leave immediately and never come back.

    +

    After registering and activating your account, you gain the power to upload files to the service, for everyone else to see. Owners of the site are not responsible for content uploaded by users. You are not allowed to post any form of cp. If you possess it, we ask you to leave immediately and never come back.