tinycm rev 77

Small change to user plugins
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 10 23:17:21 2017 +0100 (2017-02-10)
parents e3cba575c564
children 4b58d8ca918a
files plugins/users/users.cgi tinycm
line diff
     1.1 --- a/plugins/users/users.cgi	Fri Feb 10 22:53:14 2017 +0100
     1.2 +++ b/plugins/users/users.cgi	Fri Feb 10 23:17:21 2017 +0100
     1.3 @@ -23,14 +23,14 @@
     1.4  		cat $PEOPLE/$USER/profile.txt | wiki_parser
     1.5  		cat << EOT
     1.6  <div id="tools">
     1.7 -	<a href="$script?edit-profile">$(gettext "Edit profile")</a>
     1.8 +	<a href="$script?modprofile">$(gettext "Modify profile")</a>
     1.9  	<a href="$script?dashboard">Dashboard</a>
    1.10  </div>
    1.11  EOT
    1.12  	else
    1.13  		cat << EOT
    1.14  <div id="tools">
    1.15 -	<a href="$script?edit-profile">$(gettext "Create a profile page")</a>
    1.16 +	<a href="$script?modprofile">$(gettext "Create a profile page")</a>
    1.17  	<a href="$script?dashboard">Dashboard</a>
    1.18  </div>
    1.19  EOT
    1.20 @@ -125,7 +125,7 @@
    1.21  		fi
    1.22  		html_footer && exit 0 ;;
    1.23  		
    1.24 -	*\ edit-profile\ *)
    1.25 +	*\ modprofile\ *)
    1.26  		# Let user edit there profile
    1.27  		if ! check_auth; then
    1.28  			echo "ERROR" && exit 0
    1.29 @@ -136,8 +136,8 @@
    1.30  		html_header
    1.31  		user_box
    1.32  		cat << EOT
    1.33 -<h2>$(gettext "Edit profile [ $user ]")</h2>
    1.34 -<p>$(gettext "Edit your profile settings")
    1.35 +<h2>$(gettext "User:") $user</h2>
    1.36 +<p>$(gettext "Modify your profile settings")
    1.37  <div id="edit">
    1.38  
    1.39  <form method="get" action="$script" name="editor">
     2.1 --- a/tinycm	Fri Feb 10 22:53:14 2017 +0100
     2.2 +++ b/tinycm	Fri Feb 10 23:17:21 2017 +0100
     2.3 @@ -103,6 +103,7 @@
     2.4  			for plug in $(ls plugins)
     2.5  			do
     2.6  				if [ -d "$path/plugins/$plug" ]; then
     2.7 +					echo "* Updating plugin: $plug"
     2.8  					cp -a plugins/$plug $path/plugins
     2.9  				fi
    2.10  			done