tazbug diff web/plugins/users/users.cgi @ rev 112
Small fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 11 00:00:17 2017 +0100 (2017-02-11) |
parents | 0dfc02021c92 |
children | b19dbd851223 |
line diff
1.1 --- a/web/plugins/users/users.cgi Fri Feb 10 23:43:16 2017 +0100 1.2 +++ b/web/plugins/users/users.cgi Sat Feb 11 00:00:17 2017 +0100 1.3 @@ -6,10 +6,6 @@ 1.4 # Display user public profile. 1.5 public_people() { 1.6 echo "</pre>" 1.7 - # Display personal user profile 1.8 - if [ -f "$PEOPLE/$USER/profile.txt" ]; then 1.9 - cat $PEOPLE/$USER/profile.txt | wiki_parser 1.10 - fi 1.11 } 1.12 1.13 # Display authenticated user profile. TODO: change password 1.14 @@ -20,7 +16,6 @@ 1.15 EOT 1.16 # Each user can have personal profile page 1.17 if [ -f "$PEOPLE/$USER/profile.txt" ]; then 1.18 - cat $PEOPLE/$USER/profile.txt | wiki_parser 1.19 cat << EOT 1.20 <div id="tools"> 1.21 <a href="$script?modprofile">$(gettext "Modify profile")</a> 1.22 @@ -123,6 +118,11 @@ 1.23 . $PEOPLE/"$(GET user)"/account.conf 1.24 public_people 1.25 fi 1.26 + # Display personal user profile 1.27 + if [ -f "$PEOPLE/$USER/profile.txt" ]; then 1.28 + echo "<h2>$(gettext "About me")</h2>" 1.29 + cat $PEOPLE/$USER/profile.txt | wiki_parser 1.30 + fi 1.31 html_footer && exit 0 ;; 1.32 1.33 *\ modprofile\ *)