tinycm rev 26

remove the README function: do better
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jan 05 23:18:19 2014 +0000 (2014-01-05)
parents 5a088f7c5850
children dcbb06a29438
files content/wiki/en/help.txt index.cgi
line diff
     1.1 --- a/content/wiki/en/help.txt	Sun Jan 05 18:32:28 2014 +0000
     1.2 +++ b/content/wiki/en/help.txt	Sun Jan 05 23:18:19 2014 +0000
     1.3 @@ -1,4 +1,4 @@
     1.4 -NOWIKI
     1.5 +[NOWIKI]
     1.6  
     1.7  <h2>Help</h2>
     1.8  
     2.1 --- a/index.cgi	Sun Jan 05 18:32:28 2014 +0000
     2.2 +++ b/index.cgi	Sun Jan 05 23:18:19 2014 +0000
     2.3 @@ -598,7 +598,7 @@
     2.4  </pre>
     2.5  
     2.6  <div id="tools">
     2.7 -	<a href="$scripts?README">README</a>
     2.8 +
     2.9  </div>
    2.10  
    2.11  <h3>$(gettext "Plugins")</h3>
    2.12 @@ -614,16 +614,6 @@
    2.13  			gettext "You must be logged in to view the dashboard."
    2.14  		fi
    2.15  		html_footer ;;
    2.16 -	
    2.17 -	*\ README\ *)
    2.18 -		d="README"
    2.19 -		header
    2.20 -		html_header
    2.21 -		user_box
    2.22 -		echo "<h2>README</h2>"
    2.23 -		echo '<pre>'
    2.24 -		cat ${tiny}/README
    2.25 -		echo '</pre>' && html_footer ;;
    2.26  		
    2.27  	*\ hg\ *)
    2.28  		header
    2.29 @@ -669,8 +659,8 @@
    2.30  			gettext "The document does not exist. You can create it or read the"
    2.31  			echo " <a href='?d=en/help'>help</a>"
    2.32  		else
    2.33 -			if fgrep -q NOWIKI $wiki/$d.txt; then
    2.34 -				cat $wiki/$d.txt | sed '/NOWIKI/'d
    2.35 +			if fgrep -q [NOWIKI] $wiki/$d.txt; then
    2.36 +				cat $wiki/$d.txt | sed '/[NOWIKI]/'d
    2.37  			else
    2.38  				cat $wiki/$d.txt | wiki_parser
    2.39  			fi