# HG changeset patch # User Christophe Lincoln # Date 1486769191 -3600 # Node ID c5499579959a6de58dd5173001df154bdcd1c6c5 # Parent 4b58d8ca918a7dc9e2f4d6ab7271192a0e7b2c4f Small cosmetic vhange to user profile diff -r 4b58d8ca918a -r c5499579959a plugins/users/users.cgi --- a/plugins/users/users.cgi Fri Feb 10 23:21:05 2017 +0100 +++ b/plugins/users/users.cgi Sat Feb 11 00:26:31 2017 +0100 @@ -6,10 +6,6 @@ # Display user public profile. public_people() { echo "" - # Display personal user profile - if [ -f "$PEOPLE/$USER/profile.txt" ]; then - cat $PEOPLE/$USER/profile.txt | wiki_parser - fi } # Display authenticated user profile. TODO: change password @@ -20,7 +16,6 @@ EOT # Each user can have personal profile page if [ -f "$PEOPLE/$USER/profile.txt" ]; then - cat $PEOPLE/$USER/profile.txt | wiki_parser cat << EOT
$(gettext "Modify profile") @@ -123,6 +118,11 @@ . $PEOPLE/"$(GET user)"/account.conf public_people fi + # Display personal user profile + if [ -f "$PEOPLE/$USER/profile.txt" ]; then + echo "

$(gettext "About me")

" + cat $PEOPLE/$USER/profile.txt | wiki_parser + fi html_footer && exit 0 ;; *\ modprofile\ *)