tinycm rev 79

Small cosmetic vhange to user profile
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 11 00:26:31 2017 +0100 (2017-02-11)
parents 4b58d8ca918a
children 2778498112c0
files plugins/users/users.cgi
line diff
     1.1 --- a/plugins/users/users.cgi	Fri Feb 10 23:21:05 2017 +0100
     1.2 +++ b/plugins/users/users.cgi	Sat Feb 11 00:26:31 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\ *)