]> mj.ucw.cz Git - pciids.git/commitdiff
Account help
authorMichal Vaner <vorner@ucw.cz>
Sat, 30 Aug 2008 13:12:27 +0000 (15:12 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sat, 30 Aug 2008 13:12:27 +0000 (15:12 +0200)
PciIds/Html/Help.pm
help/account [new file with mode: 0644]
help/list
static/screen.css

index 803d922ce23eb20c0f5714511e209a44eeb9383e..8c65bad4ba759f86d2a0cf089ed11534bbdff345 100644 (file)
@@ -21,10 +21,12 @@ sub getHelp( $$ ) {
        print "<h1>$head (".$addr->pretty().")</h1>\n";
        genMenu( $req, $addr, $args, $auth, undef );
        genPath( $req, $addr, 1 );
-       my $url = '/read'.$req->uri().buildExcept( 'help', $args ).'?help=';
-       print "<div class='navigation'><ul><li><a href='$url=index'>Help index</a></ul></div>\n" if( $helpname ne 'index' );
+       my $url = setAddrPrefix( $req->uri(), 'read' ).buildExcept( 'help', $args ).'?help=';
+       delete $args->{'help'};
+       my %repls = ( 'HELP_URL' => $url, 'AC_URL' => setAddrPrefix( $req->uri(), 'mods' ).buildExcept( 'action', $args ).'?action=' );
+       print "<div class='navigation'><ul><li><a href='${url}index'>Help index</a></ul></div>\n" if( $helpname ne 'index' );
        while( defined( my $line = <HELP> ) ) {
-               $line =~ s/\$CUR_LINK\$/$url/g;
+               $line =~ s/\$(\w+_URL)\$/$repls{$1}/g;
                print $line;
        }
        close HELP;
diff --git a/help/account b/help/account
new file mode 100644 (file)
index 0000000..e3946b0
--- /dev/null
@@ -0,0 +1,57 @@
+Your account
+<p>
+If you want to edit something or just receive notifications about changes, you need an account.
+If you want to only view and browse information here, you do not need one.
+<p>
+The account contains your email address and password.
+If you want, you can provide a login name and xmpp address as well.
+<p>
+Email and xmpp addresses will be used to send you notifications about changes (if you request them).
+Email address can be used to reset your password, if you forget it.
+Neither your email nor your xmpp address will be showed to anybody but you and admins.
+<p>
+Login name is used for your convenience during login (you can log in by either email or login name) and
+it is showed with discussion submits you wrote.
+
+<h2>Obtaining an account</h2>
+<p>
+It is possible you account has been created already.
+It is created if you submit something using email.
+And we created accounts for all submits imported from previous version of this site.
+In that case, you need to <a href='$AC_URL$respass'>reset your password</a> (because exists no password for you).
+<p>
+If you do not have an account, go to <a href='$AC_URL$register'>Register</a> item in menu (you can find it, when you visit <a href='$AC_URL$login'>Log in</a> page) and fill your email address.
+A message containing confirmation link will be sent to it.
+After you follow the link and fill in the rest, your account is ready for use.
+
+<h2>Reseting password</h2>
+<p>
+If your account was created automatically or you forget your password, you need to reset it.
+Enter your email address into the <a href='$AC_URL$respass'>reset password</a> page.
+A message with confirmation link will be sent to you.
+When you follow it, you will be provided with a form where you can change the password.
+
+<h2>Logging in</h2>
+<p>
+When you want to edit some information here or alter your own settings, you need to be logged in.
+Fill the form on the <a href='$AC_URL$login'>log in</a> page.
+You can provide either your email address or your login name, they both work.
+<p>
+After successful login, you can see a page with your last login (so you can check nobody is misusing your account).
+<p>
+You can log out again by <a href='$AC_URL$logout'>log out</a> menu item.
+You will be logged out automatically if you do not do anything in a long time (approx. 30 minutes) or close your browser.
+
+<h2>Actions requiring login</h2>
+<ul class='navigation'>
+       <li><a href='$HELP_URL$profile'>Configuring your profile</a>
+       <li><a href='$HELP_URL$notifications'>Editing your notifications</a>
+       <li><a href='$HELP_URL$newitem'>Submitting a new item</a>
+       <li><a href='$HELP_URL$newhistory'>Entering a discussion</a>
+</ul>
+
+<h2>Accounts with additional rights</h2>
+<p>
+There are accounts with additional rights, like deleting whole items or approving history comments.
+If you have one, you probably know it already.
+If you think you should have one, contact owners of this site.
index b09d02cb9f54a5c38e0fd3980f76adef5b092a7a..03acde64ae54c04bbc700b0c586dbdd3bb38baba 100644 (file)
--- a/help/list
+++ b/help/list
@@ -6,7 +6,7 @@ The IDs are organized into a tree.
 <p>
 Page is divided into parts:
 <ul>
-       <li><strong>Menu</strong> ‒ you can perform actions, both in connection with current item (like <a href='$CUR_LINK$newitem'>adding a new sub-item</a>) and global (<a href='$CUR_LINK$profile'>editing your profile</a>).
+       <li><strong>Menu</strong> ‒ you can perform actions, both in connection with current item (like <a href='$HELP_URL$newitem'>adding a new sub-item</a>) and global (<a href='$CUR_URL$profile'>editing your profile</a>).
        <li><strong>Hierarchy</strong> ‒ lists all parental items.
        <li><strong>Discussion</strong> ‒ contains history of suggested names, notes and general talk about current item.
        <li><strong>List of sub-items</strong> ‒ all direct sub-items are listed here and you can browse into them.
@@ -24,12 +24,12 @@ Colors are used both in discussion and list of sub-items to mark status of discu
 <div class='help-example'>
 <h1>ID 0000</h1>
 <div class='menu'><ul>
-       <li><a href='$CUR_LINK$account'>Log in</a>
-       <li><a href='$CUR_LINK$newitem'>Add item</a>
-       <li><a href='$CUR_LINK$newhistory'>Discuss</a>
+       <li><a href='$HELP_URL$account'>Log in</a>
+       <li><a href='$HELP_URL$newitem'>Add item</a>
+       <li><a href='$HELP_URL$newhistory'>Discuss</a>
 </ul></div>
 <div class='navigation'><ul>
-       <li><a href='$CUR_LINK$index'>Parent</a>
+       <li><a href='$HELP_URL$index'>Parent</a>
 </div>
 <div class='name'><p>ID name</div>
 <div class='discussion'><h2>Discussion</h2>
index 56018c6cc3ba44a8e6d60594a4898e3ad17dad27..090d4daf88f7f180f26e06747d0afb7245e7ec6a 100644 (file)
@@ -45,7 +45,8 @@ body
        padding-right: 5px;
 }
 .menu ul,
-.navigation ul
+.navigation ul,
+ul.navigation
 {
        list-style-type: none;
 }