# HG changeset patch
# User Christophe Lincoln '
+ gettext "Mercurial is enabled but no repository found"
+ echo ": Hg init"
+ echo ' '
- gettext "Mercurial is enabled but no repository found"
- echo ": Hg init"
- echo '
$(gettext "Upload files on the cloud to share them with some other people
-or use them in your documents content.")
+or use them in your documents content. Tip: Drag and Drop files from you
+desktop.")
$(gettext "Activity")
"
- if check_auth; then
- echo "$(gettext "Activity log")
"
echo ''
if [ -f "$cache/log/activity.log" ]; then
IFS="|"
@@ -528,7 +539,9 @@
echo '
'
html_footer && exit 0
fi
+ # Document activity
get_lang
+ wiki_tools
echo "$(gettext "Activity for:") $d
"
echo ''
if [ -f "$cache/$d/activity.log" ]; then
@@ -537,9 +550,6 @@
gettext "No log for: $d"; echo
fi
echo '
'
- if check_auth; then
- wiki_tools
- fi
html_footer ;;
*\ ls\ *)
@@ -547,19 +557,16 @@
header
html_header
user_box
+ dashboard_tools
echo "$(gettext "Pages list")
"
- if check_auth; then
- echo "'
cd ${wiki}
for d in $(find . -type f | sed s'/.\///')
do
cat << EOT
${d%.txt} : \
-$(gettext "Remove")
+$(gettext "Remove") || \
+$(gettext "Edit")
EOT
done
echo '
'
@@ -579,6 +586,7 @@
html_header
user_box
get_lang
+ wiki_tools
echo "$(gettext "Diff for:") $d
"
echo ''
if [ -f "$cache/$d/$date.diff" ]; then
@@ -591,9 +599,6 @@
gettext "No diff for: $d"; echo
fi
echo '
'
- if check_auth; then
- wiki_tools
- fi
html_footer ;;
*\ login\ *)
@@ -677,7 +682,6 @@
if check_auth && ! admin_user; then
ADMIN_TOOLS=""
fi
- echo "$d
"
if check_auth; then
cat << EOT
$d
+
Users : $users
Wiki : $docs ($wikisize)
@@ -753,6 +759,7 @@
html_header
user_box
get_lang
+
# Generate a default index on first run
if [ ! -f "$wiki/$index.txt" ]; then
if ! default_index; then
@@ -760,12 +767,25 @@
html_footer && exit 0
fi
fi
+
# Check cache dir
if [ ! -w "$cache" ]; then
echo "
Directory : cache/ is not writable"
echo "Command : install -m 0777 -d $tiny/cache
"
html_footer && exit 0
fi
+
+ # Wiki tools and Hg warning if enable but not initiated
+ if [ "$HG" == "yes" ] && [ ! -d "$content/.hg" ]; then
+ echo '$d
"
@@ -778,15 +798,6 @@
cat $wiki/$d.txt | wiki_parser
fi
fi
- if check_auth; then
- wiki_tools
- if [ "$HG" == "yes" ] && [ ! -d "$content/.hg" ]; then
- echo 'Cloud files
+
' # List all Cloud files diff -r 3ca497430ce9 -r 6dfd1c3a2fdf plugins/keygen/keygen.cgi --- a/plugins/keygen/keygen.cgi Tue Jan 21 00:03:00 2014 +0100 +++ b/plugins/keygen/keygen.cgi Fri Jan 24 23:08:48 2014 +0100 @@ -38,7 +38,7 @@ *\ md5sum\ *) echo "$keygen" | md5sum | awk '{print $1}' ;; *\ sha256sum\ *) echo "$keygen" | sha256sum | awk '{print $1}' ;; *\ sha512sum\ *) echo "$keygen" | sha512sum | awk '{print $1}' ;; - *) gettext "Encrypted key" ;; + *) echo "--" ;; esac # Random password cat << EOT diff -r 3ca497430ce9 -r 6dfd1c3a2fdf style.css --- a/style.css Tue Jan 21 00:03:00 2014 +0100 +++ b/style.css Fri Jan 24 23:08:48 2014 +0100 @@ -133,7 +133,7 @@ /* Content */ #content { - margin: 40px auto; + margin: 50px auto; padding: 0 20px; text-align: justify; max-width: 680px; @@ -212,12 +212,9 @@ background-repeat: no-repeat; } -#tools { - padding-top: 10px; - margin: 20px 0px; - /*border-top: 1px dotted #ccc; - position: fixed; - bottom: 10px;*/ +#tools { + position: absolute; + top: 68px; } #tools a { text-decoration: none; margin: 4px 6px 4px 0px; } @@ -283,7 +280,10 @@ /* Plugins CSS */ -.blogpost { border-bottom: 1px dotted #ddd; } -.post-tools { border-bottom: 1px dotted #ddd; padding: 4px 0;} + +.post-tools { + border-top: 1px dotted #ddd; + border-bottom: 1px dotted #ddd; + padding: 4px 0; } .post-tools a { text-decoration: none; } .post-tools a:hover { text-decoration: underline; }