Fossil SCM
Merge from trunk
Commit
7e755346a56adb150dd7aaaf6e8689d73ab12b6470ff673f364df90b2d38159b
Parent
ec55e51c44b8e23…
167 files changed
+1
-1
+1
-1
+1
-1
+2
-1
+1
-1
+1
-1
+49
-49
-3
+21
-3
+1
+1
-1
+16
-41
+2
-2
+11
-31
+14
-5
+19
-47
-13
-391
-3
-8
-71
-115
+19
-69
+49
+4
+6
+22
+1
-10
-3
+11
-38
-228
+13
-5
+1
+10
-34
-71
-3
-24
-68
+24
-5
+2
-2
+8
-31
+2
-3
+22
-3
+95
-36
+26
-18
+8
-37
-197
-3
-1
-44
+15
-41
+2
-2
+15
-10
+1
-1
+10
-5
-1
+55
-20
+6
-3
+33
-18
+59
-12
+1
-1
+2
-2
+24
+3
-4
+17
-4
+35
-16
+2
-1
+13
+1
-1
+46
-25
+66
-34
+31
-15
+3
-3
+9
-6
+1
-1
+5
-5
+1
-1
+1
+37
-10
+255
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+10
-7
+155
-32
+17
-15
+17
-15
+1
-1
+5
-6
+27
-20
+4
+11
-1
+1233
-1155
+3
+2
-2
+1
-1
+65
-19
+7
-1
+3
-4
+12
-5
+89
-22
+51
-9
+4954
-4050
+8
-2
+5
-5
+1
-1
+80
-13
+1
-1
+4
-4
+56
-24
+51
-60
+7
-3
+105
+97
-37
+17
-109
+1
-1
+6
+16
-8
+16
-8
+18
-15
+8
+61
-24
+2
-2
-509
+72
-257
+78
+10
-4
+18
-19
+25
-34
+3
-3
+1
-1
+5
-5
+3
-3
+24
+11
+42
-2
+3
-3
+3
-3
+1
-1
+1
-1
+68
-24
+16
-7
+1
-1
+1
-1
+5
-5
+80
-21
+368
+2
-2
+40
-18
+2
-2
+4
-4
+3
+3
-3
+2
-4
+4
-4
+1
-1
+2
-1
+5
-1
+2
-2
+2
-2
+1
-1
+1
-1
+49
+1
-1
~
BUILD.txt
~
Dockerfile
~
VERSION
~
auto.def
~
debian/makedeb.sh
~
fossil.1
~
setup/fossil.iss
-
skins/aht/details.txt
~
skins/ardoise/css.txt
~
skins/ardoise/details.txt
~
skins/ardoise/footer.txt
~
skins/ardoise/header.txt
~
skins/black_and_white/css.txt
~
skins/black_and_white/header.txt
~
skins/blitz/css.txt
~
skins/blitz/header.txt
-
skins/blitz_no_logo/README.md
-
skins/blitz_no_logo/css.txt
-
skins/blitz_no_logo/details.txt
-
skins/blitz_no_logo/footer.txt
-
skins/blitz_no_logo/header.txt
-
skins/blitz_no_logo/ticket.txt
~
skins/bootstrap/header.txt
~
skins/darkmode/css.txt
~
skins/darkmode/details.txt
~
skins/darkmode/footer.txt
~
skins/darkmode/header.txt
~
skins/default/css.txt
~
skins/default/footer.txt
~
skins/default/header.txt
-
skins/default/js.txt
~
skins/eagle/css.txt
~
skins/eagle/details.txt
~
skins/eagle/header.txt
-
skins/enhanced1/css.txt
-
skins/enhanced1/details.txt
-
skins/enhanced1/footer.txt
-
skins/enhanced1/header.txt
~
skins/khaki/css.txt
~
skins/khaki/details.txt
~
skins/khaki/header.txt
~
skins/original/css.txt
~
skins/original/footer.txt
~
skins/original/header.txt
~
skins/plain_gray/css.txt
~
skins/plain_gray/header.txt
-
skins/rounded1/css.txt
-
skins/rounded1/details.txt
-
skins/rounded1/footer.txt
-
skins/rounded1/header.txt
~
skins/xekri/header.txt
~
src/add.c
~
src/alerts.c
~
src/allrepo.c
~
src/branch.c
~
src/captcha.c
~
src/cgi.c
~
src/chat.c
~
src/chat.js
~
src/checkin.c
~
src/checkout.c
~
src/clone.c
~
src/color.c
~
src/configure.c
~
src/content.c
~
src/cookies.c
~
src/db.c
~
src/default.css
~
src/diff.c
~
src/diffcmd.c
~
src/dispatch.c
~
src/doc.c
~
src/event.c
~
src/export.c
~
src/file.c
~
src/fileedit.c
~
src/finfo.c
~
src/fossil.pikchr.js
~
src/hbmenu.js
+
src/hbmenu.js
~
src/http_socket.c
~
src/http_ssl.c
~
src/http_transport.c
~
src/import.c
~
src/json_branch.c
~
src/login.c
~
src/main.c
~
src/main.mk
~
src/main.mk
~
src/makeheaders.html
~
src/makemake.tcl
~
src/manifest.c
~
src/markdown_html.c
~
src/name.c
~
src/pikchr.c
~
src/rebuild.c
~
src/regexp.c
~
src/search.c
~
src/setup.c
~
src/setupuser.c
~
src/sha3.c
~
src/shell.c
~
src/sitemap.c
~
src/skins.c
~
src/sqlite3.c
~
src/sqlite3.h
~
src/stash.c
~
src/stat.c
~
src/style.c
~
src/sync.c
~
src/tag.c
~
src/tar.c
~
src/th.c
~
src/th.h
~
src/th_lang.c
~
src/th_main.c
~
src/timeline.c
~
src/user.c
~
src/util.c
~
src/wiki.c
~
src/wiki.c
~
src/wikiformat.c
~
src/winhttp.c
~
src/zip.c
~
test/release-checklist.wiki
-
tools/chat.tcl
~
tools/co-rsync.tcl
-
tools/fossil_chat.tcl
~
tools/skintxt2config.c
~
win/Makefile.dmc
~
win/Makefile.mingw
~
win/Makefile.msc
~
www/aboutcgi.wiki
~
www/alerts.md
~
www/build.wiki
~
www/caps/admin-v-setup.md
~
www/caps/ref.html
~
www/cgi.wiki
~
www/changes.wiki
~
www/checkin.wiki
~
www/checkin_names.wiki
~
www/chroot.md
~
www/concepts.wiki
~
www/customskin.md
~
www/embeddeddoc.wiki
~
www/faq.tcl
~
www/faq.wiki
~
www/fileedit-page.md
~
www/fileformat.wiki
~
www/fossil-is-not-relational.md
~
www/fossil-v-git.wiki
~
www/gitusers.md
~
www/globs.md
~
www/grep.md
~
www/gsoc-ideas.md
~
www/hints.wiki
~
www/index.wiki
~
www/javascript.md
~
www/makefile.wiki
~
www/mkindex.tcl
~
www/permutedindex.html
~
www/qandc.wiki
~
www/quickstart.wiki
~
www/selfhost.wiki
~
www/ssl.wiki
~
www/th1.md
~
www/unvers.wiki
+1
-1
| --- BUILD.txt | ||
| +++ BUILD.txt | ||
| @@ -73,6 +73,6 @@ | ||
| 73 | 73 | * The src/mkindex.c program generates some C code that implements |
| 74 | 74 | static lookup tables. See the header comment in the source code |
| 75 | 75 | for details on what it does. |
| 76 | 76 | |
| 77 | 77 | Additional information on the build process is available from |
| 78 | -http://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki | |
| 78 | +http://fossil-scm.org/home/doc/trunk/www/makefile.wiki | |
| 79 | 79 |
| --- BUILD.txt | |
| +++ BUILD.txt | |
| @@ -73,6 +73,6 @@ | |
| 73 | * The src/mkindex.c program generates some C code that implements |
| 74 | static lookup tables. See the header comment in the source code |
| 75 | for details on what it does. |
| 76 | |
| 77 | Additional information on the build process is available from |
| 78 | http://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki |
| 79 |
| --- BUILD.txt | |
| +++ BUILD.txt | |
| @@ -73,6 +73,6 @@ | |
| 73 | * The src/mkindex.c program generates some C code that implements |
| 74 | static lookup tables. See the header comment in the source code |
| 75 | for details on what it does. |
| 76 | |
| 77 | Additional information on the build process is available from |
| 78 | http://fossil-scm.org/home/doc/trunk/www/makefile.wiki |
| 79 |
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -7,11 +7,11 @@ | ||
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | 11 | |
| 12 | -RUN curl "https://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx | |
| 12 | +RUN curl "https://fossil-scm.org/home/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx | |
| 13 | 13 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs |
| 14 | 14 | RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c |
| 15 | 15 | RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil |
| 16 | 16 | |
| 17 | 17 | ### Build is done, remove modules no longer needed |
| 18 | 18 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -7,11 +7,11 @@ | |
| 7 | RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "https://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 13 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs |
| 14 | RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c |
| 15 | RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil |
| 16 | |
| 17 | ### Build is done, remove modules no longer needed |
| 18 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -7,11 +7,11 @@ | |
| 7 | RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "https://fossil-scm.org/home/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 13 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs |
| 14 | RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c |
| 15 | RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil |
| 16 | |
| 17 | ### Build is done, remove modules no longer needed |
| 18 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.14 | |
| 1 | +2.15 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.14 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.15 |
| 2 |
M
auto.def
+2
-1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -365,11 +365,12 @@ | ||
| 365 | 365 | set ldflags [exec pkg-config openssl --libs-only-L] |
| 366 | 366 | set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"] |
| 367 | 367 | } msg |
| 368 | 368 | if {!$found} { |
| 369 | 369 | set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \ |
| 370 | - /usr/pkg /usr/local /usr /usr/local/opt/openssl" | |
| 370 | + /usr/pkg /usr/local /usr /usr/local/opt/openssl \ | |
| 371 | + /opt/homebrew/opt/openssl" | |
| 371 | 372 | } |
| 372 | 373 | } |
| 373 | 374 | if {!$found} { |
| 374 | 375 | foreach dir $ssldirs { |
| 375 | 376 | if {$dir eq ""} { |
| 376 | 377 |
| --- auto.def | |
| +++ auto.def | |
| @@ -365,11 +365,12 @@ | |
| 365 | set ldflags [exec pkg-config openssl --libs-only-L] |
| 366 | set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"] |
| 367 | } msg |
| 368 | if {!$found} { |
| 369 | set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \ |
| 370 | /usr/pkg /usr/local /usr /usr/local/opt/openssl" |
| 371 | } |
| 372 | } |
| 373 | if {!$found} { |
| 374 | foreach dir $ssldirs { |
| 375 | if {$dir eq ""} { |
| 376 |
| --- auto.def | |
| +++ auto.def | |
| @@ -365,11 +365,12 @@ | |
| 365 | set ldflags [exec pkg-config openssl --libs-only-L] |
| 366 | set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"] |
| 367 | } msg |
| 368 | if {!$found} { |
| 369 | set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \ |
| 370 | /usr/pkg /usr/local /usr /usr/local/opt/openssl \ |
| 371 | /opt/homebrew/opt/openssl" |
| 372 | } |
| 373 | } |
| 374 | if {!$found} { |
| 375 | foreach dir $ssldirs { |
| 376 | if {$dir eq ""} { |
| 377 |
+1
-1
| --- debian/makedeb.sh | ||
| +++ debian/makedeb.sh | ||
| @@ -57,11 +57,11 @@ | ||
| 57 | 57 | This package was created by fossil-scm <[email protected]> |
| 58 | 58 | on ${PACKAGE_TIME}. |
| 59 | 59 | |
| 60 | 60 | The original sources for fossil can be downloaded for free from: |
| 61 | 61 | |
| 62 | -http://www.fossil-scm.org/ | |
| 62 | +http://fossil-scm.org/ | |
| 63 | 63 | |
| 64 | 64 | fossil is released under the terms of the 2-clause BSD License. |
| 65 | 65 | |
| 66 | 66 | EOF |
| 67 | 67 | } |
| 68 | 68 |
| --- debian/makedeb.sh | |
| +++ debian/makedeb.sh | |
| @@ -57,11 +57,11 @@ | |
| 57 | This package was created by fossil-scm <[email protected]> |
| 58 | on ${PACKAGE_TIME}. |
| 59 | |
| 60 | The original sources for fossil can be downloaded for free from: |
| 61 | |
| 62 | http://www.fossil-scm.org/ |
| 63 | |
| 64 | fossil is released under the terms of the 2-clause BSD License. |
| 65 | |
| 66 | EOF |
| 67 | } |
| 68 |
| --- debian/makedeb.sh | |
| +++ debian/makedeb.sh | |
| @@ -57,11 +57,11 @@ | |
| 57 | This package was created by fossil-scm <[email protected]> |
| 58 | on ${PACKAGE_TIME}. |
| 59 | |
| 60 | The original sources for fossil can be downloaded for free from: |
| 61 | |
| 62 | http://fossil-scm.org/ |
| 63 | |
| 64 | fossil is released under the terms of the 2-clause BSD License. |
| 65 | |
| 66 | EOF |
| 67 | } |
| 68 |
M
fossil.1
+1
-1
| --- fossil.1 | ||
| +++ fossil.1 | ||
| @@ -94,9 +94,9 @@ | ||
| 94 | 94 | 8. |
| 95 | 95 | .B Free and Open-Source |
| 96 | 96 | - Uses the 2-clause BSD license. |
| 97 | 97 | |
| 98 | 98 | .SH DOCUMENTATION |
| 99 | -http://www.fossil-scm.org/ | |
| 99 | +http://fossil-scm.org/ | |
| 100 | 100 | .br |
| 101 | 101 | .B fossil |
| 102 | 102 | \fIui\fR |
| 103 | 103 |
| --- fossil.1 | |
| +++ fossil.1 | |
| @@ -94,9 +94,9 @@ | |
| 94 | 8. |
| 95 | .B Free and Open-Source |
| 96 | - Uses the 2-clause BSD license. |
| 97 | |
| 98 | .SH DOCUMENTATION |
| 99 | http://www.fossil-scm.org/ |
| 100 | .br |
| 101 | .B fossil |
| 102 | \fIui\fR |
| 103 |
| --- fossil.1 | |
| +++ fossil.1 | |
| @@ -94,9 +94,9 @@ | |
| 94 | 8. |
| 95 | .B Free and Open-Source |
| 96 | - Uses the 2-clause BSD license. |
| 97 | |
| 98 | .SH DOCUMENTATION |
| 99 | http://fossil-scm.org/ |
| 100 | .br |
| 101 | .B fossil |
| 102 | \fIui\fR |
| 103 |
+49
-49
| --- setup/fossil.iss | ||
| +++ setup/fossil.iss | ||
| @@ -1,49 +1,49 @@ | ||
| 1 | -; | |
| 2 | -; Copyright (c) 2014 D. Richard Hipp | |
| 3 | -; | |
| 4 | -; This program is free software; you can redistribute it and/or | |
| 5 | -; modify it under the terms of the Simplified BSD License (also | |
| 6 | -; known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | -; | |
| 8 | -; This program is distributed in the hope that it will be useful, | |
| 9 | -; but without any warranty; without even the implied warranty of | |
| 10 | -; merchantability or fitness for a particular purpose. | |
| 11 | -; | |
| 12 | -; Author contact information: | |
| 13 | -; [email protected] | |
| 14 | -; http://www.hwaci.com/drh/ | |
| 15 | -; | |
| 16 | - | |
| 17 | -[Setup] | |
| 18 | -ArchitecturesAllowed=x86 x64 | |
| 19 | -AlwaysShowComponentsList=false | |
| 20 | -AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved. | |
| 21 | -AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c} | |
| 22 | -AppName=Fossil | |
| 23 | -AppPublisher=Fossil Development Team | |
| 24 | -AppPublisherURL=https://www.fossil-scm.org/ | |
| 25 | -AppSupportURL=https://www.fossil-scm.org/ | |
| 26 | -AppUpdatesURL=https://www.fossil-scm.org/ | |
| 27 | -AppVerName=Fossil v{#AppVersion} | |
| 28 | -AppVersion={#AppVersion} | |
| 29 | -AppComments=Simple, high-reliability, distributed software configuration management system. | |
| 30 | -AppReadmeFile=https://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki | |
| 31 | -DefaultDirName={pf}\Fossil | |
| 32 | -DefaultGroupName=Fossil | |
| 33 | -OutputBaseFilename=fossil-win32-{#AppVersion} | |
| 34 | -OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt | |
| 35 | -SetupLogging=true | |
| 36 | -UninstallFilesDir={app}\uninstall | |
| 37 | -VersionInfoVersion={#AppVersion} | |
| 38 | - | |
| 39 | 1 | |
| 40 | -[Components] | |
| 41 | -Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed | |
| 42 | - | |
| 43 | 2 | |
| 44 | -[Dirs] | |
| 45 | -Name: {app}\bin | |
| 46 | - | |
| 47 | 3 | |
| 48 | -[Files] | |
| 49 | -Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete | |
| 50 | - | |
| 51 | 4 | |
| 52 | -[Registry] | |
| 53 | -Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue | |
| 5 | +; | |
| 6 | +; Copyright (c) 2014 D. Richard Hipp | |
| 7 | +; | |
| 8 | +; This program is free software; you can redistribute it and/or | |
| 9 | +; modify it under the terms of the Simplified BSD License (also | |
| 10 | +; known as the "2-Clause License" or "FreeBSD License".) | |
| 11 | +; | |
| 12 | +; This program is distributed in the hope that it will be useful, | |
| 13 | +; but without any warranty; without even the implied warranty of | |
| 14 | +; merchantability or fitness for a particular purpose. | |
| 15 | +; | |
| 16 | +; Author contact information: | |
| 17 | +; [email protected] | |
| 18 | +; http://www.hwaci.com/drh/ | |
| 19 | +; | |
| 20 | + | |
| 21 | +[Setup] | |
| 22 | +ArchitecturesAllowed=x86 x64 | |
| 23 | +AlwaysShowComponentsList=false | |
| 24 | +AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved. | |
| 25 | +AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c} | |
| 26 | +AppName=Fossil | |
| 27 | +AppPublisher=Fossil Development Team | |
| 28 | +AppPublisherURL=https://fossil-scm.org/ | |
| 29 | +AppSupportURL=https://fossil-scm.org/ | |
| 30 | +AppUpdatesURL=https://fossil-scm.org/ | |
| 31 | +AppVerName=Fossil v{#AppVersion} | |
| 32 | +AppVersion={#AppVersion} | |
| 33 | +AppComments=Simple, high-reliability, distributed software configuration management system. | |
| 34 | +AppReadmeFile=https://fossil-scm.org/home/doc/tip/www/quickstart.wiki | |
| 35 | +DefaultDirName={pf}\Fossil | |
| 36 | +DefaultGroupName=Fossil | |
| 37 | +OutputBaseFilename=fossil-win32-{#AppVersion} | |
| 38 | +OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt | |
| 39 | +SetupLogging=true | |
| 40 | +UninstallFilesDir={app}\uninstall | |
| 41 | +VersionInfoVersion={#AppVersion} | |
| 42 | + | |
| 54 | 43 | |
| 44 | +[Components] | |
| 45 | +Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed | |
| 46 | + | |
| 55 | 47 | |
| 48 | +[Dirs] | |
| 49 | +Name: {app}\bin | |
| 50 | + | |
| 56 | 51 | |
| 52 | +[Files] | |
| 53 | +Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete | |
| 54 | + | |
| 57 | 55 | |
| 56 | +[Registry] | |
| 57 | +Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue | |
| 58 | 58 | |
| 59 | 59 | DELETED skins/aht/details.txt |
| --- setup/fossil.iss | |
| +++ setup/fossil.iss | |
| @@ -1,49 +1,49 @@ | |
| 1 | ; |
| 2 | ; Copyright (c) 2014 D. Richard Hipp |
| 3 | ; |
| 4 | ; This program is free software; you can redistribute it and/or |
| 5 | ; modify it under the terms of the Simplified BSD License (also |
| 6 | ; known as the "2-Clause License" or "FreeBSD License".) |
| 7 | ; |
| 8 | ; This program is distributed in the hope that it will be useful, |
| 9 | ; but without any warranty; without even the implied warranty of |
| 10 | ; merchantability or fitness for a particular purpose. |
| 11 | ; |
| 12 | ; Author contact information: |
| 13 | ; [email protected] |
| 14 | ; http://www.hwaci.com/drh/ |
| 15 | ; |
| 16 | |
| 17 | [Setup] |
| 18 | ArchitecturesAllowed=x86 x64 |
| 19 | AlwaysShowComponentsList=false |
| 20 | AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved. |
| 21 | AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c} |
| 22 | AppName=Fossil |
| 23 | AppPublisher=Fossil Development Team |
| 24 | AppPublisherURL=https://www.fossil-scm.org/ |
| 25 | AppSupportURL=https://www.fossil-scm.org/ |
| 26 | AppUpdatesURL=https://www.fossil-scm.org/ |
| 27 | AppVerName=Fossil v{#AppVersion} |
| 28 | AppVersion={#AppVersion} |
| 29 | AppComments=Simple, high-reliability, distributed software configuration management system. |
| 30 | AppReadmeFile=https://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki |
| 31 | DefaultDirName={pf}\Fossil |
| 32 | DefaultGroupName=Fossil |
| 33 | OutputBaseFilename=fossil-win32-{#AppVersion} |
| 34 | OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt |
| 35 | SetupLogging=true |
| 36 | UninstallFilesDir={app}\uninstall |
| 37 | VersionInfoVersion={#AppVersion} |
| 38 | |
| 39 | |
| 40 | [Components] |
| 41 | Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed |
| 42 | |
| 43 | |
| 44 | [Dirs] |
| 45 | Name: {app}\bin |
| 46 | |
| 47 | |
| 48 | [Files] |
| 49 | Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete |
| 50 | |
| 51 | |
| 52 | [Registry] |
| 53 | Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | ELETED skins/aht/details.txt |
| --- setup/fossil.iss | |
| +++ setup/fossil.iss | |
| @@ -1,49 +1,49 @@ | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | ; |
| 6 | ; Copyright (c) 2014 D. Richard Hipp |
| 7 | ; |
| 8 | ; This program is free software; you can redistribute it and/or |
| 9 | ; modify it under the terms of the Simplified BSD License (also |
| 10 | ; known as the "2-Clause License" or "FreeBSD License".) |
| 11 | ; |
| 12 | ; This program is distributed in the hope that it will be useful, |
| 13 | ; but without any warranty; without even the implied warranty of |
| 14 | ; merchantability or fitness for a particular purpose. |
| 15 | ; |
| 16 | ; Author contact information: |
| 17 | ; [email protected] |
| 18 | ; http://www.hwaci.com/drh/ |
| 19 | ; |
| 20 | |
| 21 | [Setup] |
| 22 | ArchitecturesAllowed=x86 x64 |
| 23 | AlwaysShowComponentsList=false |
| 24 | AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved. |
| 25 | AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c} |
| 26 | AppName=Fossil |
| 27 | AppPublisher=Fossil Development Team |
| 28 | AppPublisherURL=https://fossil-scm.org/ |
| 29 | AppSupportURL=https://fossil-scm.org/ |
| 30 | AppUpdatesURL=https://fossil-scm.org/ |
| 31 | AppVerName=Fossil v{#AppVersion} |
| 32 | AppVersion={#AppVersion} |
| 33 | AppComments=Simple, high-reliability, distributed software configuration management system. |
| 34 | AppReadmeFile=https://fossil-scm.org/home/doc/tip/www/quickstart.wiki |
| 35 | DefaultDirName={pf}\Fossil |
| 36 | DefaultGroupName=Fossil |
| 37 | OutputBaseFilename=fossil-win32-{#AppVersion} |
| 38 | OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt |
| 39 | SetupLogging=true |
| 40 | UninstallFilesDir={app}\uninstall |
| 41 | VersionInfoVersion={#AppVersion} |
| 42 | |
| 43 | |
| 44 | [Components] |
| 45 | Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed |
| 46 | |
| 47 | |
| 48 | [Dirs] |
| 49 | Name: {app}\bin |
| 50 | |
| 51 | |
| 52 | [Files] |
| 53 | Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete |
| 54 | |
| 55 | |
| 56 | [Registry] |
| 57 | Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue |
| 58 | |
| 59 | ELETED skins/aht/details.txt |
D
skins/aht/details.txt
-3
| --- a/skins/aht/details.txt | ||
| +++ b/skins/aht/details.txt | ||
| @@ -1,3 +0,0 @@ | ||
| 1 | -timeline-arrowheads: 1 | |
| 2 | -timeline-circle-nodes: 0 | |
| 3 | -timeline-color-graph-lines: 0 |
| --- a/skins/aht/details.txt | |
| +++ b/skins/aht/details.txt | |
| @@ -1,3 +0,0 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 0 |
| --- a/skins/aht/details.txt | |
| +++ b/skins/aht/details.txt | |
| @@ -1,3 +0,0 @@ | |
+21
-3
| --- skins/ardoise/css.txt | ||
| +++ skins/ardoise/css.txt | ||
| @@ -657,13 +657,15 @@ | ||
| 657 | 657 | .content { |
| 658 | 658 | padding-top: 8px; |
| 659 | 659 | padding-left: 8px; |
| 660 | 660 | padding-right: 8px |
| 661 | 661 | } |
| 662 | +#hbdrop a, | |
| 662 | 663 | .content a { |
| 663 | 664 | color: #8cf |
| 664 | 665 | } |
| 666 | +#hbdrop a:hover, | |
| 665 | 667 | .content a:hover, |
| 666 | 668 | .submenu a:hover, |
| 667 | 669 | .submenu label:hover { |
| 668 | 670 | color: #fff |
| 669 | 671 | } |
| @@ -693,20 +695,19 @@ | ||
| 693 | 695 | .mainmenu { |
| 694 | 696 | background-color: #161819; |
| 695 | 697 | border-top-right-radius: 15px; |
| 696 | 698 | border-top-left-radius: 15px; |
| 697 | 699 | clear: both |
| 700 | + z-index: 21; | |
| 698 | 701 | } |
| 699 | 702 | .mainmenu ul { |
| 700 | 703 | list-style: none; |
| 701 | - display: block; | |
| 702 | 704 | border-top: 1px solid transparent; |
| 703 | 705 | padding: 0 |
| 704 | 706 | } |
| 705 | 707 | .mainmenu li { |
| 706 | 708 | outline: 0; |
| 707 | - display: block; | |
| 708 | 709 | float: left; |
| 709 | 710 | margin: 0 |
| 710 | 711 | } |
| 711 | 712 | .mainmenu li.active { |
| 712 | 713 | background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=); |
| @@ -713,11 +714,10 @@ | ||
| 713 | 714 | background-repeat: no-repeat; |
| 714 | 715 | background-position: center bottom |
| 715 | 716 | } |
| 716 | 717 | .mainmenu li a { |
| 717 | 718 | color: #66a8c7; |
| 718 | - display: block; | |
| 719 | 719 | padding: 10px 15px |
| 720 | 720 | } |
| 721 | 721 | .mainmenu li.active a { |
| 722 | 722 | text-shadow: 0 0 1px #b1d2e2 |
| 723 | 723 | } |
| @@ -726,10 +726,18 @@ | ||
| 726 | 726 | border-radius: 5px |
| 727 | 727 | } |
| 728 | 728 | .mainmenu li:hover a { |
| 729 | 729 | color: #000 |
| 730 | 730 | } |
| 731 | +div#hbdrop { | |
| 732 | + background-color: #161819; | |
| 733 | + border-radius: 15px; | |
| 734 | + display: none; | |
| 735 | + width: 100%; | |
| 736 | + position: absolute; | |
| 737 | + z-index: 20; | |
| 738 | +} | |
| 731 | 739 | .submenu { |
| 732 | 740 | padding: 4px 0; |
| 733 | 741 | background-color: #000; |
| 734 | 742 | border-bottom-right-radius: 15px; |
| 735 | 743 | border-bottom-left-radius: 15px; |
| @@ -1393,5 +1401,15 @@ | ||
| 1393 | 1401 | } |
| 1394 | 1402 | .debug { |
| 1395 | 1403 | background-color: #330; |
| 1396 | 1404 | border: 2px solid #aa0; |
| 1397 | 1405 | } |
| 1406 | + | |
| 1407 | +.capsumOff { | |
| 1408 | + background-color: #222; | |
| 1409 | +} | |
| 1410 | +.capsumRead { | |
| 1411 | + background-color: #262; | |
| 1412 | +} | |
| 1413 | +.capsumWrite { | |
| 1414 | + background-color: #662; | |
| 1415 | +} | |
| 1398 | 1416 |
| --- skins/ardoise/css.txt | |
| +++ skins/ardoise/css.txt | |
| @@ -657,13 +657,15 @@ | |
| 657 | .content { |
| 658 | padding-top: 8px; |
| 659 | padding-left: 8px; |
| 660 | padding-right: 8px |
| 661 | } |
| 662 | .content a { |
| 663 | color: #8cf |
| 664 | } |
| 665 | .content a:hover, |
| 666 | .submenu a:hover, |
| 667 | .submenu label:hover { |
| 668 | color: #fff |
| 669 | } |
| @@ -693,20 +695,19 @@ | |
| 693 | .mainmenu { |
| 694 | background-color: #161819; |
| 695 | border-top-right-radius: 15px; |
| 696 | border-top-left-radius: 15px; |
| 697 | clear: both |
| 698 | } |
| 699 | .mainmenu ul { |
| 700 | list-style: none; |
| 701 | display: block; |
| 702 | border-top: 1px solid transparent; |
| 703 | padding: 0 |
| 704 | } |
| 705 | .mainmenu li { |
| 706 | outline: 0; |
| 707 | display: block; |
| 708 | float: left; |
| 709 | margin: 0 |
| 710 | } |
| 711 | .mainmenu li.active { |
| 712 | background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=); |
| @@ -713,11 +714,10 @@ | |
| 713 | background-repeat: no-repeat; |
| 714 | background-position: center bottom |
| 715 | } |
| 716 | .mainmenu li a { |
| 717 | color: #66a8c7; |
| 718 | display: block; |
| 719 | padding: 10px 15px |
| 720 | } |
| 721 | .mainmenu li.active a { |
| 722 | text-shadow: 0 0 1px #b1d2e2 |
| 723 | } |
| @@ -726,10 +726,18 @@ | |
| 726 | border-radius: 5px |
| 727 | } |
| 728 | .mainmenu li:hover a { |
| 729 | color: #000 |
| 730 | } |
| 731 | .submenu { |
| 732 | padding: 4px 0; |
| 733 | background-color: #000; |
| 734 | border-bottom-right-radius: 15px; |
| 735 | border-bottom-left-radius: 15px; |
| @@ -1393,5 +1401,15 @@ | |
| 1393 | } |
| 1394 | .debug { |
| 1395 | background-color: #330; |
| 1396 | border: 2px solid #aa0; |
| 1397 | } |
| 1398 |
| --- skins/ardoise/css.txt | |
| +++ skins/ardoise/css.txt | |
| @@ -657,13 +657,15 @@ | |
| 657 | .content { |
| 658 | padding-top: 8px; |
| 659 | padding-left: 8px; |
| 660 | padding-right: 8px |
| 661 | } |
| 662 | #hbdrop a, |
| 663 | .content a { |
| 664 | color: #8cf |
| 665 | } |
| 666 | #hbdrop a:hover, |
| 667 | .content a:hover, |
| 668 | .submenu a:hover, |
| 669 | .submenu label:hover { |
| 670 | color: #fff |
| 671 | } |
| @@ -693,20 +695,19 @@ | |
| 695 | .mainmenu { |
| 696 | background-color: #161819; |
| 697 | border-top-right-radius: 15px; |
| 698 | border-top-left-radius: 15px; |
| 699 | clear: both |
| 700 | z-index: 21; |
| 701 | } |
| 702 | .mainmenu ul { |
| 703 | list-style: none; |
| 704 | border-top: 1px solid transparent; |
| 705 | padding: 0 |
| 706 | } |
| 707 | .mainmenu li { |
| 708 | outline: 0; |
| 709 | float: left; |
| 710 | margin: 0 |
| 711 | } |
| 712 | .mainmenu li.active { |
| 713 | background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=); |
| @@ -713,11 +714,10 @@ | |
| 714 | background-repeat: no-repeat; |
| 715 | background-position: center bottom |
| 716 | } |
| 717 | .mainmenu li a { |
| 718 | color: #66a8c7; |
| 719 | padding: 10px 15px |
| 720 | } |
| 721 | .mainmenu li.active a { |
| 722 | text-shadow: 0 0 1px #b1d2e2 |
| 723 | } |
| @@ -726,10 +726,18 @@ | |
| 726 | border-radius: 5px |
| 727 | } |
| 728 | .mainmenu li:hover a { |
| 729 | color: #000 |
| 730 | } |
| 731 | div#hbdrop { |
| 732 | background-color: #161819; |
| 733 | border-radius: 15px; |
| 734 | display: none; |
| 735 | width: 100%; |
| 736 | position: absolute; |
| 737 | z-index: 20; |
| 738 | } |
| 739 | .submenu { |
| 740 | padding: 4px 0; |
| 741 | background-color: #000; |
| 742 | border-bottom-right-radius: 15px; |
| 743 | border-bottom-left-radius: 15px; |
| @@ -1393,5 +1401,15 @@ | |
| 1401 | } |
| 1402 | .debug { |
| 1403 | background-color: #330; |
| 1404 | border: 2px solid #aa0; |
| 1405 | } |
| 1406 | |
| 1407 | .capsumOff { |
| 1408 | background-color: #222; |
| 1409 | } |
| 1410 | .capsumRead { |
| 1411 | background-color: #262; |
| 1412 | } |
| 1413 | .capsumWrite { |
| 1414 | background-color: #662; |
| 1415 | } |
| 1416 |
| --- skins/ardoise/details.txt | ||
| +++ skins/ardoise/details.txt | ||
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | timeline-arrowheads: 0 |
| 2 | 2 | timeline-circle-nodes: 1 |
| 3 | 3 | timeline-color-graph-lines: 1 |
| 4 | 4 | white-foreground: 1 |
| 5 | +pikchr-background: 0x1d2021 | |
| 5 | 6 |
| --- skins/ardoise/details.txt | |
| +++ skins/ardoise/details.txt | |
| @@ -1,4 +1,5 @@ | |
| 1 | timeline-arrowheads: 0 |
| 2 | timeline-circle-nodes: 1 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | white-foreground: 1 |
| 5 |
| --- skins/ardoise/details.txt | |
| +++ skins/ardoise/details.txt | |
| @@ -1,4 +1,5 @@ | |
| 1 | timeline-arrowheads: 0 |
| 2 | timeline-circle-nodes: 1 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | white-foreground: 1 |
| 5 | pikchr-background: 0x1d2021 |
| 6 |
+1
-1
| --- skins/ardoise/footer.txt | ||
| +++ skins/ardoise/footer.txt | ||
| @@ -6,10 +6,10 @@ | ||
| 6 | 6 | </div> <!-- end div container --> |
| 7 | 7 | </div> <!-- end div middle max-full-width --> |
| 8 | 8 | <div class="footer"> |
| 9 | 9 | <div class="container"> |
| 10 | 10 | <div class="pull-right"> |
| 11 | - <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> | |
| 11 | + <a href="https://fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> | |
| 12 | 12 | </div> |
| 13 | 13 | This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s |
| 14 | 14 | </div> |
| 15 | 15 | </div> |
| 16 | 16 |
| --- skins/ardoise/footer.txt | |
| +++ skins/ardoise/footer.txt | |
| @@ -6,10 +6,10 @@ | |
| 6 | </div> <!-- end div container --> |
| 7 | </div> <!-- end div middle max-full-width --> |
| 8 | <div class="footer"> |
| 9 | <div class="container"> |
| 10 | <div class="pull-right"> |
| 11 | <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> |
| 12 | </div> |
| 13 | This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s |
| 14 | </div> |
| 15 | </div> |
| 16 |
| --- skins/ardoise/footer.txt | |
| +++ skins/ardoise/footer.txt | |
| @@ -6,10 +6,10 @@ | |
| 6 | </div> <!-- end div container --> |
| 7 | </div> <!-- end div middle max-full-width --> |
| 8 | <div class="footer"> |
| 9 | <div class="container"> |
| 10 | <div class="pull-right"> |
| 11 | <a href="https://fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> |
| 12 | </div> |
| 13 | This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s |
| 14 | </div> |
| 15 | </div> |
| 16 |
+16
-41
| --- skins/ardoise/header.txt | ||
| +++ skins/ardoise/header.txt | ||
| @@ -21,51 +21,26 @@ | ||
| 21 | 21 | |
| 22 | 22 | <!-- Main Menu --> |
| 23 | 23 | <div class="mainmenu"> |
| 24 | 24 | <ul> |
| 25 | 25 | <th1> |
| 26 | -proc menulink {url name} { | |
| 27 | - upvar current_page current | |
| 28 | - upvar home home | |
| 29 | - if {[string range $url 0 [string length $current]] eq "/$current"} { | |
| 30 | - html "<li class='active'>" | |
| 31 | - } else { | |
| 32 | - html "<li>" | |
| 33 | - } | |
| 34 | - html "<a href='$home$url'>$name</a></li>\n" | |
| 35 | -} | |
| 36 | -menulink $index_page Home | |
| 37 | -if {[anycap jor]} { | |
| 38 | - menulink /timeline Timeline | |
| 39 | -} | |
| 40 | -if {[hascap oh]} { | |
| 41 | - menulink /dir?ci=tip Files | |
| 42 | -} | |
| 43 | -if {[hascap o]} { | |
| 44 | - menulink /brlist Branches | |
| 45 | - menulink /taglist Tags | |
| 46 | -} | |
| 47 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 48 | - menulink /forum Forum | |
| 49 | -} | |
| 50 | -if {[hascap r]} { | |
| 51 | - menulink /ticket Tickets | |
| 52 | -} | |
| 53 | -if {[hascap j]} { | |
| 54 | - menulink /wiki Wiki | |
| 55 | -} | |
| 56 | -if {[hascap o]} { | |
| 57 | - menulink /help Help | |
| 58 | - } | |
| 59 | -if {[hascap s]} { | |
| 60 | - menulink /setup Admin | |
| 61 | -} elseif {[hascap a]} { | |
| 62 | - menulink /setup_ulist Users | |
| 63 | -} | |
| 64 | - </th1> | |
| 65 | - </ul> | |
| 66 | - </div> <!-- end div mainmenu --> | |
| 26 | +html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a></li>\n" | |
| 27 | +builtin_request_js hbmenu.js | |
| 28 | +set once 1 | |
| 29 | +foreach {name url expr class} $mainmenu { | |
| 30 | + if {![capexpr $expr]} continue | |
| 31 | + if {$once && [string match /$current_page* $url]} { | |
| 32 | + lappend class active | |
| 33 | + set once 0 | |
| 34 | + } | |
| 35 | + html "<li class='$class'>" | |
| 36 | + if {[string match /* $url]} {set url $home$url} | |
| 37 | + html "<a href='$url'>$name</a></li>\n" | |
| 38 | +} | |
| 39 | +</th1></ul> | |
| 40 | + </div> <!-- end div mainmenu --> | |
| 41 | + <div id="hbdrop"></div> | |
| 67 | 42 | </div> <!-- end div container --> |
| 68 | 43 | </div> <!-- end div header --> |
| 69 | 44 | <div class="middle max-full-width"> |
| 70 | 45 | <div class="container"> |
| 71 | 46 | <th1> |
| 72 | 47 |
| --- skins/ardoise/header.txt | |
| +++ skins/ardoise/header.txt | |
| @@ -21,51 +21,26 @@ | |
| 21 | |
| 22 | <!-- Main Menu --> |
| 23 | <div class="mainmenu"> |
| 24 | <ul> |
| 25 | <th1> |
| 26 | proc menulink {url name} { |
| 27 | upvar current_page current |
| 28 | upvar home home |
| 29 | if {[string range $url 0 [string length $current]] eq "/$current"} { |
| 30 | html "<li class='active'>" |
| 31 | } else { |
| 32 | html "<li>" |
| 33 | } |
| 34 | html "<a href='$home$url'>$name</a></li>\n" |
| 35 | } |
| 36 | menulink $index_page Home |
| 37 | if {[anycap jor]} { |
| 38 | menulink /timeline Timeline |
| 39 | } |
| 40 | if {[hascap oh]} { |
| 41 | menulink /dir?ci=tip Files |
| 42 | } |
| 43 | if {[hascap o]} { |
| 44 | menulink /brlist Branches |
| 45 | menulink /taglist Tags |
| 46 | } |
| 47 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 48 | menulink /forum Forum |
| 49 | } |
| 50 | if {[hascap r]} { |
| 51 | menulink /ticket Tickets |
| 52 | } |
| 53 | if {[hascap j]} { |
| 54 | menulink /wiki Wiki |
| 55 | } |
| 56 | if {[hascap o]} { |
| 57 | menulink /help Help |
| 58 | } |
| 59 | if {[hascap s]} { |
| 60 | menulink /setup Admin |
| 61 | } elseif {[hascap a]} { |
| 62 | menulink /setup_ulist Users |
| 63 | } |
| 64 | </th1> |
| 65 | </ul> |
| 66 | </div> <!-- end div mainmenu --> |
| 67 | </div> <!-- end div container --> |
| 68 | </div> <!-- end div header --> |
| 69 | <div class="middle max-full-width"> |
| 70 | <div class="container"> |
| 71 | <th1> |
| 72 |
| --- skins/ardoise/header.txt | |
| +++ skins/ardoise/header.txt | |
| @@ -21,51 +21,26 @@ | |
| 21 | |
| 22 | <!-- Main Menu --> |
| 23 | <div class="mainmenu"> |
| 24 | <ul> |
| 25 | <th1> |
| 26 | html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a></li>\n" |
| 27 | builtin_request_js hbmenu.js |
| 28 | set once 1 |
| 29 | foreach {name url expr class} $mainmenu { |
| 30 | if {![capexpr $expr]} continue |
| 31 | if {$once && [string match /$current_page* $url]} { |
| 32 | lappend class active |
| 33 | set once 0 |
| 34 | } |
| 35 | html "<li class='$class'>" |
| 36 | if {[string match /* $url]} {set url $home$url} |
| 37 | html "<a href='$url'>$name</a></li>\n" |
| 38 | } |
| 39 | </th1></ul> |
| 40 | </div> <!-- end div mainmenu --> |
| 41 | <div id="hbdrop"></div> |
| 42 | </div> <!-- end div container --> |
| 43 | </div> <!-- end div header --> |
| 44 | <div class="middle max-full-width"> |
| 45 | <div class="container"> |
| 46 | <th1> |
| 47 |
+2
-2
| --- skins/black_and_white/css.txt | ||
| +++ skins/black_and_white/css.txt | ||
| @@ -65,17 +65,17 @@ | ||
| 65 | 65 | /* The main menu bar that appears at the top left of the page beneath |
| 66 | 66 | ** the header. Width must be co-ordinated with the container below */ |
| 67 | 67 | div.mainmenu { |
| 68 | 68 | float: left; |
| 69 | 69 | margin-left: 10px; |
| 70 | - margin-right: 10px; | |
| 70 | + margin-right: 20px; | |
| 71 | 71 | font-size: 0.9em; |
| 72 | 72 | font-weight: bold; |
| 73 | 73 | padding:5px; |
| 74 | 74 | background-color:#eee; |
| 75 | 75 | border:1px solid #999; |
| 76 | - width:8em; | |
| 76 | + width:6em; | |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /* Main menu is now a list */ |
| 80 | 80 | div.mainmenu ul { |
| 81 | 81 | padding: 0; |
| 82 | 82 |
| --- skins/black_and_white/css.txt | |
| +++ skins/black_and_white/css.txt | |
| @@ -65,17 +65,17 @@ | |
| 65 | /* The main menu bar that appears at the top left of the page beneath |
| 66 | ** the header. Width must be co-ordinated with the container below */ |
| 67 | div.mainmenu { |
| 68 | float: left; |
| 69 | margin-left: 10px; |
| 70 | margin-right: 10px; |
| 71 | font-size: 0.9em; |
| 72 | font-weight: bold; |
| 73 | padding:5px; |
| 74 | background-color:#eee; |
| 75 | border:1px solid #999; |
| 76 | width:8em; |
| 77 | } |
| 78 | |
| 79 | /* Main menu is now a list */ |
| 80 | div.mainmenu ul { |
| 81 | padding: 0; |
| 82 |
| --- skins/black_and_white/css.txt | |
| +++ skins/black_and_white/css.txt | |
| @@ -65,17 +65,17 @@ | |
| 65 | /* The main menu bar that appears at the top left of the page beneath |
| 66 | ** the header. Width must be co-ordinated with the container below */ |
| 67 | div.mainmenu { |
| 68 | float: left; |
| 69 | margin-left: 10px; |
| 70 | margin-right: 20px; |
| 71 | font-size: 0.9em; |
| 72 | font-weight: bold; |
| 73 | padding:5px; |
| 74 | background-color:#eee; |
| 75 | border:1px solid #999; |
| 76 | width:6em; |
| 77 | } |
| 78 | |
| 79 | /* Main menu is now a list */ |
| 80 | div.mainmenu ul { |
| 81 | padding: 0; |
| 82 |
+11
-31
| --- skins/black_and_white/header.txt | ||
| +++ skins/black_and_white/header.txt | ||
| @@ -12,36 +12,16 @@ | ||
| 12 | 12 | } |
| 13 | 13 | </th1></div> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="mainmenu"> |
| 16 | 16 | <th1> |
| 17 | -html "<a href='$home$index_page'>Home</a>\n" | |
| 18 | -if {[anycap jor]} { | |
| 19 | - html "<a href='$home/timeline'>Timeline</a>\n" | |
| 20 | -} | |
| 21 | -if {[anoncap oh]} { | |
| 22 | - html "<a href='$home/tree?ci=tip'>Files</a>\n" | |
| 23 | -} | |
| 24 | -if {[anoncap o]} { | |
| 25 | - html "<a href='$home/brlist'>Branches</a>\n" | |
| 26 | - html "<a href='$home/taglist'>Tags</a>\n" | |
| 27 | -} | |
| 28 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 29 | - html "<a href='$home/forum'>Forum</a>\n" | |
| 30 | -} | |
| 31 | -if {[anoncap r]} { | |
| 32 | - html "<a href='$home/ticket'>Tickets</a>\n" | |
| 33 | -} | |
| 34 | -if {[anoncap j]} { | |
| 35 | - html "<a href='$home/wiki'>Wiki</a>\n" | |
| 36 | -} | |
| 37 | -if {[hascap s]} { | |
| 38 | - html "<a href='$home/setup'>Admin</a>\n" | |
| 39 | -} elseif {[hascap a]} { | |
| 40 | - html "<a href='$home/setup_ulist'>Users</a>\n" | |
| 41 | -} | |
| 42 | -if {[info exists login]} { | |
| 43 | - html "<a href='$home/login'>Logout</a>\n" | |
| 44 | -} else { | |
| 45 | - html "<a href='$home/login'>Login</a>\n" | |
| 46 | -} | |
| 47 | -</th1></ul></div> | |
| 17 | +set sitemap 0 | |
| 18 | +foreach {name url expr class} $mainmenu { | |
| 19 | + if {![capexpr $expr]} continue | |
| 20 | + if {[string match /* $url]} {set url $home$url} | |
| 21 | + html "<a href='$url'>$name</a><br/>\n" | |
| 22 | + if {[string match /sitemap $url]} {set sitemap 1} | |
| 23 | +} | |
| 24 | +if {!$sitemap} { | |
| 25 | + html "<a href='$home/sitemap'>Sitemap</a>\n" | |
| 26 | +} | |
| 27 | +</th1></div> | |
| 48 | 28 |
| --- skins/black_and_white/header.txt | |
| +++ skins/black_and_white/header.txt | |
| @@ -12,36 +12,16 @@ | |
| 12 | } |
| 13 | </th1></div> |
| 14 | </div> |
| 15 | <div class="mainmenu"> |
| 16 | <th1> |
| 17 | html "<a href='$home$index_page'>Home</a>\n" |
| 18 | if {[anycap jor]} { |
| 19 | html "<a href='$home/timeline'>Timeline</a>\n" |
| 20 | } |
| 21 | if {[anoncap oh]} { |
| 22 | html "<a href='$home/tree?ci=tip'>Files</a>\n" |
| 23 | } |
| 24 | if {[anoncap o]} { |
| 25 | html "<a href='$home/brlist'>Branches</a>\n" |
| 26 | html "<a href='$home/taglist'>Tags</a>\n" |
| 27 | } |
| 28 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 29 | html "<a href='$home/forum'>Forum</a>\n" |
| 30 | } |
| 31 | if {[anoncap r]} { |
| 32 | html "<a href='$home/ticket'>Tickets</a>\n" |
| 33 | } |
| 34 | if {[anoncap j]} { |
| 35 | html "<a href='$home/wiki'>Wiki</a>\n" |
| 36 | } |
| 37 | if {[hascap s]} { |
| 38 | html "<a href='$home/setup'>Admin</a>\n" |
| 39 | } elseif {[hascap a]} { |
| 40 | html "<a href='$home/setup_ulist'>Users</a>\n" |
| 41 | } |
| 42 | if {[info exists login]} { |
| 43 | html "<a href='$home/login'>Logout</a>\n" |
| 44 | } else { |
| 45 | html "<a href='$home/login'>Login</a>\n" |
| 46 | } |
| 47 | </th1></ul></div> |
| 48 |
| --- skins/black_and_white/header.txt | |
| +++ skins/black_and_white/header.txt | |
| @@ -12,36 +12,16 @@ | |
| 12 | } |
| 13 | </th1></div> |
| 14 | </div> |
| 15 | <div class="mainmenu"> |
| 16 | <th1> |
| 17 | set sitemap 0 |
| 18 | foreach {name url expr class} $mainmenu { |
| 19 | if {![capexpr $expr]} continue |
| 20 | if {[string match /* $url]} {set url $home$url} |
| 21 | html "<a href='$url'>$name</a><br/>\n" |
| 22 | if {[string match /sitemap $url]} {set sitemap 1} |
| 23 | } |
| 24 | if {!$sitemap} { |
| 25 | html "<a href='$home/sitemap'>Sitemap</a>\n" |
| 26 | } |
| 27 | </th1></div> |
| 28 |
+14
-5
| --- skins/blitz/css.txt | ||
| +++ skins/blitz/css.txt | ||
| @@ -848,19 +848,17 @@ | ||
| 848 | 848 | clear:both; |
| 849 | 849 | } |
| 850 | 850 | |
| 851 | 851 | .mainmenu ul { |
| 852 | 852 | list-style: none outside; |
| 853 | - display: block; | |
| 854 | 853 | position: relative; |
| 855 | 854 | border-top: 1px solid #ccc; |
| 856 | 855 | padding: 0; |
| 857 | 856 | } |
| 858 | 857 | |
| 859 | 858 | .mainmenu li { |
| 860 | 859 | outline: 0; |
| 861 | - display: block; | |
| 862 | 860 | float: left; |
| 863 | 861 | margin: 0; |
| 864 | 862 | } |
| 865 | 863 | |
| 866 | 864 | .mainmenu li.active { |
| @@ -867,23 +865,34 @@ | ||
| 867 | 865 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC); |
| 868 | 866 | background-repeat: no-repeat; |
| 869 | 867 | background-position: center bottom; |
| 870 | 868 | } |
| 871 | 869 | |
| 872 | -.mainmenu li a { | |
| 870 | +.mainmenu li a, | |
| 871 | +div#hbdrop a { | |
| 873 | 872 | color: #3b5c6b; |
| 874 | - display: block; | |
| 875 | 873 | padding: 10px 15px; |
| 876 | 874 | } |
| 877 | 875 | |
| 878 | 876 | .mainmenu li.active a { |
| 879 | 877 | font-weight: bold; |
| 880 | 878 | } |
| 881 | 879 | |
| 882 | -.mainmenu li:hover { | |
| 880 | +.mainmenu li:hover | |
| 881 | +div#hbdrop a:hover { | |
| 883 | 882 | background-color: #eee; |
| 884 | 883 | } |
| 884 | + | |
| 885 | +div#hbdrop { | |
| 886 | + background-color: white; | |
| 887 | + border: 2px solid #ccc; | |
| 888 | + display: none; | |
| 889 | + width: 100%; | |
| 890 | + position: absolute; | |
| 891 | + z-index: 20; | |
| 892 | +} | |
| 893 | + | |
| 885 | 894 | |
| 886 | 895 | |
| 887 | 896 | /* Submenu |
| 888 | 897 | * Displayed in the middle div. Contains page-specific form controls. |
| 889 | 898 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 890 | 899 |
| --- skins/blitz/css.txt | |
| +++ skins/blitz/css.txt | |
| @@ -848,19 +848,17 @@ | |
| 848 | clear:both; |
| 849 | } |
| 850 | |
| 851 | .mainmenu ul { |
| 852 | list-style: none outside; |
| 853 | display: block; |
| 854 | position: relative; |
| 855 | border-top: 1px solid #ccc; |
| 856 | padding: 0; |
| 857 | } |
| 858 | |
| 859 | .mainmenu li { |
| 860 | outline: 0; |
| 861 | display: block; |
| 862 | float: left; |
| 863 | margin: 0; |
| 864 | } |
| 865 | |
| 866 | .mainmenu li.active { |
| @@ -867,23 +865,34 @@ | |
| 867 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC); |
| 868 | background-repeat: no-repeat; |
| 869 | background-position: center bottom; |
| 870 | } |
| 871 | |
| 872 | .mainmenu li a { |
| 873 | color: #3b5c6b; |
| 874 | display: block; |
| 875 | padding: 10px 15px; |
| 876 | } |
| 877 | |
| 878 | .mainmenu li.active a { |
| 879 | font-weight: bold; |
| 880 | } |
| 881 | |
| 882 | .mainmenu li:hover { |
| 883 | background-color: #eee; |
| 884 | } |
| 885 | |
| 886 | |
| 887 | /* Submenu |
| 888 | * Displayed in the middle div. Contains page-specific form controls. |
| 889 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 890 |
| --- skins/blitz/css.txt | |
| +++ skins/blitz/css.txt | |
| @@ -848,19 +848,17 @@ | |
| 848 | clear:both; |
| 849 | } |
| 850 | |
| 851 | .mainmenu ul { |
| 852 | list-style: none outside; |
| 853 | position: relative; |
| 854 | border-top: 1px solid #ccc; |
| 855 | padding: 0; |
| 856 | } |
| 857 | |
| 858 | .mainmenu li { |
| 859 | outline: 0; |
| 860 | float: left; |
| 861 | margin: 0; |
| 862 | } |
| 863 | |
| 864 | .mainmenu li.active { |
| @@ -867,23 +865,34 @@ | |
| 865 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC); |
| 866 | background-repeat: no-repeat; |
| 867 | background-position: center bottom; |
| 868 | } |
| 869 | |
| 870 | .mainmenu li a, |
| 871 | div#hbdrop a { |
| 872 | color: #3b5c6b; |
| 873 | padding: 10px 15px; |
| 874 | } |
| 875 | |
| 876 | .mainmenu li.active a { |
| 877 | font-weight: bold; |
| 878 | } |
| 879 | |
| 880 | .mainmenu li:hover |
| 881 | div#hbdrop a:hover { |
| 882 | background-color: #eee; |
| 883 | } |
| 884 | |
| 885 | div#hbdrop { |
| 886 | background-color: white; |
| 887 | border: 2px solid #ccc; |
| 888 | display: none; |
| 889 | width: 100%; |
| 890 | position: absolute; |
| 891 | z-index: 20; |
| 892 | } |
| 893 | |
| 894 | |
| 895 | |
| 896 | /* Submenu |
| 897 | * Displayed in the middle div. Contains page-specific form controls. |
| 898 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 899 |
+19
-47
| --- skins/blitz/header.txt | ||
| +++ skins/blitz/header.txt | ||
| @@ -8,67 +8,39 @@ | ||
| 8 | 8 | html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n" |
| 9 | 9 | } else { |
| 10 | 10 | html "<a class='button' href='$home/login'>Login</a>\n" |
| 11 | 11 | } |
| 12 | 12 | </th1> |
| 13 | - <div> | |
| 14 | - <h2><small>$title</small></h2> | |
| 15 | - </div> | |
| 16 | 13 | </div> |
| 17 | 14 | <div class='logo'> |
| 18 | - <img src='$logo_image_url' /> | |
| 15 | + <h1>$<project_name> | |
| 19 | 16 | <th1> |
| 20 | 17 | if {[anycap jor]} { |
| 21 | 18 | html "<a class='rss' href='$home/timeline.rss'></a>" |
| 22 | 19 | } |
| 23 | 20 | </th1> |
| 21 | + <small> $<title></small></h1> | |
| 24 | 22 | </div> |
| 25 | 23 | |
| 26 | 24 | <!-- Main Menu --> |
| 27 | 25 | <div class="mainmenu"> |
| 28 | - <ul> | |
| 29 | - <th1> | |
| 30 | -proc menulink {url name} { | |
| 31 | - upvar current_page current | |
| 32 | - upvar home home | |
| 33 | - if {[string range $url 0 [string length $current]] eq "/$current"} { | |
| 34 | - html "<li class='active'>" | |
| 35 | - } else { | |
| 36 | - html "<li>" | |
| 37 | - } | |
| 38 | - html "<a href='$home$url'>$name</a></li>\n" | |
| 39 | -} | |
| 40 | -menulink $index_page Home | |
| 41 | -if {[anycap jor]} { | |
| 42 | - menulink /timeline Timeline | |
| 43 | -} | |
| 44 | -if {[hascap oh]} { | |
| 45 | - menulink /dir?ci=tip Files | |
| 46 | -} | |
| 47 | -if {[hascap o]} { | |
| 48 | - menulink /brlist Branches | |
| 49 | - menulink /taglist Tags | |
| 50 | -} | |
| 51 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 52 | - menulink /forum Forum | |
| 53 | -} | |
| 54 | -if {[hascap r]} { | |
| 55 | - menulink /ticket Tickets | |
| 56 | -} | |
| 57 | -if {[hascap j]} { | |
| 58 | - menulink /wiki Wiki | |
| 59 | -} | |
| 60 | -if {[hascap o]} { | |
| 61 | - menulink /help Help | |
| 62 | -} | |
| 63 | -if {[hascap s]} { | |
| 64 | - menulink /setup Admin | |
| 65 | -} elseif {[hascap a]} { | |
| 66 | - menulink /setup_ulist Users | |
| 67 | -} | |
| 68 | - </th1> | |
| 69 | - </ul> | |
| 70 | - </div> <!-- end div mainmenu --> | |
| 26 | + <ul><th1> | |
| 27 | +html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a></li>\n" | |
| 28 | +builtin_request_js hbmenu.js | |
| 29 | +set once 1 | |
| 30 | +foreach {name url expr class} $mainmenu { | |
| 31 | + if {![capexpr $expr]} continue | |
| 32 | + if {$once && [string match /$current_page* $url]} { | |
| 33 | + lappend class active | |
| 34 | + set once 0 | |
| 35 | + } | |
| 36 | + html "<li class='$class'>" | |
| 37 | + if {[string match /* $url]} {set url $home$url} | |
| 38 | + html "<a href='$url'>$name</a></li>\n" | |
| 39 | +} | |
| 40 | +</th1></ul> | |
| 41 | + </div> <!-- end div mainmenu --> | |
| 42 | + <div id="hbdrop"></div> | |
| 71 | 43 | </div> <!-- end div container --> |
| 72 | 44 | </div> <!-- end div header --> |
| 73 | 45 | <div class="middle max-full-width"> |
| 74 | 46 | <div class="container"> |
| 75 | 47 | |
| 76 | 48 | DELETED skins/blitz_no_logo/README.md |
| 77 | 49 | DELETED skins/blitz_no_logo/css.txt |
| 78 | 50 | DELETED skins/blitz_no_logo/details.txt |
| 79 | 51 | DELETED skins/blitz_no_logo/footer.txt |
| 80 | 52 | DELETED skins/blitz_no_logo/header.txt |
| 81 | 53 | DELETED skins/blitz_no_logo/ticket.txt |
| --- skins/blitz/header.txt | |
| +++ skins/blitz/header.txt | |
| @@ -8,67 +8,39 @@ | |
| 8 | html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n" |
| 9 | } else { |
| 10 | html "<a class='button' href='$home/login'>Login</a>\n" |
| 11 | } |
| 12 | </th1> |
| 13 | <div> |
| 14 | <h2><small>$title</small></h2> |
| 15 | </div> |
| 16 | </div> |
| 17 | <div class='logo'> |
| 18 | <img src='$logo_image_url' /> |
| 19 | <th1> |
| 20 | if {[anycap jor]} { |
| 21 | html "<a class='rss' href='$home/timeline.rss'></a>" |
| 22 | } |
| 23 | </th1> |
| 24 | </div> |
| 25 | |
| 26 | <!-- Main Menu --> |
| 27 | <div class="mainmenu"> |
| 28 | <ul> |
| 29 | <th1> |
| 30 | proc menulink {url name} { |
| 31 | upvar current_page current |
| 32 | upvar home home |
| 33 | if {[string range $url 0 [string length $current]] eq "/$current"} { |
| 34 | html "<li class='active'>" |
| 35 | } else { |
| 36 | html "<li>" |
| 37 | } |
| 38 | html "<a href='$home$url'>$name</a></li>\n" |
| 39 | } |
| 40 | menulink $index_page Home |
| 41 | if {[anycap jor]} { |
| 42 | menulink /timeline Timeline |
| 43 | } |
| 44 | if {[hascap oh]} { |
| 45 | menulink /dir?ci=tip Files |
| 46 | } |
| 47 | if {[hascap o]} { |
| 48 | menulink /brlist Branches |
| 49 | menulink /taglist Tags |
| 50 | } |
| 51 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 52 | menulink /forum Forum |
| 53 | } |
| 54 | if {[hascap r]} { |
| 55 | menulink /ticket Tickets |
| 56 | } |
| 57 | if {[hascap j]} { |
| 58 | menulink /wiki Wiki |
| 59 | } |
| 60 | if {[hascap o]} { |
| 61 | menulink /help Help |
| 62 | } |
| 63 | if {[hascap s]} { |
| 64 | menulink /setup Admin |
| 65 | } elseif {[hascap a]} { |
| 66 | menulink /setup_ulist Users |
| 67 | } |
| 68 | </th1> |
| 69 | </ul> |
| 70 | </div> <!-- end div mainmenu --> |
| 71 | </div> <!-- end div container --> |
| 72 | </div> <!-- end div header --> |
| 73 | <div class="middle max-full-width"> |
| 74 | <div class="container"> |
| 75 | |
| 76 | ELETED skins/blitz_no_logo/README.md |
| 77 | ELETED skins/blitz_no_logo/css.txt |
| 78 | ELETED skins/blitz_no_logo/details.txt |
| 79 | ELETED skins/blitz_no_logo/footer.txt |
| 80 | ELETED skins/blitz_no_logo/header.txt |
| 81 | ELETED skins/blitz_no_logo/ticket.txt |
| --- skins/blitz/header.txt | |
| +++ skins/blitz/header.txt | |
| @@ -8,67 +8,39 @@ | |
| 8 | html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n" |
| 9 | } else { |
| 10 | html "<a class='button' href='$home/login'>Login</a>\n" |
| 11 | } |
| 12 | </th1> |
| 13 | </div> |
| 14 | <div class='logo'> |
| 15 | <h1>$<project_name> |
| 16 | <th1> |
| 17 | if {[anycap jor]} { |
| 18 | html "<a class='rss' href='$home/timeline.rss'></a>" |
| 19 | } |
| 20 | </th1> |
| 21 | <small> $<title></small></h1> |
| 22 | </div> |
| 23 | |
| 24 | <!-- Main Menu --> |
| 25 | <div class="mainmenu"> |
| 26 | <ul><th1> |
| 27 | html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a></li>\n" |
| 28 | builtin_request_js hbmenu.js |
| 29 | set once 1 |
| 30 | foreach {name url expr class} $mainmenu { |
| 31 | if {![capexpr $expr]} continue |
| 32 | if {$once && [string match /$current_page* $url]} { |
| 33 | lappend class active |
| 34 | set once 0 |
| 35 | } |
| 36 | html "<li class='$class'>" |
| 37 | if {[string match /* $url]} {set url $home$url} |
| 38 | html "<a href='$url'>$name</a></li>\n" |
| 39 | } |
| 40 | </th1></ul> |
| 41 | </div> <!-- end div mainmenu --> |
| 42 | <div id="hbdrop"></div> |
| 43 | </div> <!-- end div container --> |
| 44 | </div> <!-- end div header --> |
| 45 | <div class="middle max-full-width"> |
| 46 | <div class="container"> |
| 47 | |
| 48 | ELETED skins/blitz_no_logo/README.md |
| 49 | ELETED skins/blitz_no_logo/css.txt |
| 50 | ELETED skins/blitz_no_logo/details.txt |
| 51 | ELETED skins/blitz_no_logo/footer.txt |
| 52 | ELETED skins/blitz_no_logo/header.txt |
| 53 | ELETED skins/blitz_no_logo/ticket.txt |
D
skins/blitz_no_logo/README.md
-13
| --- a/skins/blitz_no_logo/README.md | ||
| +++ b/skins/blitz_no_logo/README.md | ||
| @@ -1,13 +0,0 @@ | ||
| 1 | -## Blitz Theme (no logo) | |
| 2 | - | |
| 3 | -Contributed by James Moger ([email protected]) | |
| 4 | - | |
| 5 | -This theme is inspired by my own project, [Gitblit](http://gitblit.com), and offered to the Fossil project. | |
| 6 | - | |
| 7 | -This theme embeds & uses an unmodified copy of [Normalize 3.0.2](https://necolas.github.io/normalize.css/) which is distributed under an [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md). | |
| 8 | - | |
| 9 | -This theme uses half of a heavily-modified version of [Skeleton](http://getskeleton.com) which is distributed under an [MIT license](https://github.com/dhg/Skeleton/blob/master/LICENSE.md). None of the responsive elements (media queries) are included at this time. | |
| 10 | - | |
| 11 | -The font used in the included Fossil logo image is [Trillium Web Light](http://www.google.com/fonts/specimen/Titillium+Web) @ 48px HTML color code #456a7a. | |
| 12 | - | |
| 13 | -The RSS feed icon is sourced from [Font-Awesome](https://fortawesome.github.io/Font-Awesome/icons) by Dave Gandy and is distributed under the [SIL OFL 1.1 ](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) license. |
| --- a/skins/blitz_no_logo/README.md | |
| +++ b/skins/blitz_no_logo/README.md | |
| @@ -1,13 +0,0 @@ | |
| 1 | ## Blitz Theme (no logo) |
| 2 | |
| 3 | Contributed by James Moger ([email protected]) |
| 4 | |
| 5 | This theme is inspired by my own project, [Gitblit](http://gitblit.com), and offered to the Fossil project. |
| 6 | |
| 7 | This theme embeds & uses an unmodified copy of [Normalize 3.0.2](https://necolas.github.io/normalize.css/) which is distributed under an [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md). |
| 8 | |
| 9 | This theme uses half of a heavily-modified version of [Skeleton](http://getskeleton.com) which is distributed under an [MIT license](https://github.com/dhg/Skeleton/blob/master/LICENSE.md). None of the responsive elements (media queries) are included at this time. |
| 10 | |
| 11 | The font used in the included Fossil logo image is [Trillium Web Light](http://www.google.com/fonts/specimen/Titillium+Web) @ 48px HTML color code #456a7a. |
| 12 | |
| 13 | The RSS feed icon is sourced from [Font-Awesome](https://fortawesome.github.io/Font-Awesome/icons) by Dave Gandy and is distributed under the [SIL OFL 1.1 ](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) license. |
| --- a/skins/blitz_no_logo/README.md | |
| +++ b/skins/blitz_no_logo/README.md | |
| @@ -1,13 +0,0 @@ | |
D
skins/blitz_no_logo/css.txt
-391
| --- a/skins/blitz_no_logo/css.txt | ||
| +++ b/skins/blitz_no_logo/css.txt | ||
| @@ -1,391 +0,0 @@ | ||
| 1 | -display: block; | |
| 2 | -ay: none; | |
| 3 | -} | |
| 4 | - | |
| 5 | -.filetree aborder-top: 1px solid #ccc; | |
| 6 | -OuNXUIAyATv6zz3bXPEo3display: block; | |
| 7 | -FaMMN4WFqbnEl8BzXtlBX++ATr2KW3eC9kbg/9d2l6/qmdxrq9bdRkBwMtrgd+lpkpxwyWSwAkvRKSfl0phf4l+6acGVeak6QQbCJYH/Gwci+zPi/+oMFEJpLdTDfQ8IpTTl8r/lkQuniX3oR98mjX65sJQZ0wYNu1NU0wZ8RjSUf0Qo22aCU1oAoCazTFe5bdZ1pVIqcv2B12XSm6awxCFNaichCr1I1auDOQFvKxzQHFD4mexGXNfds/PoYB+iMhxzwIC8vcJe7HKVIrBEoLRQkuVL+Ii70lDlMUOR/uHrJdNaAwXo82orksR8gfVUAGFkgy5JfhKdEKncelwhq8SinwMeidX+303VHuvOgCGSRRF2o6vb6FyKmQTGRNTraQt1qJ6EaAPA4V22MYH20wXx+aCyfKFvFAcymiYfCh/YhSQZACFHpBB/l6On2l0s/AgTBWdIHHbpIulzfWDbvAW4r3gPUIwWdisplay: block; | |
| 8 | -u li a { | |
| 9 | - color: #3b5c6b; | |
| 10 | - padding: 10px 15px; | |
| 11 | -} | |
| 12 | - | |
| 13 | -.mainmenu li.active a { | |
| 14 | - font-weight: bold; | |
| 15 | -} | |
| 16 | - | |
| 17 | -.mainmenu li:hover { | |
| 18 | - background-color: #eee; | |
| 19 | -} | |
| 20 | - | |
| 21 | - | |
| 22 | -/* Submenu | |
| 23 | - * Displayed in the middle div. Contains page-specific form controls. | |
| 24 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 25 | -.submenu { | |
| 26 | - padding: 10px 0px; | |
| 27 | - border-bottom: 1px solid #ddd; | |
| 28 | -} | |
| 29 | - | |
| 30 | -.submenu input, .submenu select { | |
| 31 | - margin: 0 0 0 5px; | |
| 32 | -} | |
| 33 | - | |
| 34 | -.submenu a, .submenu label { | |
| 35 | - display: inline; | |
| 36 | - font-weight: normal; | |
| 37 | - color: #3b5c6b; | |
| 38 | - padding: 5px 15px; | |
| 39 | - text-decoration: none; | |
| 40 | - border: 1px solid transparent; | |
| 41 | - border-radius: 5px; | |
| 42 | -} | |
| 43 | - | |
| 44 | -.submenu a:hover, .submenu label:hover { | |
| 45 | - border: 1px solid #ccc; | |
| 46 | -} | |
| 47 | - | |
| 48 | - | |
| 49 | -/* Section | |
| 50 | - * Cap/header to distinguish a section. Displayed within a content div. | |
| 51 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 52 | -.section { | |
| 53 | - font-weight: bold; | |
| 54 | - background-color: #f5f5f5; | |
| 55 | - border: 1px solid #ccc; | |
| 56 | - padding: 9px 10px 10px; | |
| 57 | - margin: 10px 0; | |
| 58 | -} | |
| 59 | - | |
| 60 | - | |
| 61 | -/* Section Menu | |
| 62 | - * Div of buttons/links, displayed with a section div within a content div. | |
| 63 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 64 | -.sectionmenu { | |
| 65 | - border: 1px solid #ccc; | |
| 66 | - border-top: 0; | |
| 67 | - margin-top: -10px; | |
| 68 | - margin-bottom: 10px; | |
| 69 | - padding: 5px; | |
| 70 | - text-align: center; | |
| 71 | -} | |
| 72 | -.sectionmenu a { | |
| 73 | - display: inline-block; | |
| 74 | - margin-top: 5px; | |
| 75 | - margin-right: 1em; | |
| 76 | -} | |
| 77 | - | |
| 78 | - | |
| 79 | -/* File browser | |
| 80 | - * Repository tree navigation. | |
| 81 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 82 | -ul.browser { | |
| 83 | - list-style: none; | |
| 84 | -} | |
| 85 | - | |
| 86 | -ul.browser li.dir { | |
| 87 | - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC); | |
| 88 | - background-repeat: no-repeat; | |
| 89 | - background-position: 0px center; | |
| 90 | - padding-left: 22px; | |
| 91 | - padding-top: 2px; | |
| 92 | -} | |
| 93 | - | |
| 94 | -ul.browser li.file { | |
| 95 | - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC); | |
| 96 | - background-repeat: no-repeat; | |
| 97 | - background-position: 0px center; | |
| 98 | - padding-left: 22px; | |
| 99 | - padding-top: 2px; | |
| 100 | -} | |
| 101 | - | |
| 102 | -div.filetreeline { | |
| 103 | - display: table; | |
| 104 | - width: 100%; | |
| 105 | - white-space: nowrap; | |
| 106 | -} | |
| 107 | - | |
| 108 | -/* tree-view top-level list */ | |
| 109 | -.filetree > ul { | |
| 110 | - display: inline-block; | |
| 111 | -} | |
| 112 | - | |
| 113 | -/* tree-view lists */ | |
| 114 | -.filetree ul { | |
| 115 | - margin: 0; | |
| 116 | - padding: 0; | |
| 117 | - list-style: none; | |
| 118 | -} | |
| 119 | -/* tree-view collapsed list */ | |
| 120 | -.filetree ul.collapsed { | |
| 121 | - display: none; | |
| 122 | -} | |
| 123 | -/* tree-view lists below the root */ | |
| 124 | -.filetree ul ul { | |
| 125 | - position: relative; | |
| 126 | - margin: 0 0 0 21px; | |
| 127 | -} | |
| 128 | -/* tree-view lists items */ | |
| 129 | -.filetree li { | |
| 130 | - position: relative; | |
| 131 | - margin: 0; | |
| 132 | - padding: 0; | |
| 133 | -} | |
| 134 | -/* tree-view node lines */ | |
| 135 | -.filetree li li:before { | |
| 136 | - content: ''; | |
| 137 | - position: absolute; | |
| 138 | - top: -.8em; | |
| 139 | - left: -14px; | |
| 140 | - width: 16px; | |
| 141 | - height: 1.5em; | |
| 142 | - border-left: 1px solid #ccc; | |
| 143 | - border-bottom: 1px solid #ccc; | |
| 144 | -} | |
| 145 | -/* tree-view directory lines */ | |
| 146 | -.filetree li > ul:before { | |
| 147 | - content: ''; | |
| 148 | - position: absolute; | |
| 149 | - top: -1.5em; | |
| 150 | - bottom: 0; | |
| 151 | - left: -35px; | |
| 152 | - border-left: 1px solid #ccc; | |
| 153 | -} | |
| 154 | -/* hide lines for last-child directories */ | |
| 155 | -.filetree li.last > ul:before { | |
| 156 | - display: none; | |
| 157 | -} | |
| 158 | - | |
| 159 | -.filetree a { | |
| 160 | - position: relative; | |
| 161 | - z-index: 1; | |
| 162 | - display: table-cell; | |
| 163 | - min-height: 16px; | |
| 164 | - padding-left: 22px; | |
| 165 | - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC); | |
| 166 | - background-position: center left; | |
| 167 | - background-repeat: no-repeat; | |
| 168 | -} | |
| 169 | - | |
| 170 | -.filetree .dir > div.filetreeline > a { | |
| 171 | - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC); | |
| 172 | -} | |
| 173 | - | |
| 174 | - | |
| 175 | -/* Label-Value table | |
| 176 | - * Displayed on the Check-in & Admin pages. | |
| 177 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 178 | -table.label-value th { | |
| 179 | - vertical-align: middle; | |
| 180 | -} | |
| 181 | - | |
| 182 | - | |
| 183 | -/* Branches table | |
| 184 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 185 | -.brlist table td { | |
| 186 | - padding: 5px; | |
| 187 | -} | |
| 188 | - | |
| 189 | - | |
| 190 | -/* Timeline | |
| 191 | - * Displays chronologically-ordered check-ins with a branch graph. | |
| 192 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 193 | -tr.timelineCurrent { | |
| 194 | - border-left: 2px solid orange; | |
| 195 | - background-color: #ffc; | |
| 196 | - border-bottom: 1px solid #ddd; | |
| 197 | - border-right: 1px solid #ddd; | |
| 198 | -} | |
| 199 | - | |
| 200 | -tr.timelineSelected { | |
| 201 | - border-left: 2px solid orange; | |
| 202 | - background-color: #ffffe8; | |
| 203 | - border-bottom: 1px solid #ddd; | |
| 204 | - border-right: 1px solid #ddd; | |
| 205 | -} | |
| 206 | - | |
| 207 | -tr.timelineCurrent td.timelineTableCell { | |
| 208 | -} | |
| 209 | - | |
| 210 | -tr.timelineBottom td { | |
| 211 | - border-bottom: 0; | |
| 212 | -} | |
| 213 | - | |
| 214 | -div.timelineDate { | |
| 215 | - font-weight: bold; | |
| 216 | - white-space: nowrap; | |
| 217 | -} | |
| 218 | - | |
| 219 | -td.timelineTime { | |
| 220 | - vertical-align: top; | |
| 221 | - text-align: right; | |
| 222 | - white-space: nowrap; | |
| 223 | - border-bottom: 0; | |
| 224 | -} | |
| 225 | - | |
| 226 | -td.timelineGraph { | |
| 227 | - width: 20px; | |
| 228 | - text-align: left; | |
| 229 | - vertical-align: top; | |
| 230 | - border-bottom: 0; | |
| 231 | -} | |
| 232 | - | |
| 233 | -a.timelineHistLink { | |
| 234 | - text-transform: lowercase; | |
| 235 | -} | |
| 236 | - | |
| 237 | -span.timelineComment { | |
| 238 | - padding: 0px 5px; | |
| 239 | -} | |
| 240 | - | |
| 241 | - | |
| 242 | -/* Login/Loguot | |
| 243 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 244 | -table.login_out { | |
| 245 | -} | |
| 246 | - | |
| 247 | -table.login_out .login_out_label { | |
| 248 | - font-weight: 700; | |
| 249 | - text-align: right; | |
| 250 | -} | |
| 251 | - | |
| 252 | -table.login_out td { | |
| 253 | - border: 0; | |
| 254 | -} | |
| 255 | - | |
| 256 | - | |
| 257 | -/* Diff displays | |
| 258 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 259 | -pre.udiff, table.sbsdiffcols { | |
| 260 | - width: 100%; | |
| 261 | - overflow: auto; | |
| 262 | - border: 1px solid #ccc; | |
| 263 | - padding: 0px 5px; | |
| 264 | - font-size: 1rem; | |
| 265 | -} | |
| 266 | - | |
| 267 | -pre.udiff:focus, table.sbsdiffcols:focus { | |
| 268 | - outline: none; | |
| 269 | -} | |
| 270 | - | |
| 271 | - | |
| 272 | -/* Ticket Reports | |
| 273 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 274 | -table.report { | |
| 275 | - width: 100%; | |
| 276 | - cursor: auto; | |
| 277 | - border-radius: 4px; | |
| 278 | - border: 1px solid #ccc; | |
| 279 | - margin: 0 0 1em 0; | |
| 280 | -} | |
| 281 | - | |
| 282 | -.report td, .report th { | |
| 283 | - border: 0; | |
| 284 | - font-size: .9em; | |
| 285 | - padding: 5px; | |
| 286 | -} | |
| 287 | - | |
| 288 | -.report th { | |
| 289 | - cursor: pointer; | |
| 290 | -} | |
| 291 | - | |
| 292 | -.report thead+tbody tr:hover { | |
| 293 | - background-color: #f5f9fc !important; | |
| 294 | -} | |
| 295 | - | |
| 296 | - | |
| 297 | -/* Ticket page | |
| 298 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 299 | -table.tktDsp { | |
| 300 | - border-top: 1px solid #ccc; | |
| 301 | - border-left: 1px solid #ccc; | |
| 302 | - width: 100%; | |
| 303 | - margin: 15px 0px 10px 0px; | |
| 304 | -} | |
| 305 | - | |
| 306 | -td.tktDspLabel, td.tktDescLabel { | |
| 307 | - width: 70px; | |
| 308 | - text-align: right; | |
| 309 | - overflow: hidden; | |
| 310 | - font-weight: 700; | |
| 311 | - padding: 10px; | |
| 312 | - background-color: #f8f8f8; | |
| 313 | -} | |
| 314 | - | |
| 315 | -td.tktDescLabel { | |
| 316 | - vertical-align: top; | |
| 317 | -} | |
| 318 | - | |
| 319 | -td.tktDspValue, td.tktDescValue { | |
| 320 | - text-align: left; | |
| 321 | - vertical-align: top; | |
| 322 | - border: 1px solid #ccc; | |
| 323 | - padding: 10px; | |
| 324 | -} | |
| 325 | - | |
| 326 | -td.tktDspValue pre, td.tktDescValue pre, | |
| 327 | -td.tktDspValue code, td.tktDescValue code { | |
| 328 | - white-space: pre-wrap; | |
| 329 | -} | |
| 330 | - | |
| 331 | -div.tktComments { | |
| 332 | - width: 100%; | |
| 333 | - margin: 30px 0px 10px 0px; | |
| 334 | -} | |
| 335 | - | |
| 336 | -div.tktComment { | |
| 337 | -} | |
| 338 | - | |
| 339 | -div.tktCommentHeader { | |
| 340 | - border: 1px solid #ccc; | |
| 341 | - background-color: #f8f8f8; | |
| 342 | - padding: 10px 10px; | |
| 343 | - margin-bottom: 10px; | |
| 344 | -} | |
| 345 | - | |
| 346 | -span.tktCommentLogin { | |
| 347 | - display: inline-block; | |
| 348 | - font-weight: 700; | |
| 349 | - color: #002060; | |
| 350 | -} | |
| 351 | - | |
| 352 | -div.tktCommentBody { | |
| 353 | - margin: 10px 40px 30px; | |
| 354 | -} | |
| 355 | - | |
| 356 | - | |
| 357 | -/* User setup table | |
| 358 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 359 | -td.usetupEditLabel { | |
| 360 | - font-weight: 700; | |
| 361 | -} | |
| 362 | - | |
| 363 | - | |
| 364 | -/* Utilities | |
| 365 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 366 | -.full-width { | |
| 367 | - width: 100%; | |
| 368 | - box-sizing: border-box; | |
| 369 | -} | |
| 370 | - | |
| 371 | -.max-full-width { | |
| 372 | - max-width: 100%; | |
| 373 | - box-sizing: border-box; | |
| 374 | -} | |
| 375 | - | |
| 376 | -.pull-right { | |
| 377 | - float: right; | |
| 378 | -} | |
| 379 | - | |
| 380 | -.pull-left { | |
| 381 | - float: left; | |
| 382 | -} | |
| 383 | - | |
| 384 | -/* Clearing | |
| 385 | -––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
| 386 | -.container:after, | |
| 387 | -.mainmenu:after, | |
| 388 | -.row:after, | |
| 389 | -.u-cf { | |
| 390 | - content: ""; | |
| 391 | - displa |
| --- a/skins/blitz_no_logo/css.txt | |
| +++ b/skins/blitz_no_logo/css.txt | |
| @@ -1,391 +0,0 @@ | |
| 1 | display: block; |
| 2 | ay: none; |
| 3 | } |
| 4 | |
| 5 | .filetree aborder-top: 1px solid #ccc; |
| 6 | OuNXUIAyATv6zz3bXPEo3display: block; |
| 7 | FaMMN4WFqbnEl8BzXtlBX++ATr2KW3eC9kbg/9d2l6/qmdxrq9bdRkBwMtrgd+lpkpxwyWSwAkvRKSfl0phf4l+6acGVeak6QQbCJYH/Gwci+zPi/+oMFEJpLdTDfQ8IpTTl8r/lkQuniX3oR98mjX65sJQZ0wYNu1NU0wZ8RjSUf0Qo22aCU1oAoCazTFe5bdZ1pVIqcv2B12XSm6awxCFNaichCr1I1auDOQFvKxzQHFD4mexGXNfds/PoYB+iMhxzwIC8vcJe7HKVIrBEoLRQkuVL+Ii70lDlMUOR/uHrJdNaAwXo82orksR8gfVUAGFkgy5JfhKdEKncelwhq8SinwMeidX+303VHuvOgCGSRRF2o6vb6FyKmQTGRNTraQt1qJ6EaAPA4V22MYH20wXx+aCyfKFvFAcymiYfCh/YhSQZACFHpBB/l6On2l0s/AgTBWdIHHbpIulzfWDbvAW4r3gPUIwWdisplay: block; |
| 8 | u li a { |
| 9 | color: #3b5c6b; |
| 10 | padding: 10px 15px; |
| 11 | } |
| 12 | |
| 13 | .mainmenu li.active a { |
| 14 | font-weight: bold; |
| 15 | } |
| 16 | |
| 17 | .mainmenu li:hover { |
| 18 | background-color: #eee; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | /* Submenu |
| 23 | * Displayed in the middle div. Contains page-specific form controls. |
| 24 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 25 | .submenu { |
| 26 | padding: 10px 0px; |
| 27 | border-bottom: 1px solid #ddd; |
| 28 | } |
| 29 | |
| 30 | .submenu input, .submenu select { |
| 31 | margin: 0 0 0 5px; |
| 32 | } |
| 33 | |
| 34 | .submenu a, .submenu label { |
| 35 | display: inline; |
| 36 | font-weight: normal; |
| 37 | color: #3b5c6b; |
| 38 | padding: 5px 15px; |
| 39 | text-decoration: none; |
| 40 | border: 1px solid transparent; |
| 41 | border-radius: 5px; |
| 42 | } |
| 43 | |
| 44 | .submenu a:hover, .submenu label:hover { |
| 45 | border: 1px solid #ccc; |
| 46 | } |
| 47 | |
| 48 | |
| 49 | /* Section |
| 50 | * Cap/header to distinguish a section. Displayed within a content div. |
| 51 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 52 | .section { |
| 53 | font-weight: bold; |
| 54 | background-color: #f5f5f5; |
| 55 | border: 1px solid #ccc; |
| 56 | padding: 9px 10px 10px; |
| 57 | margin: 10px 0; |
| 58 | } |
| 59 | |
| 60 | |
| 61 | /* Section Menu |
| 62 | * Div of buttons/links, displayed with a section div within a content div. |
| 63 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 64 | .sectionmenu { |
| 65 | border: 1px solid #ccc; |
| 66 | border-top: 0; |
| 67 | margin-top: -10px; |
| 68 | margin-bottom: 10px; |
| 69 | padding: 5px; |
| 70 | text-align: center; |
| 71 | } |
| 72 | .sectionmenu a { |
| 73 | display: inline-block; |
| 74 | margin-top: 5px; |
| 75 | margin-right: 1em; |
| 76 | } |
| 77 | |
| 78 | |
| 79 | /* File browser |
| 80 | * Repository tree navigation. |
| 81 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 82 | ul.browser { |
| 83 | list-style: none; |
| 84 | } |
| 85 | |
| 86 | ul.browser li.dir { |
| 87 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC); |
| 88 | background-repeat: no-repeat; |
| 89 | background-position: 0px center; |
| 90 | padding-left: 22px; |
| 91 | padding-top: 2px; |
| 92 | } |
| 93 | |
| 94 | ul.browser li.file { |
| 95 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC); |
| 96 | background-repeat: no-repeat; |
| 97 | background-position: 0px center; |
| 98 | padding-left: 22px; |
| 99 | padding-top: 2px; |
| 100 | } |
| 101 | |
| 102 | div.filetreeline { |
| 103 | display: table; |
| 104 | width: 100%; |
| 105 | white-space: nowrap; |
| 106 | } |
| 107 | |
| 108 | /* tree-view top-level list */ |
| 109 | .filetree > ul { |
| 110 | display: inline-block; |
| 111 | } |
| 112 | |
| 113 | /* tree-view lists */ |
| 114 | .filetree ul { |
| 115 | margin: 0; |
| 116 | padding: 0; |
| 117 | list-style: none; |
| 118 | } |
| 119 | /* tree-view collapsed list */ |
| 120 | .filetree ul.collapsed { |
| 121 | display: none; |
| 122 | } |
| 123 | /* tree-view lists below the root */ |
| 124 | .filetree ul ul { |
| 125 | position: relative; |
| 126 | margin: 0 0 0 21px; |
| 127 | } |
| 128 | /* tree-view lists items */ |
| 129 | .filetree li { |
| 130 | position: relative; |
| 131 | margin: 0; |
| 132 | padding: 0; |
| 133 | } |
| 134 | /* tree-view node lines */ |
| 135 | .filetree li li:before { |
| 136 | content: ''; |
| 137 | position: absolute; |
| 138 | top: -.8em; |
| 139 | left: -14px; |
| 140 | width: 16px; |
| 141 | height: 1.5em; |
| 142 | border-left: 1px solid #ccc; |
| 143 | border-bottom: 1px solid #ccc; |
| 144 | } |
| 145 | /* tree-view directory lines */ |
| 146 | .filetree li > ul:before { |
| 147 | content: ''; |
| 148 | position: absolute; |
| 149 | top: -1.5em; |
| 150 | bottom: 0; |
| 151 | left: -35px; |
| 152 | border-left: 1px solid #ccc; |
| 153 | } |
| 154 | /* hide lines for last-child directories */ |
| 155 | .filetree li.last > ul:before { |
| 156 | display: none; |
| 157 | } |
| 158 | |
| 159 | .filetree a { |
| 160 | position: relative; |
| 161 | z-index: 1; |
| 162 | display: table-cell; |
| 163 | min-height: 16px; |
| 164 | padding-left: 22px; |
| 165 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC); |
| 166 | background-position: center left; |
| 167 | background-repeat: no-repeat; |
| 168 | } |
| 169 | |
| 170 | .filetree .dir > div.filetreeline > a { |
| 171 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC); |
| 172 | } |
| 173 | |
| 174 | |
| 175 | /* Label-Value table |
| 176 | * Displayed on the Check-in & Admin pages. |
| 177 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 178 | table.label-value th { |
| 179 | vertical-align: middle; |
| 180 | } |
| 181 | |
| 182 | |
| 183 | /* Branches table |
| 184 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 185 | .brlist table td { |
| 186 | padding: 5px; |
| 187 | } |
| 188 | |
| 189 | |
| 190 | /* Timeline |
| 191 | * Displays chronologically-ordered check-ins with a branch graph. |
| 192 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 193 | tr.timelineCurrent { |
| 194 | border-left: 2px solid orange; |
| 195 | background-color: #ffc; |
| 196 | border-bottom: 1px solid #ddd; |
| 197 | border-right: 1px solid #ddd; |
| 198 | } |
| 199 | |
| 200 | tr.timelineSelected { |
| 201 | border-left: 2px solid orange; |
| 202 | background-color: #ffffe8; |
| 203 | border-bottom: 1px solid #ddd; |
| 204 | border-right: 1px solid #ddd; |
| 205 | } |
| 206 | |
| 207 | tr.timelineCurrent td.timelineTableCell { |
| 208 | } |
| 209 | |
| 210 | tr.timelineBottom td { |
| 211 | border-bottom: 0; |
| 212 | } |
| 213 | |
| 214 | div.timelineDate { |
| 215 | font-weight: bold; |
| 216 | white-space: nowrap; |
| 217 | } |
| 218 | |
| 219 | td.timelineTime { |
| 220 | vertical-align: top; |
| 221 | text-align: right; |
| 222 | white-space: nowrap; |
| 223 | border-bottom: 0; |
| 224 | } |
| 225 | |
| 226 | td.timelineGraph { |
| 227 | width: 20px; |
| 228 | text-align: left; |
| 229 | vertical-align: top; |
| 230 | border-bottom: 0; |
| 231 | } |
| 232 | |
| 233 | a.timelineHistLink { |
| 234 | text-transform: lowercase; |
| 235 | } |
| 236 | |
| 237 | span.timelineComment { |
| 238 | padding: 0px 5px; |
| 239 | } |
| 240 | |
| 241 | |
| 242 | /* Login/Loguot |
| 243 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 244 | table.login_out { |
| 245 | } |
| 246 | |
| 247 | table.login_out .login_out_label { |
| 248 | font-weight: 700; |
| 249 | text-align: right; |
| 250 | } |
| 251 | |
| 252 | table.login_out td { |
| 253 | border: 0; |
| 254 | } |
| 255 | |
| 256 | |
| 257 | /* Diff displays |
| 258 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 259 | pre.udiff, table.sbsdiffcols { |
| 260 | width: 100%; |
| 261 | overflow: auto; |
| 262 | border: 1px solid #ccc; |
| 263 | padding: 0px 5px; |
| 264 | font-size: 1rem; |
| 265 | } |
| 266 | |
| 267 | pre.udiff:focus, table.sbsdiffcols:focus { |
| 268 | outline: none; |
| 269 | } |
| 270 | |
| 271 | |
| 272 | /* Ticket Reports |
| 273 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 274 | table.report { |
| 275 | width: 100%; |
| 276 | cursor: auto; |
| 277 | border-radius: 4px; |
| 278 | border: 1px solid #ccc; |
| 279 | margin: 0 0 1em 0; |
| 280 | } |
| 281 | |
| 282 | .report td, .report th { |
| 283 | border: 0; |
| 284 | font-size: .9em; |
| 285 | padding: 5px; |
| 286 | } |
| 287 | |
| 288 | .report th { |
| 289 | cursor: pointer; |
| 290 | } |
| 291 | |
| 292 | .report thead+tbody tr:hover { |
| 293 | background-color: #f5f9fc !important; |
| 294 | } |
| 295 | |
| 296 | |
| 297 | /* Ticket page |
| 298 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 299 | table.tktDsp { |
| 300 | border-top: 1px solid #ccc; |
| 301 | border-left: 1px solid #ccc; |
| 302 | width: 100%; |
| 303 | margin: 15px 0px 10px 0px; |
| 304 | } |
| 305 | |
| 306 | td.tktDspLabel, td.tktDescLabel { |
| 307 | width: 70px; |
| 308 | text-align: right; |
| 309 | overflow: hidden; |
| 310 | font-weight: 700; |
| 311 | padding: 10px; |
| 312 | background-color: #f8f8f8; |
| 313 | } |
| 314 | |
| 315 | td.tktDescLabel { |
| 316 | vertical-align: top; |
| 317 | } |
| 318 | |
| 319 | td.tktDspValue, td.tktDescValue { |
| 320 | text-align: left; |
| 321 | vertical-align: top; |
| 322 | border: 1px solid #ccc; |
| 323 | padding: 10px; |
| 324 | } |
| 325 | |
| 326 | td.tktDspValue pre, td.tktDescValue pre, |
| 327 | td.tktDspValue code, td.tktDescValue code { |
| 328 | white-space: pre-wrap; |
| 329 | } |
| 330 | |
| 331 | div.tktComments { |
| 332 | width: 100%; |
| 333 | margin: 30px 0px 10px 0px; |
| 334 | } |
| 335 | |
| 336 | div.tktComment { |
| 337 | } |
| 338 | |
| 339 | div.tktCommentHeader { |
| 340 | border: 1px solid #ccc; |
| 341 | background-color: #f8f8f8; |
| 342 | padding: 10px 10px; |
| 343 | margin-bottom: 10px; |
| 344 | } |
| 345 | |
| 346 | span.tktCommentLogin { |
| 347 | display: inline-block; |
| 348 | font-weight: 700; |
| 349 | color: #002060; |
| 350 | } |
| 351 | |
| 352 | div.tktCommentBody { |
| 353 | margin: 10px 40px 30px; |
| 354 | } |
| 355 | |
| 356 | |
| 357 | /* User setup table |
| 358 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 359 | td.usetupEditLabel { |
| 360 | font-weight: 700; |
| 361 | } |
| 362 | |
| 363 | |
| 364 | /* Utilities |
| 365 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 366 | .full-width { |
| 367 | width: 100%; |
| 368 | box-sizing: border-box; |
| 369 | } |
| 370 | |
| 371 | .max-full-width { |
| 372 | max-width: 100%; |
| 373 | box-sizing: border-box; |
| 374 | } |
| 375 | |
| 376 | .pull-right { |
| 377 | float: right; |
| 378 | } |
| 379 | |
| 380 | .pull-left { |
| 381 | float: left; |
| 382 | } |
| 383 | |
| 384 | /* Clearing |
| 385 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */ |
| 386 | .container:after, |
| 387 | .mainmenu:after, |
| 388 | .row:after, |
| 389 | .u-cf { |
| 390 | content: ""; |
| 391 | displa |
| --- a/skins/blitz_no_logo/css.txt | |
| +++ b/skins/blitz_no_logo/css.txt | |
| @@ -1,391 +0,0 @@ | |
D
skins/blitz_no_logo/details.txt
-3
| --- a/skins/blitz_no_logo/details.txt | ||
| +++ b/skins/blitz_no_logo/details.txt | ||
| @@ -1,3 +0,0 @@ | ||
| 1 | -timeline-arrowheads: 0 | |
| 2 | -tim 1 | |
| 3 | -x@0,1OUWFw; |
| --- a/skins/blitz_no_logo/details.txt | |
| +++ b/skins/blitz_no_logo/details.txt | |
| @@ -1,3 +0,0 @@ | |
| 1 | timeline-arrowheads: 0 |
| 2 | tim 1 |
| 3 | x@0,1OUWFw; |
| --- a/skins/blitz_no_logo/details.txt | |
| +++ b/skins/blitz_no_logo/details.txt | |
| @@ -1,3 +0,0 @@ | |
D
skins/blitz_no_logo/footer.txt
-8
| --- a/skins/blitz_no_logo/footer.txt | ||
| +++ b/skins/blitz_no_logo/footer.txt | ||
| @@ -1,9 +0,0 @@ | ||
| 1 | -<!-- end div er --> | |
| 2 | -</container --> | |
| --- end div er --> | ||
| 3 | -<class="footer"> | |
| 4 | - < class="footer"> | |
| 5 | - < <div <a href="https://fossil-scm.ef="https://fossil-scm.org/">Fossil $release_version $manifest_vers </div</div> | |
| 6 | - <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}] </div> | |
| 7 | - </div> | |
| 8 | -</div> |
| --- a/skins/blitz_no_logo/footer.txt | |
| +++ b/skins/blitz_no_logo/footer.txt | |
| @@ -1,9 +0,0 @@ | |
| 1 | <!-- end div er --> |
| 2 | </container --> |
| --- end div er --> | |
| 3 | <class="footer"> |
| 4 | < class="footer"> |
| 5 | < <div <a href="https://fossil-scm.ef="https://fossil-scm.org/">Fossil $release_version $manifest_vers </div</div> |
| 6 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}] </div> |
| 7 | </div> |
| 8 | </div> |
| --- a/skins/blitz_no_logo/footer.txt | |
| +++ b/skins/blitz_no_logo/footer.txt | |
| @@ -1,9 +0,0 @@ | |
| --- end div er --> | |
D
skins/blitz_no_logo/header.txt
-71
| --- a/skins/blitz_no_logo/header.txt | ||
| +++ b/skins/blitz_no_logo/header.txt | ||
| @@ -1,71 +0,0 @@ | ||
| 1 | -<div class="header"> | |
| 2 | - <div class="container"> | |
| 3 | - | |
| 4 | - <div class="login pull-right"> | |
| 5 | - <th1> | |
| 6 | - if {[info exists login]} { | |
| 7 | - html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n" | |
| 8 | - } else { | |
| 9 | - html "<a class='button' href='$home/login'>Login</a>\n" | |
| 10 | - } | |
| 11 | - </th1> | |
| 12 | - </div> | |
| 13 | - <div class='title'> | |
| 14 | - <h1>$<project_name> | |
| 15 | - <th1> | |
| 16 | - if {[anycap jor]} { | |
| 17 | - html "<a class='rss' href='$home/timeline.rss'></a>" | |
| 18 | - } | |
| 19 | - </th1> | |
| 20 | - <small> $<title></small></h1> | |
| 21 | - </div> | |
| 22 | - | |
| 23 | - <!-- Main Menu --> | |
| 24 | - <div class="mainmenu"> | |
| 25 | - <ul> | |
| 26 | - <th1> | |
| 27 | -proc menulink {url name} { | |
| 28 | - upvar current_page current | |
| 29 | - upvar home home | |
| 30 | - if {[string range $url 0 [string length $current]] eq "/$current"} { | |
| 31 | - html "<li class='active'>" | |
| 32 | - } else { | |
| 33 | - html "<li>"$url'>$name</a></li>\n" | |
| 34 | -} | |
| 35 | -</th1></ul> | |
| 36 | - </div> <!-- end dijoes | |
| 37 | -} | |
| 38 | -if {[hascap o]}div> <!-- end div container --> | |
| 39 | - </div> <!-- end div header --> | |
| 40 | - <div class="middle max-full-width"> | |
| 41 | - <div class="container"> | |
| 42 | -menulink $index_page Home | |
| 43 | -if {[anycap ijr2]} { | |
| 44 | - menulink /timeline Timeline | |
| 45 | -} | |
| 46 | -if {[hascap oh]} { | |
| 47 | - menulink /dir?cihascap es | |
| 48 | -} | |
| 49 | -if {[hascap o]} { | |
| 50 | - menulink /brlist Branches | |
| 51 | - menulink /taglist Tags | |
| 52 | -} | |
| 53 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 54 | - menulink /forum Forum | |
| 55 | -} | |
| 56 | -if {[anycap nr]} { | |
| 57 | - menulink /ticket Tickets | |
| 58 | -} | |
| 59 | -if {[hascap j]} { | |
| 60 | - menulink /wiki Wiki | |
| 61 | -} | |
| 62 | -if {[hascap o]} { | |
| 63 | - menulink /help Help | |
| 64 | - } | |
| 65 | -if {[hascap s]} { | |
| 66 | - menulink /setup Admin | |
| 67 | -} elseif {[hascap a]} { | |
| 68 | - menulink /setup_ulist Users | |
| 69 | -} | |
| 70 | - </th1> | |
| 71 | - |
| --- a/skins/blitz_no_logo/header.txt | |
| +++ b/skins/blitz_no_logo/header.txt | |
| @@ -1,71 +0,0 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="container"> |
| 3 | |
| 4 | <div class="login pull-right"> |
| 5 | <th1> |
| 6 | if {[info exists login]} { |
| 7 | html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n" |
| 8 | } else { |
| 9 | html "<a class='button' href='$home/login'>Login</a>\n" |
| 10 | } |
| 11 | </th1> |
| 12 | </div> |
| 13 | <div class='title'> |
| 14 | <h1>$<project_name> |
| 15 | <th1> |
| 16 | if {[anycap jor]} { |
| 17 | html "<a class='rss' href='$home/timeline.rss'></a>" |
| 18 | } |
| 19 | </th1> |
| 20 | <small> $<title></small></h1> |
| 21 | </div> |
| 22 | |
| 23 | <!-- Main Menu --> |
| 24 | <div class="mainmenu"> |
| 25 | <ul> |
| 26 | <th1> |
| 27 | proc menulink {url name} { |
| 28 | upvar current_page current |
| 29 | upvar home home |
| 30 | if {[string range $url 0 [string length $current]] eq "/$current"} { |
| 31 | html "<li class='active'>" |
| 32 | } else { |
| 33 | html "<li>"$url'>$name</a></li>\n" |
| 34 | } |
| 35 | </th1></ul> |
| 36 | </div> <!-- end dijoes |
| 37 | } |
| 38 | if {[hascap o]}div> <!-- end div container --> |
| 39 | </div> <!-- end div header --> |
| 40 | <div class="middle max-full-width"> |
| 41 | <div class="container"> |
| 42 | menulink $index_page Home |
| 43 | if {[anycap ijr2]} { |
| 44 | menulink /timeline Timeline |
| 45 | } |
| 46 | if {[hascap oh]} { |
| 47 | menulink /dir?cihascap es |
| 48 | } |
| 49 | if {[hascap o]} { |
| 50 | menulink /brlist Branches |
| 51 | menulink /taglist Tags |
| 52 | } |
| 53 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 54 | menulink /forum Forum |
| 55 | } |
| 56 | if {[anycap nr]} { |
| 57 | menulink /ticket Tickets |
| 58 | } |
| 59 | if {[hascap j]} { |
| 60 | menulink /wiki Wiki |
| 61 | } |
| 62 | if {[hascap o]} { |
| 63 | menulink /help Help |
| 64 | } |
| 65 | if {[hascap s]} { |
| 66 | menulink /setup Admin |
| 67 | } elseif {[hascap a]} { |
| 68 | menulink /setup_ulist Users |
| 69 | } |
| 70 | </th1> |
| 71 |
| --- a/skins/blitz_no_logo/header.txt | |
| +++ b/skins/blitz_no_logo/header.txt | |
| @@ -1,71 +0,0 @@ | |
D
skins/blitz_no_logo/ticket.txt
-115
| --- a/skins/blitz_no_logo/ticket.txt | ||
| +++ b/skins/blitz_no_logo/ticket.txt | ||
| @@ -1,115 +0,0 @@ | ||
| 1 | -<h4>$<title></h4> | |
| 2 | -<table class="tktDsp"> | |
| 3 | -<tr><td class="tktDspLabel">Ticket Hash</td> | |
| 4 | -<th1> | |
| 5 | -if {[info exists tkt_uuid]} { | |
| 6 | - if {[hascap s]} { | |
| 7 | - html "<td class='tktDspValue' colspan='3'>$tkt_uuid " | |
| 8 | - html "($tkt_id)</td></tr>\n" | |
| 9 | - } else { | |
| 10 | - html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n" | |
| 11 | - } | |
| 12 | -} else { | |
| 13 | - if {[hascap s]} { | |
| 14 | - html "<td class='tktDspValue' colspan='3'>Deleted " | |
| 15 | - html "(0)</td></tr>\n" | |
| 16 | - } else { | |
| 17 | - html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n" | |
| 18 | - } | |
| 19 | -} | |
| 20 | -</th1> | |
| 21 | -<tr><td class="tktDspLabel">Status</td><td class="tktDspValue"> | |
| 22 | -$<status> | |
| 23 | -</td> | |
| 24 | -<td class="tktDspLabel">Type</td><td class="tktDspValue"> | |
| 25 | -$<type> | |
| 26 | -</td></tr> | |
| 27 | -<tr><td class="tktDspLabel">Severity</td><td class="tktDspValue"> | |
| 28 | -$<severity> | |
| 29 | -</td> | |
| 30 | -<td class="tktDspLabel">Priority</td><td class="tktDspValue"> | |
| 31 | -$<priority> | |
| 32 | -</td></tr> | |
| 33 | -<tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue"> | |
| 34 | -$<subsystem> | |
| 35 | -</td> | |
| 36 | -<td class="tktDspLabel">Resolution</td><td class="tktDspValue"> | |
| 37 | -$<resolution> | |
| 38 | -</td></tr> | |
| 39 | -<tr><td class="tktDspLabel">Last Modified</td><td class="tktDspValue"> | |
| 40 | -<th1> | |
| 41 | -if {[info exists tkt_datetime]} { | |
| 42 | - html $tkt_datetime | |
| 43 | -} | |
| 44 | -</th1> | |
| 45 | -</td> | |
| 46 | -<th1>enable_output [hascap e]</th1> | |
| 47 | - <td class="tktDspLabel">Contact</td><td class="tktDspValue"> | |
| 48 | - $<private_contact> | |
| 49 | - </td> | |
| 50 | -<th1>enable_output 1</th1> | |
| 51 | -</tr> | |
| 52 | -<tr><td class="tktDspLabel">Version Found In</td> | |
| 53 | -<td colspan="3" valign="top" class="tktDspValue"> | |
| 54 | -$<foundin> | |
| 55 | -</td></tr> | |
| 56 | - | |
| 57 | -<th1> | |
| 58 | -if {[info exists comment]} { | |
| 59 | - if {[string length $comment]>10} { | |
| 60 | - html { | |
| 61 | - <tr> | |
| 62 | - <td class="tktDescLabel">Description</td> | |
| 63 | - <td class="tktDescValue" colspan="3"> | |
| 64 | - } | |
| 65 | - if {[info exists plaintext]} { | |
| 66 | - set r [randhex] | |
| 67 | - wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>" | |
| 68 | - } else { | |
| 69 | - wiki $comment | |
| 70 | - } | |
| 71 | - html "</td></tr>\n" | |
| 72 | - } | |
| 73 | -} | |
| 74 | -</th1> | |
| 75 | -</table> | |
| 76 | - | |
| 77 | -<div class="tktComments"> | |
| 78 | -<th1> | |
| 79 | -set seenRow 0 | |
| 80 | -set alwaysPlaintext [info exists plaintext] | |
| 81 | -query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin, | |
| 82 | - mimetype as xmimetype, icomment AS xcomment, | |
| 83 | - username AS xusername | |
| 84 | - FROM ticketchng | |
| 85 | - WHERE tkt_id=$tkt_id AND length(icomment)>0} { | |
| 86 | - if {$seenRow eq "0"} { | |
| 87 | - html "<h5>User Comments</h5>\n" | |
| 88 | - set seenRow 1 | |
| 89 | - } | |
| 90 | - html "<div class='tktComment'>\n" | |
| 91 | - html "<div class='tktCommentHeader'>\n" | |
| 92 | - html "<div class='pull-right'>$xdate</div>\n" | |
| 93 | - html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>" | |
| 94 | - if {$xlogin ne $xusername && [string length $xusername]>0} { | |
| 95 | - html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)" | |
| 96 | - } | |
| 97 | - html " commented</div>\n" | |
| 98 | - html "<div class='tktCommentBody'>\n" | |
| 99 | - if {$alwaysPlaintext || $xmimetype eq "text/plain"} { | |
| 100 | - set r [randhex] | |
| 101 | - if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"} | |
| 102 | - wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n" | |
| 103 | - } elseif {$xmimetype eq "text/x-fossil-wiki"} { | |
| 104 | - wiki "<p>\n[string trimright $xcomment]\n</p>\n" | |
| 105 | - } elseif {$xmimetype eq "text/html"} { | |
| 106 | - wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki></p>\n" | |
| 107 | - } else { | |
| 108 | - set r [randhex] | |
| 109 | - wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n" | |
| 110 | - } | |
| 111 | - html "</div><!-- end comment body -->\n" | |
| 112 | - html "</div><!-- end comment -->\n" | |
| 113 | -} | |
| 114 | -</th1> | |
| 115 | -</div> |
| --- a/skins/blitz_no_logo/ticket.txt | |
| +++ b/skins/blitz_no_logo/ticket.txt | |
| @@ -1,115 +0,0 @@ | |
| 1 | <h4>$<title></h4> |
| 2 | <table class="tktDsp"> |
| 3 | <tr><td class="tktDspLabel">Ticket Hash</td> |
| 4 | <th1> |
| 5 | if {[info exists tkt_uuid]} { |
| 6 | if {[hascap s]} { |
| 7 | html "<td class='tktDspValue' colspan='3'>$tkt_uuid " |
| 8 | html "($tkt_id)</td></tr>\n" |
| 9 | } else { |
| 10 | html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n" |
| 11 | } |
| 12 | } else { |
| 13 | if {[hascap s]} { |
| 14 | html "<td class='tktDspValue' colspan='3'>Deleted " |
| 15 | html "(0)</td></tr>\n" |
| 16 | } else { |
| 17 | html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n" |
| 18 | } |
| 19 | } |
| 20 | </th1> |
| 21 | <tr><td class="tktDspLabel">Status</td><td class="tktDspValue"> |
| 22 | $<status> |
| 23 | </td> |
| 24 | <td class="tktDspLabel">Type</td><td class="tktDspValue"> |
| 25 | $<type> |
| 26 | </td></tr> |
| 27 | <tr><td class="tktDspLabel">Severity</td><td class="tktDspValue"> |
| 28 | $<severity> |
| 29 | </td> |
| 30 | <td class="tktDspLabel">Priority</td><td class="tktDspValue"> |
| 31 | $<priority> |
| 32 | </td></tr> |
| 33 | <tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue"> |
| 34 | $<subsystem> |
| 35 | </td> |
| 36 | <td class="tktDspLabel">Resolution</td><td class="tktDspValue"> |
| 37 | $<resolution> |
| 38 | </td></tr> |
| 39 | <tr><td class="tktDspLabel">Last Modified</td><td class="tktDspValue"> |
| 40 | <th1> |
| 41 | if {[info exists tkt_datetime]} { |
| 42 | html $tkt_datetime |
| 43 | } |
| 44 | </th1> |
| 45 | </td> |
| 46 | <th1>enable_output [hascap e]</th1> |
| 47 | <td class="tktDspLabel">Contact</td><td class="tktDspValue"> |
| 48 | $<private_contact> |
| 49 | </td> |
| 50 | <th1>enable_output 1</th1> |
| 51 | </tr> |
| 52 | <tr><td class="tktDspLabel">Version Found In</td> |
| 53 | <td colspan="3" valign="top" class="tktDspValue"> |
| 54 | $<foundin> |
| 55 | </td></tr> |
| 56 | |
| 57 | <th1> |
| 58 | if {[info exists comment]} { |
| 59 | if {[string length $comment]>10} { |
| 60 | html { |
| 61 | <tr> |
| 62 | <td class="tktDescLabel">Description</td> |
| 63 | <td class="tktDescValue" colspan="3"> |
| 64 | } |
| 65 | if {[info exists plaintext]} { |
| 66 | set r [randhex] |
| 67 | wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>" |
| 68 | } else { |
| 69 | wiki $comment |
| 70 | } |
| 71 | html "</td></tr>\n" |
| 72 | } |
| 73 | } |
| 74 | </th1> |
| 75 | </table> |
| 76 | |
| 77 | <div class="tktComments"> |
| 78 | <th1> |
| 79 | set seenRow 0 |
| 80 | set alwaysPlaintext [info exists plaintext] |
| 81 | query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin, |
| 82 | mimetype as xmimetype, icomment AS xcomment, |
| 83 | username AS xusername |
| 84 | FROM ticketchng |
| 85 | WHERE tkt_id=$tkt_id AND length(icomment)>0} { |
| 86 | if {$seenRow eq "0"} { |
| 87 | html "<h5>User Comments</h5>\n" |
| 88 | set seenRow 1 |
| 89 | } |
| 90 | html "<div class='tktComment'>\n" |
| 91 | html "<div class='tktCommentHeader'>\n" |
| 92 | html "<div class='pull-right'>$xdate</div>\n" |
| 93 | html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>" |
| 94 | if {$xlogin ne $xusername && [string length $xusername]>0} { |
| 95 | html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)" |
| 96 | } |
| 97 | html " commented</div>\n" |
| 98 | html "<div class='tktCommentBody'>\n" |
| 99 | if {$alwaysPlaintext || $xmimetype eq "text/plain"} { |
| 100 | set r [randhex] |
| 101 | if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"} |
| 102 | wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n" |
| 103 | } elseif {$xmimetype eq "text/x-fossil-wiki"} { |
| 104 | wiki "<p>\n[string trimright $xcomment]\n</p>\n" |
| 105 | } elseif {$xmimetype eq "text/html"} { |
| 106 | wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki></p>\n" |
| 107 | } else { |
| 108 | set r [randhex] |
| 109 | wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n" |
| 110 | } |
| 111 | html "</div><!-- end comment body -->\n" |
| 112 | html "</div><!-- end comment -->\n" |
| 113 | } |
| 114 | </th1> |
| 115 | </div> |
| --- a/skins/blitz_no_logo/ticket.txt | |
| +++ b/skins/blitz_no_logo/ticket.txt | |
| @@ -1,115 +0,0 @@ | |
+19
-69
| --- skins/bootstrap/header.txt | ||
| +++ skins/bootstrap/header.txt | ||
| @@ -39,79 +39,29 @@ | ||
| 39 | 39 | html " · <a href='$home/login'>Login</a>" |
| 40 | 40 | } |
| 41 | 41 | </th1></p> |
| 42 | 42 | <ul class="nav navbar-nav"> |
| 43 | 43 | <th1> |
| 44 | - set is_index [expr [string compare [string range $current_page 0 4] "index"]==0] | |
| 45 | - set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0] | |
| 46 | - if {$is_index || $is_home} { | |
| 47 | - html "<li class='active'><a href='$home$index_page'>Home</a></li>\n" | |
| 48 | - } else { | |
| 49 | - html "<li><a href='$home$index_page'>Home</a></li>\n" | |
| 50 | - } | |
| 51 | - if {[hascap j]} { | |
| 52 | - if {[string compare [string range $current_page 0 3] "wiki"] == 0} { | |
| 53 | - html "<li class='active'><a href='$home/wiki'>Wiki</a></li>\n" | |
| 54 | - } else { | |
| 55 | - html "<li><a href='$home/wiki'>Wiki</a></li>\n" | |
| 56 | - } | |
| 57 | - } | |
| 58 | - if {[anycap jor]} { | |
| 59 | - if {[string compare $current_page "timeline"] == 0} { | |
| 60 | - html "<li class='active'><a href='$home/timeline'>Timeline</a></li>\n" | |
| 61 | - } else { | |
| 62 | - html "<li><a href='$home/timeline'>Timeline</a></li>\n" | |
| 63 | - } | |
| 64 | - } | |
| 65 | - if {[hascap oh]} { | |
| 66 | - if {[string compare [string range $current_page 0 2] "dir"] == 0} { | |
| 67 | - html "<li class='active'><a href='$home/dir?ci=tip'>Files</a></li>\n" | |
| 68 | - } else { | |
| 69 | - html "<li><a href='$home/dir?ci=tip'>Files</a></li>\n" | |
| 70 | - } | |
| 71 | - } | |
| 72 | - if {[hascap o]} { | |
| 73 | - if {[string compare $current_page "brlist"] == 0} { | |
| 74 | - html "<li class='active'><a href='$home/brlist'>Branches</a></li>\n" | |
| 75 | - } else { | |
| 76 | - html "<li><a href='$home/brlist'>Branches</a></li>\n" | |
| 77 | - } | |
| 78 | - if {[string compare $current_page "taglist"] == 0} { | |
| 79 | - html "<li class='active'><a href='$home/taglist'>Tags</a></li>\n" | |
| 80 | - } else { | |
| 81 | - html "<li><a href='$home/taglist'>Tags</a></li>\n" | |
| 82 | - } | |
| 83 | - } | |
| 84 | - if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 85 | - if {[string compare $current_page "forum"] == 0} { | |
| 86 | - html "<li class='active'><a href='$home/forum'>Forum</a></li>\n" | |
| 87 | - } else { | |
| 88 | - html "<li><a href='$home/forum'>Forum</a></li>\n" | |
| 89 | - } | |
| 90 | - } | |
| 91 | - if {[hascap r]} { | |
| 92 | - if {[string compare $current_page "reportlist"] == 0} { | |
| 93 | - html "<li class='active'><a href='$home/reportlist'>Tickets</a></li>\n" | |
| 94 | - } else { | |
| 95 | - html "<li><a href='$home/reportlist'>Tickets</a></li>\n" | |
| 96 | - } | |
| 97 | - } | |
| 98 | - if {[hascap s]} { | |
| 99 | - if {[string compare [string range $current_page 0 4] "setup"] == 0} { | |
| 100 | - html "<li class='active'><a href='$home/setup'>Admin</a></li>\n" | |
| 101 | - } else { | |
| 102 | - html "<li><a href='$home/setup'>Admin</a></li>\n" | |
| 103 | - } | |
| 104 | - } elseif {[hascap a]} { | |
| 105 | - if {[string compare [string range $current_page 0 4] "setup"] == 0} { | |
| 106 | - html "<li class='active'><a href='$home/setup_ulist'>Users</a></li>\n" | |
| 107 | - } else { | |
| 108 | - html "<li><a href='$home/setup_ulist'>Users</a></li>\n" | |
| 109 | - } | |
| 110 | - } | |
| 111 | - </th1> | |
| 112 | - </ul> | |
| 44 | +set once 1 | |
| 45 | +set sitemap 0 | |
| 46 | +set is_index [expr [string compare [string range $current_page 0 4] "index"]==0] | |
| 47 | +set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0] | |
| 48 | +foreach {name url expr class} $mainmenu { | |
| 49 | + if {![capexpr $expr]} continue | |
| 50 | + if {$once && [string match /$current_page* $url]} { | |
| 51 | + lappend class active | |
| 52 | + set once 0 | |
| 53 | + } | |
| 54 | + html "<li class='$class'>" | |
| 55 | + if {[string match /* $url]} {set url $home$url} | |
| 56 | + if {[string match *sitemap* $url]} {set sitemap 1} | |
| 57 | + html "<a href='$url'>$name</a></li>\n" | |
| 58 | +} | |
| 59 | +if {!$sitemap} { | |
| 60 | + html "<li><a href='$home/sitemap'>...</a>\n" | |
| 61 | +} | |
| 62 | +</th1></ul> | |
| 113 | 63 | </div><!--/.nav-collapse --> |
| 114 | 64 | </div> |
| 115 | 65 | </div> |
| 116 | 66 | <div class="content"> |
| 117 | 67 | <th1> |
| 118 | 68 | |
| 119 | 69 | ADDED skins/darkmode/css.txt |
| 120 | 70 | ADDED skins/darkmode/details.txt |
| 121 | 71 | ADDED skins/darkmode/footer.txt |
| 122 | 72 | ADDED skins/darkmode/header.txt |
| --- skins/bootstrap/header.txt | |
| +++ skins/bootstrap/header.txt | |
| @@ -39,79 +39,29 @@ | |
| 39 | html " · <a href='$home/login'>Login</a>" |
| 40 | } |
| 41 | </th1></p> |
| 42 | <ul class="nav navbar-nav"> |
| 43 | <th1> |
| 44 | set is_index [expr [string compare [string range $current_page 0 4] "index"]==0] |
| 45 | set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0] |
| 46 | if {$is_index || $is_home} { |
| 47 | html "<li class='active'><a href='$home$index_page'>Home</a></li>\n" |
| 48 | } else { |
| 49 | html "<li><a href='$home$index_page'>Home</a></li>\n" |
| 50 | } |
| 51 | if {[hascap j]} { |
| 52 | if {[string compare [string range $current_page 0 3] "wiki"] == 0} { |
| 53 | html "<li class='active'><a href='$home/wiki'>Wiki</a></li>\n" |
| 54 | } else { |
| 55 | html "<li><a href='$home/wiki'>Wiki</a></li>\n" |
| 56 | } |
| 57 | } |
| 58 | if {[anycap jor]} { |
| 59 | if {[string compare $current_page "timeline"] == 0} { |
| 60 | html "<li class='active'><a href='$home/timeline'>Timeline</a></li>\n" |
| 61 | } else { |
| 62 | html "<li><a href='$home/timeline'>Timeline</a></li>\n" |
| 63 | } |
| 64 | } |
| 65 | if {[hascap oh]} { |
| 66 | if {[string compare [string range $current_page 0 2] "dir"] == 0} { |
| 67 | html "<li class='active'><a href='$home/dir?ci=tip'>Files</a></li>\n" |
| 68 | } else { |
| 69 | html "<li><a href='$home/dir?ci=tip'>Files</a></li>\n" |
| 70 | } |
| 71 | } |
| 72 | if {[hascap o]} { |
| 73 | if {[string compare $current_page "brlist"] == 0} { |
| 74 | html "<li class='active'><a href='$home/brlist'>Branches</a></li>\n" |
| 75 | } else { |
| 76 | html "<li><a href='$home/brlist'>Branches</a></li>\n" |
| 77 | } |
| 78 | if {[string compare $current_page "taglist"] == 0} { |
| 79 | html "<li class='active'><a href='$home/taglist'>Tags</a></li>\n" |
| 80 | } else { |
| 81 | html "<li><a href='$home/taglist'>Tags</a></li>\n" |
| 82 | } |
| 83 | } |
| 84 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 85 | if {[string compare $current_page "forum"] == 0} { |
| 86 | html "<li class='active'><a href='$home/forum'>Forum</a></li>\n" |
| 87 | } else { |
| 88 | html "<li><a href='$home/forum'>Forum</a></li>\n" |
| 89 | } |
| 90 | } |
| 91 | if {[hascap r]} { |
| 92 | if {[string compare $current_page "reportlist"] == 0} { |
| 93 | html "<li class='active'><a href='$home/reportlist'>Tickets</a></li>\n" |
| 94 | } else { |
| 95 | html "<li><a href='$home/reportlist'>Tickets</a></li>\n" |
| 96 | } |
| 97 | } |
| 98 | if {[hascap s]} { |
| 99 | if {[string compare [string range $current_page 0 4] "setup"] == 0} { |
| 100 | html "<li class='active'><a href='$home/setup'>Admin</a></li>\n" |
| 101 | } else { |
| 102 | html "<li><a href='$home/setup'>Admin</a></li>\n" |
| 103 | } |
| 104 | } elseif {[hascap a]} { |
| 105 | if {[string compare [string range $current_page 0 4] "setup"] == 0} { |
| 106 | html "<li class='active'><a href='$home/setup_ulist'>Users</a></li>\n" |
| 107 | } else { |
| 108 | html "<li><a href='$home/setup_ulist'>Users</a></li>\n" |
| 109 | } |
| 110 | } |
| 111 | </th1> |
| 112 | </ul> |
| 113 | </div><!--/.nav-collapse --> |
| 114 | </div> |
| 115 | </div> |
| 116 | <div class="content"> |
| 117 | <th1> |
| 118 | |
| 119 | DDED skins/darkmode/css.txt |
| 120 | DDED skins/darkmode/details.txt |
| 121 | DDED skins/darkmode/footer.txt |
| 122 | DDED skins/darkmode/header.txt |
| --- skins/bootstrap/header.txt | |
| +++ skins/bootstrap/header.txt | |
| @@ -39,79 +39,29 @@ | |
| 39 | html " · <a href='$home/login'>Login</a>" |
| 40 | } |
| 41 | </th1></p> |
| 42 | <ul class="nav navbar-nav"> |
| 43 | <th1> |
| 44 | set once 1 |
| 45 | set sitemap 0 |
| 46 | set is_index [expr [string compare [string range $current_page 0 4] "index"]==0] |
| 47 | set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0] |
| 48 | foreach {name url expr class} $mainmenu { |
| 49 | if {![capexpr $expr]} continue |
| 50 | if {$once && [string match /$current_page* $url]} { |
| 51 | lappend class active |
| 52 | set once 0 |
| 53 | } |
| 54 | html "<li class='$class'>" |
| 55 | if {[string match /* $url]} {set url $home$url} |
| 56 | if {[string match *sitemap* $url]} {set sitemap 1} |
| 57 | html "<a href='$url'>$name</a></li>\n" |
| 58 | } |
| 59 | if {!$sitemap} { |
| 60 | html "<li><a href='$home/sitemap'>...</a>\n" |
| 61 | } |
| 62 | </th1></ul> |
| 63 | </div><!--/.nav-collapse --> |
| 64 | </div> |
| 65 | </div> |
| 66 | <div class="content"> |
| 67 | <th1> |
| 68 | |
| 69 | DDED skins/darkmode/css.txt |
| 70 | DDED skins/darkmode/details.txt |
| 71 | DDED skins/darkmode/footer.txt |
| 72 | DDED skins/darkmode/header.txt |
+49
| --- a/skins/darkmode/css.txt | ||
| +++ b/skins/darkmode/css.txt | ||
| @@ -0,0 +1,49 @@ | ||
| 1 | +/* General settings for the entire page */ | |
| 2 | +body { | |
| 3 | + margin: 0ex 1ex; | |
| 4 | + padding: 0; | |
| 5 | + background-color: #1f1f1f; | |
| 6 | + color: #ffffffe0; | |
| 7 | + font-family: sans-serif; | |
| 8 | +} | |
| 9 | + | |
| 10 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 11 | +body { | |
| 12 | + margin: 0ex 1ex; | |
| 13 | + padding: 0; | |
| 14 | + background-color: #1f1f1f; | |
| 15 | + color: #ffffffe0; | |
| 16 | + font-family: sans-serif; | |
| 17 | +} | |
| 18 | + | |
| 19 | +/* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, | |
| 20 | +footernamainfooter General settings for the entire page */ | |
| 21 | +body { | |
| 22 | + margin: 0ex 1ex; | |
| 23 | + padding: 0; | |
| 24 | + background-color: #1f1f1f; | |
| 25 | + color: #ffffffe0; | |
| 26 | + font-family: sans-serif; | |
| 27 | +} | |
| 28 | + | |
| 29 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 30 | +body { | |
| 31 | + margin: 0ex 1ex; | |
| 32 | + padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, | |
| 33 | +divdidivdivre page */ | |
| 34 | +body { | |
| 35 | + margin: 0ex 1ex; | |
| 36 | + padding: 0; | |
| 37 | + background-color: #1f1f1f; | |
| 38 | + color: #ffffffe0; | |
| 39 | + font-family: sans-serif; | |
| 40 | +} | |
| 41 | + | |
| 42 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 43 | +body { | |
| 44 | + margin: 0ex 1ex; | |
| 45 | + padding: 0; | |
| 46 | + background-color: #1f1f1f; | |
| 47 | + color: #ffffffe0; | |
| 48 | + font-family: scolor: #333#888; | |
| 49 | + outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR; |
| --- a/skins/darkmode/css.txt | |
| +++ b/skins/darkmode/css.txt | |
| @@ -0,0 +1,49 @@ | |
| --- a/skins/darkmode/css.txt | |
| +++ b/skins/darkmode/css.txt | |
| @@ -0,0 +1,49 @@ | |
| 1 | /* General settings for the entire page */ |
| 2 | body { |
| 3 | margin: 0ex 1ex; |
| 4 | padding: 0; |
| 5 | background-color: #1f1f1f; |
| 6 | color: #ffffffe0; |
| 7 | font-family: sans-serif; |
| 8 | } |
| 9 | |
| 10 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 11 | body { |
| 12 | margin: 0ex 1ex; |
| 13 | padding: 0; |
| 14 | background-color: #1f1f1f; |
| 15 | color: #ffffffe0; |
| 16 | font-family: sans-serif; |
| 17 | } |
| 18 | |
| 19 | /* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, |
| 20 | footernamainfooter General settings for the entire page */ |
| 21 | body { |
| 22 | margin: 0ex 1ex; |
| 23 | padding: 0; |
| 24 | background-color: #1f1f1f; |
| 25 | color: #ffffffe0; |
| 26 | font-family: sans-serif; |
| 27 | } |
| 28 | |
| 29 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 30 | body { |
| 31 | margin: 0ex 1ex; |
| 32 | padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, |
| 33 | divdidivdivre page */ |
| 34 | body { |
| 35 | margin: 0ex 1ex; |
| 36 | padding: 0; |
| 37 | background-color: #1f1f1f; |
| 38 | color: #ffffffe0; |
| 39 | font-family: sans-serif; |
| 40 | } |
| 41 | |
| 42 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 43 | body { |
| 44 | margin: 0ex 1ex; |
| 45 | padding: 0; |
| 46 | background-color: #1f1f1f; |
| 47 | color: #ffffffe0; |
| 48 | font-family: scolor: #333#888; |
| 49 | outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR; |
| --- a/skins/darkmode/details.txt | ||
| +++ b/skins/darkmode/details.txt | ||
| @@ -0,0 +1,4 @@ | ||
| 1 | +timeline-arrowheads: 0 | |
| 2 | +timeline-circle-nodes: 1 | |
| 3 | +timeline-color-graph-lines: 1 | |
| 4 | +whi |
| --- a/skins/darkmode/details.txt | |
| +++ b/skins/darkmode/details.txt | |
| @@ -0,0 +1,4 @@ | |
| --- a/skins/darkmode/details.txt | |
| +++ b/skins/darkmode/details.txt | |
| @@ -0,0 +1,4 @@ | |
| 1 | timeline-arrowheads: 0 |
| 2 | timeline-circle-nodes: 1 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | whi |
| --- a/skins/darkmode/footer.txt | ||
| +++ b/skins/darkmode/footer.txt | ||
| @@ -0,0 +1,6 @@ | ||
| 1 | +<div class="footer"> | |
| 2 | + <div class="container"> | |
| 3 | + <div class="pull-right"> | |
| 4 | + <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> | |
| 5 | + </div> | |
| 6 | + This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000div> |
| --- a/skins/darkmode/footer.txt | |
| +++ b/skins/darkmode/footer.txt | |
| @@ -0,0 +1,6 @@ | |
| --- a/skins/darkmode/footer.txt | |
| +++ b/skins/darkmode/footer.txt | |
| @@ -0,0 +1,6 @@ | |
| 1 | <div class="footer"> |
| 2 | <div class="container"> |
| 3 | <div class="pull-right"> |
| 4 | <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a> |
| 5 | </div> |
| 6 | This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000div> |
| --- a/skins/darkmode/header.txt | ||
| +++ b/skins/darkmode/header.txt | ||
| @@ -0,0 +1,22 @@ | ||
| 1 | +<div class="header"> | |
| 2 | + <div class="status leftoftitle"><th1> | |
| 3 | + if {[info exists login]} { | |
| 4 | + set logintext "<a href='$home/login'>$login</a>\n" | |
| 5 | + } else { | |
| 6 | + set logintext "<a href='$home/login'>Login</a>\n" | |
| 7 | + } | |
| 8 | + html $logintext | |
| 9 | + </th1></div> | |
| 10 | + <div class="title">$<title></div> | |
| 11 | + <div clas="status"><nobr><th1> | |
| 12 | + html $logintediv> | |
| 13 | +<di</nobr></div> | |
| 14 | +</he> | |
| 15 | +<th1> | |
| 16 | +html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" | |
| 17 | +Site Map'>☰</a>" | |
| 18 | + buforeach {name urlif {![capexpr $expr]} continue | |
| 19 | + xpr $expr]} continue | |
| 20 | + if {[stif {[string match $url\[/?#\]*set class "acti/$current_page/* $urlhref='$url' c} | |
| 21 | +</th1* $url<nav id='hbdrdiv> | |
| 22 | +<div id='hbdrop'></div> |
| --- a/skins/darkmode/header.txt | |
| +++ b/skins/darkmode/header.txt | |
| @@ -0,0 +1,22 @@ | |
| --- a/skins/darkmode/header.txt | |
| +++ b/skins/darkmode/header.txt | |
| @@ -0,0 +1,22 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="status leftoftitle"><th1> |
| 3 | if {[info exists login]} { |
| 4 | set logintext "<a href='$home/login'>$login</a>\n" |
| 5 | } else { |
| 6 | set logintext "<a href='$home/login'>Login</a>\n" |
| 7 | } |
| 8 | html $logintext |
| 9 | </th1></div> |
| 10 | <div class="title">$<title></div> |
| 11 | <div clas="status"><nobr><th1> |
| 12 | html $logintediv> |
| 13 | <di</nobr></div> |
| 14 | </he> |
| 15 | <th1> |
| 16 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 17 | Site Map'>☰</a>" |
| 18 | buforeach {name urlif {![capexpr $expr]} continue |
| 19 | xpr $expr]} continue |
| 20 | if {[stif {[string match $url\[/?#\]*set class "acti/$current_page/* $urlhref='$url' c} |
| 21 | </th1* $url<nav id='hbdrdiv> |
| 22 | <div id='hbdrop'></div> |
+1
-10
| --- skins/default/css.txt | ||
| +++ skins/default/css.txt | ||
| @@ -61,11 +61,11 @@ | ||
| 61 | 61 | .mainmenu a.active, |
| 62 | 62 | .mainmenu a:hover { |
| 63 | 63 | color: #000; |
| 64 | 64 | border-bottom: 2px solid #D26911; |
| 65 | 65 | } |
| 66 | -.mainmenu div#hbdrop { | |
| 66 | +div#hbdrop { | |
| 67 | 67 | background-color: white; |
| 68 | 68 | border: 1px solid black; |
| 69 | 69 | border-top: white; |
| 70 | 70 | border-radius: 0 0 0.5em 0.5em; |
| 71 | 71 | display: none; |
| @@ -272,13 +272,10 @@ | ||
| 272 | 272 | padding: 10px 10px; |
| 273 | 273 | } |
| 274 | 274 | .mainmenu { |
| 275 | 275 | padding: 10px; |
| 276 | 276 | } |
| 277 | - .desktoponly { | |
| 278 | - display: none; | |
| 279 | - } | |
| 280 | 277 | } |
| 281 | 278 | @media screen and (min-width: 600px) { |
| 282 | 279 | /* Spacing for desktop */ |
| 283 | 280 | body { |
| 284 | 281 | padding-left: 20px; |
| @@ -294,11 +291,5 @@ | ||
| 294 | 291 | } |
| 295 | 292 | .mainmenu { |
| 296 | 293 | padding: 10px; |
| 297 | 294 | } |
| 298 | 295 | } |
| 299 | -@media screen and (max-width: 1200px) { | |
| 300 | - /* Special declarations for narrow desktop or wide mobile */ | |
| 301 | - .wideonly { | |
| 302 | - display: none; | |
| 303 | - } | |
| 304 | -} | |
| 305 | 296 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -61,11 +61,11 @@ | |
| 61 | .mainmenu a.active, |
| 62 | .mainmenu a:hover { |
| 63 | color: #000; |
| 64 | border-bottom: 2px solid #D26911; |
| 65 | } |
| 66 | .mainmenu div#hbdrop { |
| 67 | background-color: white; |
| 68 | border: 1px solid black; |
| 69 | border-top: white; |
| 70 | border-radius: 0 0 0.5em 0.5em; |
| 71 | display: none; |
| @@ -272,13 +272,10 @@ | |
| 272 | padding: 10px 10px; |
| 273 | } |
| 274 | .mainmenu { |
| 275 | padding: 10px; |
| 276 | } |
| 277 | .desktoponly { |
| 278 | display: none; |
| 279 | } |
| 280 | } |
| 281 | @media screen and (min-width: 600px) { |
| 282 | /* Spacing for desktop */ |
| 283 | body { |
| 284 | padding-left: 20px; |
| @@ -294,11 +291,5 @@ | |
| 294 | } |
| 295 | .mainmenu { |
| 296 | padding: 10px; |
| 297 | } |
| 298 | } |
| 299 | @media screen and (max-width: 1200px) { |
| 300 | /* Special declarations for narrow desktop or wide mobile */ |
| 301 | .wideonly { |
| 302 | display: none; |
| 303 | } |
| 304 | } |
| 305 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -61,11 +61,11 @@ | |
| 61 | .mainmenu a.active, |
| 62 | .mainmenu a:hover { |
| 63 | color: #000; |
| 64 | border-bottom: 2px solid #D26911; |
| 65 | } |
| 66 | div#hbdrop { |
| 67 | background-color: white; |
| 68 | border: 1px solid black; |
| 69 | border-top: white; |
| 70 | border-radius: 0 0 0.5em 0.5em; |
| 71 | display: none; |
| @@ -272,13 +272,10 @@ | |
| 272 | padding: 10px 10px; |
| 273 | } |
| 274 | .mainmenu { |
| 275 | padding: 10px; |
| 276 | } |
| 277 | } |
| 278 | @media screen and (min-width: 600px) { |
| 279 | /* Spacing for desktop */ |
| 280 | body { |
| 281 | padding-left: 20px; |
| @@ -294,11 +291,5 @@ | |
| 291 | } |
| 292 | .mainmenu { |
| 293 | padding: 10px; |
| 294 | } |
| 295 | } |
| 296 |
| --- skins/default/footer.txt | ||
| +++ skins/default/footer.txt | ||
| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <div class="footer"> |
| 2 | 2 | This page was generated in about |
| 3 | 3 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 4 | 4 | Fossil $release_version $manifest_version $manifest_date |
| 5 | 5 | </div> |
| 6 | -<script nonce="$nonce"> | |
| 7 | -<th1>styleScript</th1> | |
| 8 | -</script> | |
| 9 | 6 |
| --- skins/default/footer.txt | |
| +++ skins/default/footer.txt | |
| @@ -1,8 +1,5 @@ | |
| 1 | <div class="footer"> |
| 2 | This page was generated in about |
| 3 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 4 | Fossil $release_version $manifest_version $manifest_date |
| 5 | </div> |
| 6 | <script nonce="$nonce"> |
| 7 | <th1>styleScript</th1> |
| 8 | </script> |
| 9 |
| --- skins/default/footer.txt | |
| +++ skins/default/footer.txt | |
| @@ -1,8 +1,5 @@ | |
| 1 | <div class="footer"> |
| 2 | This page was generated in about |
| 3 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 4 | Fossil $release_version $manifest_version $manifest_date |
| 5 | </div> |
| 6 |
+11
-38
| --- skins/default/header.txt | ||
| +++ skins/default/header.txt | ||
| @@ -8,46 +8,19 @@ | ||
| 8 | 8 | } |
| 9 | 9 | </th1></div> |
| 10 | 10 | </div> |
| 11 | 11 | <div class="mainmenu"> |
| 12 | 12 | <th1> |
| 13 | -proc menulink {url name cls} { | |
| 14 | - upvar current_page current | |
| 15 | - upvar home home | |
| 16 | - if {[string range $url 0 [string length $current]] eq "/$current"} { | |
| 17 | - html "<a href='$home$url' class='active $cls'>$name</a>\n" | |
| 18 | - } else { | |
| 19 | - html "<a href='$home$url' class='$cls'>$name</a>\n" | |
| 20 | - } | |
| 21 | -} | |
| 22 | -html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" | |
| 23 | -menulink $index_page Home {} | |
| 24 | -if {[anycap jor]} { | |
| 25 | - menulink /timeline Timeline {} | |
| 26 | -} | |
| 27 | -if {[hascap oh]} { | |
| 28 | - if {![info exists current_checkin]} {set current_checkin tip} | |
| 29 | - menulink /dir?ci=$current_checkin Files desktoponly | |
| 30 | -} | |
| 31 | -if {[hascap o]} { | |
| 32 | - menulink /brlist Branches wideonly | |
| 33 | - menulink /taglist Tags wideonly | |
| 34 | -} | |
| 35 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 36 | - menulink /forum Forum desktoponly | |
| 37 | -} | |
| 38 | -if {[hascap C]} { | |
| 39 | - menulink /chat Chat wideonly | |
| 40 | -} | |
| 41 | -if {[hascap r]} { | |
| 42 | - menulink /ticket Tickets wideonly | |
| 43 | -} | |
| 44 | -if {[hascap j]} { | |
| 45 | - menulink /wiki Wiki wideonly | |
| 46 | -} | |
| 47 | -if {[hascap s]} { | |
| 48 | - menulink /setup Admin {} | |
| 49 | -} elseif {[hascap a]} { | |
| 50 | - menulink /setup_ulist Users {} | |
| 13 | +html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" | |
| 14 | +builtin_request_js hbmenu.js | |
| 15 | +foreach {name url expr class} $mainmenu { | |
| 16 | + if {![capexpr $expr]} continue | |
| 17 | + if {[string match /* $url]} { | |
| 18 | + if {[string match /$current_page* $url]} { | |
| 19 | + set class "active $class" | |
| 20 | + } | |
| 21 | + set url $home$url | |
| 22 | + } | |
| 23 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 51 | 24 | } |
| 52 | 25 | </th1></div> |
| 53 | 26 | <div id='hbdrop'></div> |
| 54 | 27 | |
| 55 | 28 | DELETED skins/default/js.txt |
| --- skins/default/header.txt | |
| +++ skins/default/header.txt | |
| @@ -8,46 +8,19 @@ | |
| 8 | } |
| 9 | </th1></div> |
| 10 | </div> |
| 11 | <div class="mainmenu"> |
| 12 | <th1> |
| 13 | proc menulink {url name cls} { |
| 14 | upvar current_page current |
| 15 | upvar home home |
| 16 | if {[string range $url 0 [string length $current]] eq "/$current"} { |
| 17 | html "<a href='$home$url' class='active $cls'>$name</a>\n" |
| 18 | } else { |
| 19 | html "<a href='$home$url' class='$cls'>$name</a>\n" |
| 20 | } |
| 21 | } |
| 22 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 23 | menulink $index_page Home {} |
| 24 | if {[anycap jor]} { |
| 25 | menulink /timeline Timeline {} |
| 26 | } |
| 27 | if {[hascap oh]} { |
| 28 | if {![info exists current_checkin]} {set current_checkin tip} |
| 29 | menulink /dir?ci=$current_checkin Files desktoponly |
| 30 | } |
| 31 | if {[hascap o]} { |
| 32 | menulink /brlist Branches wideonly |
| 33 | menulink /taglist Tags wideonly |
| 34 | } |
| 35 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 36 | menulink /forum Forum desktoponly |
| 37 | } |
| 38 | if {[hascap C]} { |
| 39 | menulink /chat Chat wideonly |
| 40 | } |
| 41 | if {[hascap r]} { |
| 42 | menulink /ticket Tickets wideonly |
| 43 | } |
| 44 | if {[hascap j]} { |
| 45 | menulink /wiki Wiki wideonly |
| 46 | } |
| 47 | if {[hascap s]} { |
| 48 | menulink /setup Admin {} |
| 49 | } elseif {[hascap a]} { |
| 50 | menulink /setup_ulist Users {} |
| 51 | } |
| 52 | </th1></div> |
| 53 | <div id='hbdrop'></div> |
| 54 | |
| 55 | ELETED skins/default/js.txt |
| --- skins/default/header.txt | |
| +++ skins/default/header.txt | |
| @@ -8,46 +8,19 @@ | |
| 8 | } |
| 9 | </th1></div> |
| 10 | </div> |
| 11 | <div class="mainmenu"> |
| 12 | <th1> |
| 13 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 14 | builtin_request_js hbmenu.js |
| 15 | foreach {name url expr class} $mainmenu { |
| 16 | if {![capexpr $expr]} continue |
| 17 | if {[string match /* $url]} { |
| 18 | if {[string match /$current_page* $url]} { |
| 19 | set class "active $class" |
| 20 | } |
| 21 | set url $home$url |
| 22 | } |
| 23 | html "<a href='$url' class='$class'>$name</a>\n" |
| 24 | } |
| 25 | </th1></div> |
| 26 | <div id='hbdrop'></div> |
| 27 | |
| 28 | ELETED skins/default/js.txt |
D
skins/default/js.txt
-228
| --- a/skins/default/js.txt | ||
| +++ b/skins/default/js.txt | ||
| @@ -1,228 +0,0 @@ | ||
| 1 | -/* | |
| 2 | -** Copyright © 2018 Warren Young | |
| 3 | -** | |
| 4 | -** This program is free software; you can redistribute it and/or | |
| 5 | -** modify it under the terms of the Simplified BSD License (also | |
| 6 | -** known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | -** | |
| 8 | -** This program is distributed in the hope that it will be useful, | |
| 9 | -** but without any warranty; without even the implied warranty of | |
| 10 | -** merchantability or fitness for a particular purpose. | |
| 11 | -** | |
| 12 | -** Contact: wyoung on the Fossil forum, https | |
| 13 | -******************************************************************************* | |
| 14 | -** | |
| 15 | -** Thisspecific to the Fossil default skin. | |
| 16 | -** Currently, the only thing this does is handle clicks on isition the hddrop container. | |
| 17 | -*/ | |
| 18 | -(function() { | |
| 19 | - var hbButton = document.getElementById("hbbtn"); | |
| 20 | - if (!hbButton) return; // no hamburger button | |
| 21 | - if (!document.addEventListener) return; // Incompatible browser | |
| 22 | - var panel = document.getElementById("hbdrop"); | |
| 23 | - if (!panel) return; // site admin might've nuked it | |
| 24 | - if (!panel.style) return; // shouldn't happen, but be sure | |
| 25 | - var panelBorder = panel.style.border; | |
| 26 | - var panelInitialized = false; // reset if browser window is resized | |
| 27 | - var panelResetBorderTimerID = 0; // used to cancel post-animation tasks | |
| 28 | - | |
| 29 | - // Disable animation if this browser doesn't support CSS transitions. | |
| 30 | - // | |
| 31 | - // We need this ugly calling form for old browsers that don't allow | |
| 32 | - // panel.style.hasOwnProperty('transition'); catering to old browsers | |
| 33 | - // is the whole point here. | |
| 34 | - var animate = panel.style.transition !== null && (typeof(panel.style.transition) == "string"); | |
| 35 | - | |
| 36 | - // The duration of the animation can be overridden from the default skin | |
| 37 | - // header.txt by setting the "data-anim-ms" attribute of the panel. | |
| 38 | - var animMS = panel.getAttribute("data-anim-ms"); | |
| 39 | - if (animMS) { // not null or empty string, parse it | |
| 40 | - animMS = parseInt(animMS); | |
| 41 | - if (isNaN(animMS) || animMS == 0) | |
| 42 | - animate = false; // disable animation if non-numeric or zero | |
| 43 | - else if (animMS < 0) | |
| 44 | - animMS = 400; // set default animation duration if negative | |
| 45 | - } | |
| 46 | - else // attribute is null or empty string, use default | |
| 47 | - animMS = 400; | |
| 48 | - | |
| 49 | - // Calculate panel height despite its being hidden at call time. | |
| 50 | - // Based on https://stackoverflow.com/a/29047447/142454 | |
| 51 | - var panelHeight; // computed on first panel display | |
| 52 | - function calculatePanelHeight() { | |
| 53 | - | |
| 54 | - // Clear the max-height CSS property in case the panel size is recalculated | |
| 55 | - // after the browser window was resized. | |
| 56 | - panel.style.maxHeight = ''; | |
| 57 | - | |
| 58 | - // Get initial panel styles so we can restore them below. | |
| 59 | - var es = window.getComputedStyle(panel), | |
| 60 | - edis = es.display, | |
| 61 | - epos = es.position, | |
| 62 | - evis = es.visibility; | |
| 63 | - | |
| 64 | - // Restyle the panel so we can measure its height while invisible. | |
| 65 | - panel.style.visibility = 'hidden'; | |
| 66 | - panel.style.position = 'absolute'; | |
| 67 | - panel.style.display = 'block'; | |
| 68 | - panelHeight = panel.offsetHeight + 'px'; | |
| 69 | - | |
| 70 | - // Revert styles now that job is done. | |
| 71 | - panel.style.display = edis; | |
| 72 | - panel.style.position = epos; | |
| 73 | - panel.style.visibility = evis; | |
| 74 | - } | |
| 75 | - | |
| 76 | - // Show the panel by changing the panel height, which kicks off the | |
| 77 | - // slide-open/closed transition set up in the XHR onload handler. | |
| 78 | - // | |
| 79 | - // Schedule the change for a near-future time in case this is the | |
| 80 | - // first call, where the div was initially invisible. If we were | |
| 81 | - // to change the panel's visibility and height at the same time | |
| 82 | - // instead, that would prevent the browser from seeing the height | |
| 83 | - // change as a state transition, so it'd skip the CSS transition: | |
| 84 | - // | |
| 85 | - // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples | |
| 86 | - function showPanel() { | |
| 87 | - // Cancel the timer to remove the panel border after the closing animation, | |
| 88 | - // otherwise double-clicking the hamburger button with the panel opened will | |
| 89 | - // remove the borders from the (closed and immediately reopened) panel. | |
| 90 | - if (panelResetBorderTimerID) { | |
| 91 | - clearTimeout(panelResetBorderTimerID); | |
| 92 | - panelResetBorderTimerID = 0; | |
| 93 | - } | |
| 94 | - if (animate) { | |
| 95 | - if (!panelInitialized) { | |
| 96 | - panelInitialized = true; | |
| 97 | - // Set up a CSS transition to animate the panel open and | |
| 98 | - // closed. Only needs to be done once per page load. | |
| 99 | - // Based on https://stackoverflow.com/a/29047447/142454 | |
| 100 | - calculatePanelHeight(); | |
| 101 | - panel.style.transition = 'max-height ' + animMS + | |
| 102 | - 'ms ease-in-out'; | |
| 103 | - panel.style.overflowY = 'hidden'; | |
| 104 | - panel.style.maxHeight = '0'; | |
| 105 | - } | |
| 106 | - setTimeout(function() { | |
| 107 | - panel.style.maxHeight = panelHeight; | |
| 108 | - panel.style.border = panelBorder; | |
| 109 | - }, 40); // 25ms is insufficient with Firefox 62 | |
| 110 | - } | |
| 111 | - panel.style.display = 'block'; | |
| 112 | - document.addEventListener('keydown',panelKeydown,/* useCapture == */true); | |
| 113 | - document.addEventListener('click',panelClick,false); | |
| 114 | - } | |
| 115 | - | |
| 116 | - var panelKeydown = function(event) { | |
| 117 | - var key = event.which || event.keyCode; | |
| 118 | - if (key == 27) { | |
| 119 | - event.stopPropagation(); // ignore other keydown handlers | |
| 120 | - panelToggle(true); | |
| 121 | - } | |
| 122 | - }; | |
| 123 | - | |
| 124 | - var panelClick = function(event) { | |
| 125 | - if (!panel.contains(event.target)) { | |
| 126 | - // Call event.preventDefault() to have clicks outside the opened panel | |
| 127 | - // just close the panel, and swallow clicks on links or form elements. | |
| 128 | - //event.preventDefault(); | |
| 129 | - panelToggle(true); | |
| 130 | - } | |
| 131 | - }; | |
| 132 | - | |
| 133 | - // Return true if the panel is showing. | |
| 134 | - function panelShowing() { | |
| 135 | - if (animate) { | |
| 136 | - return panel.style.maxHeight == panelHeight; | |
| 137 | - } | |
| 138 | - else { | |
| 139 | - return panel.style.display == 'block'; | |
| 140 | - } | |
| 141 | - } | |
| 142 | - | |
| 143 | - // Check if the specified HTML element has any child elements. Note that plain | |
| 144 | - // text nodes, comments, and any spaces (presentational or not) are ignored. | |
| 145 | - function hasChildren(element) { | |
| 146 | - var childElement = element.firstChild; | |
| 147 | - while (childElement) { | |
| 148 | - if (childElement.nodeType == 1) // Node.ELEMENT_NODE == 1 | |
| 149 | - return true; | |
| 150 | - childElement = childElement.nextSibling; | |
| 151 | - } | |
| 152 | - return false; | |
| 153 | - } | |
| 154 | - | |
| 155 | - // Reset the state of the panel to uninitialized if the browser window is | |
| 156 | - // resized, so the dimensions are recalculated the next time it's opened. | |
| 157 | - window.addEventListener('resize',function(event) { | |
| 158 | - panelInitialized = false; | |
| 159 | - },false); | |
| 160 | - | |
| 161 | - // Click handler for the hamburger button. | |
| 162 | - hbButton.addEventListener('click',function(event) { | |
| 163 | - // Break the event handler chain, or the handler for document → click | |
| 164 | - // (about to be installed) may already be triggered by the current event. | |
| 165 | - event.stopPropagation(); | |
| 166 | - event.preventDefault(); // prevent browser from acting on <a> click | |
| 167 | - panelToggle(false); | |
| 168 | - },false); | |
| 169 | - | |
| 170 | - function panelToggle(suppressAnimation) { | |
| 171 | - if (panelShowing()) { | |
| 172 | - document.removeEventListener('keydown',panelKeydown,/* useCapture == */true); | |
| 173 | - document.removeEventListener('click',panelClick,false); | |
| 174 | - // Transition back to hidden state. | |
| 175 | - if (animate) { | |
| 176 | - if (suppressAnimation) { | |
| 177 | - var transition = panel.style.transition; | |
| 178 | - panel.style.transition = ''; | |
| 179 | - panel.style.maxHeight = '0'; | |
| 180 | - panel.style.border = 'none'; | |
| 181 | - setTimeout(function() { | |
| 182 | - // Make sure CSS transition won't take effect now, so restore it | |
| 183 | - // asynchronously. Outer variable 'transition' still valid here. | |
| 184 | - panel.style.transition = transition; | |
| 185 | - }, 40); // 25ms is insufficient with Firefox 62 | |
| 186 | - } | |
| 187 | - else { | |
| 188 | - panel.style.maxHeight = '0'; | |
| 189 | - panelResetBorderTimerID = setTimeout(function() { | |
| 190 | - // Browsers show a 1px high border line when maxHeight == 0, | |
| 191 | - // our "hidden" state, so hide the borders in that state, too. | |
| 192 | - panel.style.border = 'none'; | |
| 193 | - panelResetBorderTimerID = 0; // clear ID of completed timer | |
| 194 | - }, animMS); | |
| 195 | - } | |
| 196 | - } | |
| 197 | - else { | |
| 198 | - panel.style.display = 'none'; | |
| 199 | - } | |
| 200 | - } | |
| 201 | - else { | |
| 202 | - if (!hasChildren(panel)) { | |
| 203 | - // Only get the sitemap once per page load: it isn't likely to | |
| 204 | - // change on us. | |
| 205 | - var xhr = new XMLHttpRequest(); | |
| 206 | - xhr.onload = function() { | |
| 207 | - var doc = xhr.responseXML; | |
| 208 | - if (doc) { | |
| 209 | - var sm = doc.querySelector("ul#sitemap"); | |
| 210 | - if (sm && xhr.status == 200) { | |
| 211 | - // Got sitemap. Insert it into the drop-down panel. | |
| 212 | - panel.innerHTML = sm.outerHTML; | |
| 213 | - // Display the panel | |
| 214 | - showPanel(); | |
| 215 | - } | |
| 216 | - } | |
| 217 | - // else, can't parse response as HTML or XML | |
| 218 | - } | |
| 219 | - xhr.open("GET xhr.open("GET", url); | |
| 220 | - xhr.responseType = "document"; | |
| 221 | - xhr.send(); | |
| 222 | - } | |
| 223 | - else { | |
| 224 | - showPanel(); // just show what we built abo{ | |
| 225 | - // Turn the button into ncompatible browser | |
| 226 | - var panel = document.getElementById("hbdrop"); | |
| 227 | - if (!panel) return; // site admin might've nuked it | |
| 228 | - if (!panel.style) return; // shouldn't happen, but b |
| --- a/skins/default/js.txt | |
| +++ b/skins/default/js.txt | |
| @@ -1,228 +0,0 @@ | |
| 1 | /* |
| 2 | ** Copyright © 2018 Warren Young |
| 3 | ** |
| 4 | ** This program is free software; you can redistribute it and/or |
| 5 | ** modify it under the terms of the Simplified BSD License (also |
| 6 | ** known as the "2-Clause License" or "FreeBSD License".) |
| 7 | ** |
| 8 | ** This program is distributed in the hope that it will be useful, |
| 9 | ** but without any warranty; without even the implied warranty of |
| 10 | ** merchantability or fitness for a particular purpose. |
| 11 | ** |
| 12 | ** Contact: wyoung on the Fossil forum, https |
| 13 | ******************************************************************************* |
| 14 | ** |
| 15 | ** Thisspecific to the Fossil default skin. |
| 16 | ** Currently, the only thing this does is handle clicks on isition the hddrop container. |
| 17 | */ |
| 18 | (function() { |
| 19 | var hbButton = document.getElementById("hbbtn"); |
| 20 | if (!hbButton) return; // no hamburger button |
| 21 | if (!document.addEventListener) return; // Incompatible browser |
| 22 | var panel = document.getElementById("hbdrop"); |
| 23 | if (!panel) return; // site admin might've nuked it |
| 24 | if (!panel.style) return; // shouldn't happen, but be sure |
| 25 | var panelBorder = panel.style.border; |
| 26 | var panelInitialized = false; // reset if browser window is resized |
| 27 | var panelResetBorderTimerID = 0; // used to cancel post-animation tasks |
| 28 | |
| 29 | // Disable animation if this browser doesn't support CSS transitions. |
| 30 | // |
| 31 | // We need this ugly calling form for old browsers that don't allow |
| 32 | // panel.style.hasOwnProperty('transition'); catering to old browsers |
| 33 | // is the whole point here. |
| 34 | var animate = panel.style.transition !== null && (typeof(panel.style.transition) == "string"); |
| 35 | |
| 36 | // The duration of the animation can be overridden from the default skin |
| 37 | // header.txt by setting the "data-anim-ms" attribute of the panel. |
| 38 | var animMS = panel.getAttribute("data-anim-ms"); |
| 39 | if (animMS) { // not null or empty string, parse it |
| 40 | animMS = parseInt(animMS); |
| 41 | if (isNaN(animMS) || animMS == 0) |
| 42 | animate = false; // disable animation if non-numeric or zero |
| 43 | else if (animMS < 0) |
| 44 | animMS = 400; // set default animation duration if negative |
| 45 | } |
| 46 | else // attribute is null or empty string, use default |
| 47 | animMS = 400; |
| 48 | |
| 49 | // Calculate panel height despite its being hidden at call time. |
| 50 | // Based on https://stackoverflow.com/a/29047447/142454 |
| 51 | var panelHeight; // computed on first panel display |
| 52 | function calculatePanelHeight() { |
| 53 | |
| 54 | // Clear the max-height CSS property in case the panel size is recalculated |
| 55 | // after the browser window was resized. |
| 56 | panel.style.maxHeight = ''; |
| 57 | |
| 58 | // Get initial panel styles so we can restore them below. |
| 59 | var es = window.getComputedStyle(panel), |
| 60 | edis = es.display, |
| 61 | epos = es.position, |
| 62 | evis = es.visibility; |
| 63 | |
| 64 | // Restyle the panel so we can measure its height while invisible. |
| 65 | panel.style.visibility = 'hidden'; |
| 66 | panel.style.position = 'absolute'; |
| 67 | panel.style.display = 'block'; |
| 68 | panelHeight = panel.offsetHeight + 'px'; |
| 69 | |
| 70 | // Revert styles now that job is done. |
| 71 | panel.style.display = edis; |
| 72 | panel.style.position = epos; |
| 73 | panel.style.visibility = evis; |
| 74 | } |
| 75 | |
| 76 | // Show the panel by changing the panel height, which kicks off the |
| 77 | // slide-open/closed transition set up in the XHR onload handler. |
| 78 | // |
| 79 | // Schedule the change for a near-future time in case this is the |
| 80 | // first call, where the div was initially invisible. If we were |
| 81 | // to change the panel's visibility and height at the same time |
| 82 | // instead, that would prevent the browser from seeing the height |
| 83 | // change as a state transition, so it'd skip the CSS transition: |
| 84 | // |
| 85 | // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples |
| 86 | function showPanel() { |
| 87 | // Cancel the timer to remove the panel border after the closing animation, |
| 88 | // otherwise double-clicking the hamburger button with the panel opened will |
| 89 | // remove the borders from the (closed and immediately reopened) panel. |
| 90 | if (panelResetBorderTimerID) { |
| 91 | clearTimeout(panelResetBorderTimerID); |
| 92 | panelResetBorderTimerID = 0; |
| 93 | } |
| 94 | if (animate) { |
| 95 | if (!panelInitialized) { |
| 96 | panelInitialized = true; |
| 97 | // Set up a CSS transition to animate the panel open and |
| 98 | // closed. Only needs to be done once per page load. |
| 99 | // Based on https://stackoverflow.com/a/29047447/142454 |
| 100 | calculatePanelHeight(); |
| 101 | panel.style.transition = 'max-height ' + animMS + |
| 102 | 'ms ease-in-out'; |
| 103 | panel.style.overflowY = 'hidden'; |
| 104 | panel.style.maxHeight = '0'; |
| 105 | } |
| 106 | setTimeout(function() { |
| 107 | panel.style.maxHeight = panelHeight; |
| 108 | panel.style.border = panelBorder; |
| 109 | }, 40); // 25ms is insufficient with Firefox 62 |
| 110 | } |
| 111 | panel.style.display = 'block'; |
| 112 | document.addEventListener('keydown',panelKeydown,/* useCapture == */true); |
| 113 | document.addEventListener('click',panelClick,false); |
| 114 | } |
| 115 | |
| 116 | var panelKeydown = function(event) { |
| 117 | var key = event.which || event.keyCode; |
| 118 | if (key == 27) { |
| 119 | event.stopPropagation(); // ignore other keydown handlers |
| 120 | panelToggle(true); |
| 121 | } |
| 122 | }; |
| 123 | |
| 124 | var panelClick = function(event) { |
| 125 | if (!panel.contains(event.target)) { |
| 126 | // Call event.preventDefault() to have clicks outside the opened panel |
| 127 | // just close the panel, and swallow clicks on links or form elements. |
| 128 | //event.preventDefault(); |
| 129 | panelToggle(true); |
| 130 | } |
| 131 | }; |
| 132 | |
| 133 | // Return true if the panel is showing. |
| 134 | function panelShowing() { |
| 135 | if (animate) { |
| 136 | return panel.style.maxHeight == panelHeight; |
| 137 | } |
| 138 | else { |
| 139 | return panel.style.display == 'block'; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | // Check if the specified HTML element has any child elements. Note that plain |
| 144 | // text nodes, comments, and any spaces (presentational or not) are ignored. |
| 145 | function hasChildren(element) { |
| 146 | var childElement = element.firstChild; |
| 147 | while (childElement) { |
| 148 | if (childElement.nodeType == 1) // Node.ELEMENT_NODE == 1 |
| 149 | return true; |
| 150 | childElement = childElement.nextSibling; |
| 151 | } |
| 152 | return false; |
| 153 | } |
| 154 | |
| 155 | // Reset the state of the panel to uninitialized if the browser window is |
| 156 | // resized, so the dimensions are recalculated the next time it's opened. |
| 157 | window.addEventListener('resize',function(event) { |
| 158 | panelInitialized = false; |
| 159 | },false); |
| 160 | |
| 161 | // Click handler for the hamburger button. |
| 162 | hbButton.addEventListener('click',function(event) { |
| 163 | // Break the event handler chain, or the handler for document → click |
| 164 | // (about to be installed) may already be triggered by the current event. |
| 165 | event.stopPropagation(); |
| 166 | event.preventDefault(); // prevent browser from acting on <a> click |
| 167 | panelToggle(false); |
| 168 | },false); |
| 169 | |
| 170 | function panelToggle(suppressAnimation) { |
| 171 | if (panelShowing()) { |
| 172 | document.removeEventListener('keydown',panelKeydown,/* useCapture == */true); |
| 173 | document.removeEventListener('click',panelClick,false); |
| 174 | // Transition back to hidden state. |
| 175 | if (animate) { |
| 176 | if (suppressAnimation) { |
| 177 | var transition = panel.style.transition; |
| 178 | panel.style.transition = ''; |
| 179 | panel.style.maxHeight = '0'; |
| 180 | panel.style.border = 'none'; |
| 181 | setTimeout(function() { |
| 182 | // Make sure CSS transition won't take effect now, so restore it |
| 183 | // asynchronously. Outer variable 'transition' still valid here. |
| 184 | panel.style.transition = transition; |
| 185 | }, 40); // 25ms is insufficient with Firefox 62 |
| 186 | } |
| 187 | else { |
| 188 | panel.style.maxHeight = '0'; |
| 189 | panelResetBorderTimerID = setTimeout(function() { |
| 190 | // Browsers show a 1px high border line when maxHeight == 0, |
| 191 | // our "hidden" state, so hide the borders in that state, too. |
| 192 | panel.style.border = 'none'; |
| 193 | panelResetBorderTimerID = 0; // clear ID of completed timer |
| 194 | }, animMS); |
| 195 | } |
| 196 | } |
| 197 | else { |
| 198 | panel.style.display = 'none'; |
| 199 | } |
| 200 | } |
| 201 | else { |
| 202 | if (!hasChildren(panel)) { |
| 203 | // Only get the sitemap once per page load: it isn't likely to |
| 204 | // change on us. |
| 205 | var xhr = new XMLHttpRequest(); |
| 206 | xhr.onload = function() { |
| 207 | var doc = xhr.responseXML; |
| 208 | if (doc) { |
| 209 | var sm = doc.querySelector("ul#sitemap"); |
| 210 | if (sm && xhr.status == 200) { |
| 211 | // Got sitemap. Insert it into the drop-down panel. |
| 212 | panel.innerHTML = sm.outerHTML; |
| 213 | // Display the panel |
| 214 | showPanel(); |
| 215 | } |
| 216 | } |
| 217 | // else, can't parse response as HTML or XML |
| 218 | } |
| 219 | xhr.open("GET xhr.open("GET", url); |
| 220 | xhr.responseType = "document"; |
| 221 | xhr.send(); |
| 222 | } |
| 223 | else { |
| 224 | showPanel(); // just show what we built abo{ |
| 225 | // Turn the button into ncompatible browser |
| 226 | var panel = document.getElementById("hbdrop"); |
| 227 | if (!panel) return; // site admin might've nuked it |
| 228 | if (!panel.style) return; // shouldn't happen, but b |
| --- a/skins/default/js.txt | |
| +++ b/skins/default/js.txt | |
| @@ -1,228 +0,0 @@ | |
+13
-5
| --- skins/eagle/css.txt | ||
| +++ skins/eagle/css.txt | ||
| @@ -3,24 +3,21 @@ | ||
| 3 | 3 | margin: 0ex 1ex; |
| 4 | 4 | padding: 0px; |
| 5 | 5 | background-color: #485D7B; |
| 6 | 6 | font-family: sans-serif; |
| 7 | 7 | color: white; |
| 8 | - -moz-text-size-adjust: none; | |
| 9 | - -webkit-text-size-adjust: none; | |
| 10 | - -mx-text-size-adjust: none; | |
| 11 | 8 | } |
| 12 | 9 | |
| 13 | 10 | /* The project logo in the upper left-hand corner of each page */ |
| 14 | 11 | div.logo { |
| 15 | 12 | display: table-cell; |
| 16 | 13 | text-align: center; |
| 17 | 14 | vertical-align: bottom; |
| 18 | 15 | font-weight: bold; |
| 19 | 16 | color: white; |
| 17 | + min-width: 50px; | |
| 20 | 18 | padding: 5 0 5 0em; |
| 21 | - min-width: 200px; | |
| 22 | 19 | white-space: nowrap; |
| 23 | 20 | } |
| 24 | 21 | |
| 25 | 22 | /* The page title centered at the top of each page */ |
| 26 | 23 | div.title { |
| @@ -40,11 +37,10 @@ | ||
| 40 | 37 | text-align: right; |
| 41 | 38 | vertical-align: bottom; |
| 42 | 39 | color: white; |
| 43 | 40 | font-size: 0.8em; |
| 44 | 41 | font-weight: bold; |
| 45 | - min-width: 200px; | |
| 46 | 42 | white-space: nowrap; |
| 47 | 43 | } |
| 48 | 44 | |
| 49 | 45 | /* The header across the top of the page */ |
| 50 | 46 | div.header { |
| @@ -63,10 +59,22 @@ | ||
| 63 | 59 | background-color: #76869D; |
| 64 | 60 | border-top-left-radius: 8px; |
| 65 | 61 | border-top-right-radius: 8px; |
| 66 | 62 | color: white; |
| 67 | 63 | } |
| 64 | + | |
| 65 | +div#hbdrop { | |
| 66 | + background-color: #485D7B; | |
| 67 | + border-radius: 0 0 15px 15px; | |
| 68 | + border-left: 0.5em solid #76869d; | |
| 69 | + border-bottom: 1.2em solid #76869d; | |
| 70 | + display: none; | |
| 71 | + width: 98%; | |
| 72 | + position: absolute; | |
| 73 | + z-index: 20; | |
| 74 | +} | |
| 75 | + | |
| 68 | 76 | |
| 69 | 77 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 70 | 78 | div.submenu, div.sectionmenu { |
| 71 | 79 | padding: 3px 10px 3px 0px; |
| 72 | 80 | font-size: 0.9em; |
| 73 | 81 |
| --- skins/eagle/css.txt | |
| +++ skins/eagle/css.txt | |
| @@ -3,24 +3,21 @@ | |
| 3 | margin: 0ex 1ex; |
| 4 | padding: 0px; |
| 5 | background-color: #485D7B; |
| 6 | font-family: sans-serif; |
| 7 | color: white; |
| 8 | -moz-text-size-adjust: none; |
| 9 | -webkit-text-size-adjust: none; |
| 10 | -mx-text-size-adjust: none; |
| 11 | } |
| 12 | |
| 13 | /* The project logo in the upper left-hand corner of each page */ |
| 14 | div.logo { |
| 15 | display: table-cell; |
| 16 | text-align: center; |
| 17 | vertical-align: bottom; |
| 18 | font-weight: bold; |
| 19 | color: white; |
| 20 | padding: 5 0 5 0em; |
| 21 | min-width: 200px; |
| 22 | white-space: nowrap; |
| 23 | } |
| 24 | |
| 25 | /* The page title centered at the top of each page */ |
| 26 | div.title { |
| @@ -40,11 +37,10 @@ | |
| 40 | text-align: right; |
| 41 | vertical-align: bottom; |
| 42 | color: white; |
| 43 | font-size: 0.8em; |
| 44 | font-weight: bold; |
| 45 | min-width: 200px; |
| 46 | white-space: nowrap; |
| 47 | } |
| 48 | |
| 49 | /* The header across the top of the page */ |
| 50 | div.header { |
| @@ -63,10 +59,22 @@ | |
| 63 | background-color: #76869D; |
| 64 | border-top-left-radius: 8px; |
| 65 | border-top-right-radius: 8px; |
| 66 | color: white; |
| 67 | } |
| 68 | |
| 69 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 70 | div.submenu, div.sectionmenu { |
| 71 | padding: 3px 10px 3px 0px; |
| 72 | font-size: 0.9em; |
| 73 |
| --- skins/eagle/css.txt | |
| +++ skins/eagle/css.txt | |
| @@ -3,24 +3,21 @@ | |
| 3 | margin: 0ex 1ex; |
| 4 | padding: 0px; |
| 5 | background-color: #485D7B; |
| 6 | font-family: sans-serif; |
| 7 | color: white; |
| 8 | } |
| 9 | |
| 10 | /* The project logo in the upper left-hand corner of each page */ |
| 11 | div.logo { |
| 12 | display: table-cell; |
| 13 | text-align: center; |
| 14 | vertical-align: bottom; |
| 15 | font-weight: bold; |
| 16 | color: white; |
| 17 | min-width: 50px; |
| 18 | padding: 5 0 5 0em; |
| 19 | white-space: nowrap; |
| 20 | } |
| 21 | |
| 22 | /* The page title centered at the top of each page */ |
| 23 | div.title { |
| @@ -40,11 +37,10 @@ | |
| 37 | text-align: right; |
| 38 | vertical-align: bottom; |
| 39 | color: white; |
| 40 | font-size: 0.8em; |
| 41 | font-weight: bold; |
| 42 | white-space: nowrap; |
| 43 | } |
| 44 | |
| 45 | /* The header across the top of the page */ |
| 46 | div.header { |
| @@ -63,10 +59,22 @@ | |
| 59 | background-color: #76869D; |
| 60 | border-top-left-radius: 8px; |
| 61 | border-top-right-radius: 8px; |
| 62 | color: white; |
| 63 | } |
| 64 | |
| 65 | div#hbdrop { |
| 66 | background-color: #485D7B; |
| 67 | border-radius: 0 0 15px 15px; |
| 68 | border-left: 0.5em solid #76869d; |
| 69 | border-bottom: 1.2em solid #76869d; |
| 70 | display: none; |
| 71 | width: 98%; |
| 72 | position: absolute; |
| 73 | z-index: 20; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 78 | div.submenu, div.sectionmenu { |
| 79 | padding: 3px 10px 3px 0px; |
| 80 | font-size: 0.9em; |
| 81 |
| --- skins/eagle/details.txt | ||
| +++ skins/eagle/details.txt | ||
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | timeline-arrowheads: 1 |
| 2 | 2 | timeline-circle-nodes: 0 |
| 3 | 3 | timeline-color-graph-lines: 0 |
| 4 | 4 | white-foreground: 1 |
| 5 | +pikchr-background: 0x485d7b | |
| 5 | 6 |
| --- skins/eagle/details.txt | |
| +++ skins/eagle/details.txt | |
| @@ -1,4 +1,5 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 0 |
| 4 | white-foreground: 1 |
| 5 |
| --- skins/eagle/details.txt | |
| +++ skins/eagle/details.txt | |
| @@ -1,4 +1,5 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 0 |
| 4 | white-foreground: 1 |
| 5 | pikchr-background: 0x485d7b |
| 6 |
+10
-34
| --- skins/eagle/header.txt | ||
| +++ skins/eagle/header.txt | ||
| @@ -89,44 +89,20 @@ | ||
| 89 | 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | updateClock(); |
| 93 | 93 | </script> |
| 94 | -<div class="mainmenu"> | |
| 95 | -<th1> | |
| 96 | -proc menulink {url name} { | |
| 97 | - upvar home home | |
| 98 | - html "<a href='$home$url'>$name</a>\n" | |
| 99 | -} | |
| 100 | -menulink $index_page Home | |
| 101 | -menulink /help Help | |
| 102 | -if {[anycap jor]} { | |
| 103 | - menulink /timeline Timeline | |
| 104 | -} | |
| 105 | -if {[anoncap oh]} { | |
| 106 | - menulink /dir?ci=tip Files | |
| 107 | -} | |
| 108 | -if {[anoncap o]} { | |
| 109 | - menulink /brlist Branches | |
| 110 | - menulink /taglist Tags | |
| 111 | -} | |
| 112 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 113 | - menulink /forum Forum | |
| 114 | -} | |
| 115 | -if {[anoncap r]} { | |
| 116 | - menulink /ticket Tickets | |
| 117 | -} | |
| 118 | -if {[anoncap j]} { | |
| 119 | - menulink /wiki Wiki | |
| 120 | -} | |
| 121 | -menulink /sitemap More... | |
| 122 | -if {[hascap s]} { | |
| 123 | - menulink /setup Admin | |
| 124 | -} elseif {[hascap a]} { | |
| 125 | - menulink /setup_ulist Users | |
| 94 | +<div class="mainmenu"><th1> | |
| 95 | +html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>\n" | |
| 96 | +builtin_request_js hbmenu.js | |
| 97 | +foreach {name url expr class} $mainmenu { | |
| 98 | + if {![capexpr $expr]} continue | |
| 99 | + if {[string match /* $url]} {set url $home$url} | |
| 100 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 126 | 101 | } |
| 127 | 102 | if {[info exists login]} { |
| 128 | - menulink /login Logout | |
| 103 | + html "<a href='$home/logout' class='desktoponly'>Logout</a>\n" | |
| 129 | 104 | } else { |
| 130 | - menulink /login Login | |
| 105 | + html "<a href='$home/login' class='desktoponly'>Login</a>\n" | |
| 131 | 106 | } |
| 132 | 107 | </th1></div> |
| 108 | +<div id="hbdrop"></div> | |
| 133 | 109 | |
| 134 | 110 | DELETED skins/enhanced1/css.txt |
| 135 | 111 | DELETED skins/enhanced1/details.txt |
| 136 | 112 | DELETED skins/enhanced1/footer.txt |
| 137 | 113 | DELETED skins/enhanced1/header.txt |
| --- skins/eagle/header.txt | |
| +++ skins/eagle/header.txt | |
| @@ -89,44 +89,20 @@ | |
| 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | } |
| 91 | } |
| 92 | updateClock(); |
| 93 | </script> |
| 94 | <div class="mainmenu"> |
| 95 | <th1> |
| 96 | proc menulink {url name} { |
| 97 | upvar home home |
| 98 | html "<a href='$home$url'>$name</a>\n" |
| 99 | } |
| 100 | menulink $index_page Home |
| 101 | menulink /help Help |
| 102 | if {[anycap jor]} { |
| 103 | menulink /timeline Timeline |
| 104 | } |
| 105 | if {[anoncap oh]} { |
| 106 | menulink /dir?ci=tip Files |
| 107 | } |
| 108 | if {[anoncap o]} { |
| 109 | menulink /brlist Branches |
| 110 | menulink /taglist Tags |
| 111 | } |
| 112 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 113 | menulink /forum Forum |
| 114 | } |
| 115 | if {[anoncap r]} { |
| 116 | menulink /ticket Tickets |
| 117 | } |
| 118 | if {[anoncap j]} { |
| 119 | menulink /wiki Wiki |
| 120 | } |
| 121 | menulink /sitemap More... |
| 122 | if {[hascap s]} { |
| 123 | menulink /setup Admin |
| 124 | } elseif {[hascap a]} { |
| 125 | menulink /setup_ulist Users |
| 126 | } |
| 127 | if {[info exists login]} { |
| 128 | menulink /login Logout |
| 129 | } else { |
| 130 | menulink /login Login |
| 131 | } |
| 132 | </th1></div> |
| 133 | |
| 134 | ELETED skins/enhanced1/css.txt |
| 135 | ELETED skins/enhanced1/details.txt |
| 136 | ELETED skins/enhanced1/footer.txt |
| 137 | ELETED skins/enhanced1/header.txt |
| --- skins/eagle/header.txt | |
| +++ skins/eagle/header.txt | |
| @@ -89,44 +89,20 @@ | |
| 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | } |
| 91 | } |
| 92 | updateClock(); |
| 93 | </script> |
| 94 | <div class="mainmenu"><th1> |
| 95 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>\n" |
| 96 | builtin_request_js hbmenu.js |
| 97 | foreach {name url expr class} $mainmenu { |
| 98 | if {![capexpr $expr]} continue |
| 99 | if {[string match /* $url]} {set url $home$url} |
| 100 | html "<a href='$url' class='$class'>$name</a>\n" |
| 101 | } |
| 102 | if {[info exists login]} { |
| 103 | html "<a href='$home/logout' class='desktoponly'>Logout</a>\n" |
| 104 | } else { |
| 105 | html "<a href='$home/login' class='desktoponly'>Login</a>\n" |
| 106 | } |
| 107 | </th1></div> |
| 108 | <div id="hbdrop"></div> |
| 109 | |
| 110 | ELETED skins/enhanced1/css.txt |
| 111 | ELETED skins/enhanced1/details.txt |
| 112 | ELETED skins/enhanced1/footer.txt |
| 113 | ELETED skins/enhanced1/header.txt |
D
skins/enhanced1/css.txt
-71
| --- a/skins/enhanced1/css.txt | ||
| +++ b/skins/enhanced1/css.txt | ||
| @@ -1,71 +0,0 @@ | ||
| 1 | -/* General settings for the entire page */ | |
| 2 | -body { | |
| 3 | - margin: 0ex 1ex; | |
| 4 | - padding: 0px; | |
| 5 | - background-color: white; | |
| 6 | - font-family: sans-serif; | |
| 7 | - -moz-text-size-adjust: none; | |
| 8 | - -webkit-text-size-adjust: none; | |
| 9 | - -mx-text-size-adjust: none; | |
| 10 | -} | |
| 11 | - | |
| 12 | -/* The project logo in the upper left-hand corner of each page */ | |
| 13 | -div.logo { | |
| 14 | - display: table-cell; | |
| 15 | - text-align: center; | |
| 16 | - vertical-align: bottom; | |
| 17 | - font-weight: bold; | |
| 18 | - co20or: #558195; | |
| 19 | - min-width: 50px; | |
| 20 | - white-space: nowrap; | |
| 21 | -} | |
| 22 | - | |
| 23 | -/* The page title centered at the top of each page */ | |
| 24 | -div.title { | |
| 25 | - display: table-cell; | |
| 26 | - font-size: 2em; | |
| 27 | - font-weight: bold; | |
| 28 | - text-align: center; | |
| 29 | - padding: 0 0 0 1em; | |
| 30 | - color: #558195; | |
| 31 | - vertical-align: bottom; | |
| 32 | - width: 100%; | |
| 33 | -} | |
| 34 | - | |
| 35 | -/* The login status message in the top right-hand corner */ | |
| 36 | -div.status { | |
| 37 | - display: table-cell; | |
| 38 | - text-align: right; | |
| 39 | - vertical-align: bottom; | |
| 40 | - color: #558195; | |
| 41 | - font-size: 0.8min-width: 20or: #558195e-space: nowrap; | |
| 42 | -} | |
| 43 | - | |
| 44 | -/* The header across the top of the page */ | |
| 45 | -div.header { | |
| 46 | - display: table; | |
| 47 | - width: 100%; | |
| 48 | -} | |
| 49 | - | |
| 50 | -/* The main menu bar that appears at the top of the page beneath | |
| 51 | -** the header */ | |
| 52 | -diisplay: table; | |
| 53 | - winmenu { | |
| 54 | - padding: 5px; | |
| 55 | - font-size: 0.9em; | |
| 56 | - font-weight: bold; | |
| 57 | - text-align: center; | |
| 58 | - letter-spacing: 1px; | |
| 59 | - background-color: #558195; | |
| 60 | - border-top-left-radius: 8px; | |
| 61 | - border-top-right-radius: 8px; | |
| 62 | - color: white; | |
| 63 | -} | |
| 64 | - | |
| 65 | -/* The submenu bar that *sometimes* appedis below the main menu */ | |
| 66 | -div.submenu, div.sectionmenu { | |
| 67 | - padding: 3px 10px 3px 0px; | |
| 68 | - font-size: 0.9em; | |
| 69 | - text-align: center; | |
| 70 | - background-color: div.mainmenu a, div.mainmenu alig.olor: #558195;.581didi entire page */ | |
| 71 | -body/*didivdiv-spa |
| --- a/skins/enhanced1/css.txt | |
| +++ b/skins/enhanced1/css.txt | |
| @@ -1,71 +0,0 @@ | |
| 1 | /* General settings for the entire page */ |
| 2 | body { |
| 3 | margin: 0ex 1ex; |
| 4 | padding: 0px; |
| 5 | background-color: white; |
| 6 | font-family: sans-serif; |
| 7 | -moz-text-size-adjust: none; |
| 8 | -webkit-text-size-adjust: none; |
| 9 | -mx-text-size-adjust: none; |
| 10 | } |
| 11 | |
| 12 | /* The project logo in the upper left-hand corner of each page */ |
| 13 | div.logo { |
| 14 | display: table-cell; |
| 15 | text-align: center; |
| 16 | vertical-align: bottom; |
| 17 | font-weight: bold; |
| 18 | co20or: #558195; |
| 19 | min-width: 50px; |
| 20 | white-space: nowrap; |
| 21 | } |
| 22 | |
| 23 | /* The page title centered at the top of each page */ |
| 24 | div.title { |
| 25 | display: table-cell; |
| 26 | font-size: 2em; |
| 27 | font-weight: bold; |
| 28 | text-align: center; |
| 29 | padding: 0 0 0 1em; |
| 30 | color: #558195; |
| 31 | vertical-align: bottom; |
| 32 | width: 100%; |
| 33 | } |
| 34 | |
| 35 | /* The login status message in the top right-hand corner */ |
| 36 | div.status { |
| 37 | display: table-cell; |
| 38 | text-align: right; |
| 39 | vertical-align: bottom; |
| 40 | color: #558195; |
| 41 | font-size: 0.8min-width: 20or: #558195e-space: nowrap; |
| 42 | } |
| 43 | |
| 44 | /* The header across the top of the page */ |
| 45 | div.header { |
| 46 | display: table; |
| 47 | width: 100%; |
| 48 | } |
| 49 | |
| 50 | /* The main menu bar that appears at the top of the page beneath |
| 51 | ** the header */ |
| 52 | diisplay: table; |
| 53 | winmenu { |
| 54 | padding: 5px; |
| 55 | font-size: 0.9em; |
| 56 | font-weight: bold; |
| 57 | text-align: center; |
| 58 | letter-spacing: 1px; |
| 59 | background-color: #558195; |
| 60 | border-top-left-radius: 8px; |
| 61 | border-top-right-radius: 8px; |
| 62 | color: white; |
| 63 | } |
| 64 | |
| 65 | /* The submenu bar that *sometimes* appedis below the main menu */ |
| 66 | div.submenu, div.sectionmenu { |
| 67 | padding: 3px 10px 3px 0px; |
| 68 | font-size: 0.9em; |
| 69 | text-align: center; |
| 70 | background-color: div.mainmenu a, div.mainmenu alig.olor: #558195;.581didi entire page */ |
| 71 | body/*didivdiv-spa |
| --- a/skins/enhanced1/css.txt | |
| +++ b/skins/enhanced1/css.txt | |
| @@ -1,71 +0,0 @@ | |
D
skins/enhanced1/details.txt
-3
| --- a/skins/enhanced1/details.txt | ||
| +++ b/skins/enhanced1/details.txt | ||
| @@ -1,3 +0,0 @@ | ||
| 1 | -timeline-arrowheads: 1 | |
| 2 | -timeline-circle-nodes: 0 | |
| 3 | -timeline-color-graph-lines: 0 |
| --- a/skins/enhanced1/details.txt | |
| +++ b/skins/enhanced1/details.txt | |
| @@ -1,3 +0,0 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 0 |
| --- a/skins/enhanced1/details.txt | |
| +++ b/skins/enhanced1/details.txt | |
| @@ -1,3 +0,0 @@ | |
D
skins/enhanced1/footer.txt
-24
| --- a/skins/enhanced1/footer.txt | ||
| +++ b/skins/enhanced1/footer.txt | ||
| @@ -1,24 +0,0 @@ | ||
| 1 | -<div class="footer"> | |
| 2 | - <th1> | |
| 3 | - proc getTclVersion {} { | |
| 4 | - if {[catch {tclEval info patchlevel} tclVersion] == 0} { | |
| 5 | - return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion" | |
| 6 | - } | |
| 7 | - return "" | |
| 8 | - } | |
| 9 | - proc getVersion { version } { | |
| 10 | - set length [string length $version] | |
| 11 | - return [string range $version 1 [expr {$length - 2}]] | |
| 12 | - } | |
| 13 | - set version [getVersion $manifest_version] | |
| 14 | - set tclVersion [getTclVersiowww.n] | |
| 15 | - set fossilUrl https://fossil-scm.org | |
| 16 | - set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end] | |
| 17 | - </th1> | |
| 18 | - This page was generated in about | |
| 19 | - <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by | |
| 20 | - <a href="$fossilUrl/">Fossil</a> | |
| 21 | - version $release_version $tclVersion | |
| 22 | - <a href="$fossilUrl/index.html/info/$version">$manifest_version</a> | |
| 23 | - <a href="$fossilUrl/index.html/timeline?c=$fossilDate&div> | |
| 24 | -</body></html> |
| --- a/skins/enhanced1/footer.txt | |
| +++ b/skins/enhanced1/footer.txt | |
| @@ -1,24 +0,0 @@ | |
| 1 | <div class="footer"> |
| 2 | <th1> |
| 3 | proc getTclVersion {} { |
| 4 | if {[catch {tclEval info patchlevel} tclVersion] == 0} { |
| 5 | return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion" |
| 6 | } |
| 7 | return "" |
| 8 | } |
| 9 | proc getVersion { version } { |
| 10 | set length [string length $version] |
| 11 | return [string range $version 1 [expr {$length - 2}]] |
| 12 | } |
| 13 | set version [getVersion $manifest_version] |
| 14 | set tclVersion [getTclVersiowww.n] |
| 15 | set fossilUrl https://fossil-scm.org |
| 16 | set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end] |
| 17 | </th1> |
| 18 | This page was generated in about |
| 19 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 20 | <a href="$fossilUrl/">Fossil</a> |
| 21 | version $release_version $tclVersion |
| 22 | <a href="$fossilUrl/index.html/info/$version">$manifest_version</a> |
| 23 | <a href="$fossilUrl/index.html/timeline?c=$fossilDate&div> |
| 24 | </body></html> |
| --- a/skins/enhanced1/footer.txt | |
| +++ b/skins/enhanced1/footer.txt | |
| @@ -1,24 +0,0 @@ | |
D
skins/enhanced1/header.txt
-68
| --- a/skins/enhanced1/header.txt | ||
| +++ b/skins/enhanced1/header.txt | ||
| @@ -1,68 +0,0 @@ | ||
| 1 | -<div class="header"> | |
| 2 | - <div class="logo"> | |
| 3 | - <th1> | |
| 4 | - ## | |
| 5 | - ## NOTE: The purpose of this procedure is to take the base URL of the | |
| 6 | - ## Fossil project and return the root of the entire web site using | |
| 7 | - ## the same URI scheme as the base URL (e.g. http or https). | |
| 8 | - ## | |
| 9 | - proc getLogoUrl { baseurl } { | |
| 10 | - set idx(first) [string first // $baseurl] | |
| 11 | - if {$idx(first) != -1} { | |
| 12 | - ## | |
| 13 | - ## NOTE: Skip second slash. | |
| 14 | - ## | |
| 15 | - set idx(first+1) [expr {$idx(first) + 2}] | |
| 16 | - ## | |
| 17 | - ## NOTE: (part 1) The [string first] command does NOT actually | |
| 18 | - ## support the optional startIndex argument as specified | |
| 19 | - ## in the TH1 support manual; therefore, we fake it by | |
| 20 | - ## using the [string range] command and then adding the | |
| 21 | - ## necessary offset to the resulting index manually | |
| 22 | - ## (below). In Tcl, we could use the following instead: | |
| 23 | - ## | |
| 24 | - ## set idx(next) [string first / $baseurl $idx(first+1)] | |
| 25 | - ## | |
| 26 | - set idx(nextRange) [string range $baseurl $idx(first+1) end] | |
| 27 | - set idx(next) [string first / $idx(nextRange)] | |
| 28 | - if {$idx(next) != -1} { | |
| 29 | - ## | |
| 30 | - ## NOTE: (part 2) Add the necessary offset to the result of | |
| 31 | - ## the search for the next slash (i.e. the one after | |
| 32 | - ## the initial search for the two slashes). | |
| 33 | - ## | |
| 34 | - s | |
| 35 | -<th1> | |
| 36 | -proc menulink {url name} { | |
| 37 | - upvar home home | |
| 38 | - html "<a href='$home$url'>$name</a>\n" | |
| 39 | -} | |
| 40 | -menulink $index_page Home | |
| 41 | -menuljor]} { | |
| 42 | - menulink /nycap ijr2]} { | |
| 43 | - menulink /timeline Timeline | |
| 44 | -} | |
| 45 | -if {[anoncap oh]} { | |
| 46 | - menulink /dir?ci=tip Files | |
| 47 | -} | |
| 48 | -if {[anoncap o]} { | |
| 49 | - menulink /brlist Branches | |
| 50 | - menulink /taglist Tags | |
| 51 | -} | |
| 52 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 53 | - menulink /forum Forum | |
| 54 | -} | |
| 55 | -if {[anoncap r]} { | |
| 56 | - menulink /[anycap nr]} { | |
| 57 | - menulink /ticket Tickets | |
| 58 | -} | |
| 59 | -if {[anoncap j]} { | |
| 60 | - menulink /wiki Wiki | |
| 61 | -} | |
| 62 | -if {[hascap s]} { | |
| 63 | - menulink /setup Admin | |
| 64 | -} elseif {[hascap a]} { | |
| 65 | - menulink /setup_ulist Users | |
| 66 | -} | |
| 67 | -e it by | |
| 68 | - ## usinmenulink /login L |
| --- a/skins/enhanced1/header.txt | |
| +++ b/skins/enhanced1/header.txt | |
| @@ -1,68 +0,0 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="logo"> |
| 3 | <th1> |
| 4 | ## |
| 5 | ## NOTE: The purpose of this procedure is to take the base URL of the |
| 6 | ## Fossil project and return the root of the entire web site using |
| 7 | ## the same URI scheme as the base URL (e.g. http or https). |
| 8 | ## |
| 9 | proc getLogoUrl { baseurl } { |
| 10 | set idx(first) [string first // $baseurl] |
| 11 | if {$idx(first) != -1} { |
| 12 | ## |
| 13 | ## NOTE: Skip second slash. |
| 14 | ## |
| 15 | set idx(first+1) [expr {$idx(first) + 2}] |
| 16 | ## |
| 17 | ## NOTE: (part 1) The [string first] command does NOT actually |
| 18 | ## support the optional startIndex argument as specified |
| 19 | ## in the TH1 support manual; therefore, we fake it by |
| 20 | ## using the [string range] command and then adding the |
| 21 | ## necessary offset to the resulting index manually |
| 22 | ## (below). In Tcl, we could use the following instead: |
| 23 | ## |
| 24 | ## set idx(next) [string first / $baseurl $idx(first+1)] |
| 25 | ## |
| 26 | set idx(nextRange) [string range $baseurl $idx(first+1) end] |
| 27 | set idx(next) [string first / $idx(nextRange)] |
| 28 | if {$idx(next) != -1} { |
| 29 | ## |
| 30 | ## NOTE: (part 2) Add the necessary offset to the result of |
| 31 | ## the search for the next slash (i.e. the one after |
| 32 | ## the initial search for the two slashes). |
| 33 | ## |
| 34 | s |
| 35 | <th1> |
| 36 | proc menulink {url name} { |
| 37 | upvar home home |
| 38 | html "<a href='$home$url'>$name</a>\n" |
| 39 | } |
| 40 | menulink $index_page Home |
| 41 | menuljor]} { |
| 42 | menulink /nycap ijr2]} { |
| 43 | menulink /timeline Timeline |
| 44 | } |
| 45 | if {[anoncap oh]} { |
| 46 | menulink /dir?ci=tip Files |
| 47 | } |
| 48 | if {[anoncap o]} { |
| 49 | menulink /brlist Branches |
| 50 | menulink /taglist Tags |
| 51 | } |
| 52 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 53 | menulink /forum Forum |
| 54 | } |
| 55 | if {[anoncap r]} { |
| 56 | menulink /[anycap nr]} { |
| 57 | menulink /ticket Tickets |
| 58 | } |
| 59 | if {[anoncap j]} { |
| 60 | menulink /wiki Wiki |
| 61 | } |
| 62 | if {[hascap s]} { |
| 63 | menulink /setup Admin |
| 64 | } elseif {[hascap a]} { |
| 65 | menulink /setup_ulist Users |
| 66 | } |
| 67 | e it by |
| 68 | ## usinmenulink /login L |
| --- a/skins/enhanced1/header.txt | |
| +++ b/skins/enhanced1/header.txt | |
| @@ -1,68 +0,0 @@ | |
+24
-5
| --- skins/khaki/css.txt | ||
| +++ skins/khaki/css.txt | ||
| @@ -58,11 +58,24 @@ | ||
| 58 | 58 | font-weight: bold; |
| 59 | 59 | text-align: center; |
| 60 | 60 | letter-spacing: 1px; |
| 61 | 61 | background-color: #a09048; |
| 62 | 62 | color: black; |
| 63 | + z-index: 21; /* just above hbdrop */ | |
| 64 | +} | |
| 65 | +div#hbdrop { | |
| 66 | + background-color: #fef3bc; | |
| 67 | + border: 2px solid #a09048; | |
| 68 | + border-radius: 0 0 0.5em 0.5em; | |
| 69 | + display: none; | |
| 70 | + left: 2em; | |
| 71 | + width: 90%; | |
| 72 | + padding-right: 1em; | |
| 73 | + position: absolute; | |
| 74 | + z-index: 20; /* just below mainmenu, but above timeline bubbles */ | |
| 63 | 75 | } |
| 76 | + | |
| 64 | 77 | |
| 65 | 78 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 66 | 79 | div.submenu, div.sectionmenu { |
| 67 | 80 | padding: 3px 10px 3px 0px; |
| 68 | 81 | font-size: 0.9em; |
| @@ -76,24 +89,30 @@ | ||
| 76 | 89 | padding: 3px 10px 3px 10px; |
| 77 | 90 | color: white; |
| 78 | 91 | text-decoration: none; |
| 79 | 92 | } |
| 80 | 93 | div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover, |
| 81 | -div.submenu label:hover { | |
| 94 | +div.submenu label:hover, div#hbdrop a:hover { | |
| 82 | 95 | color: #a09048; |
| 83 | 96 | background-color: white; |
| 84 | 97 | } |
| 85 | 98 | |
| 86 | 99 | /* All page content from the bottom of the menu or submenu down to |
| 87 | 100 | ** the footer */ |
| 88 | 101 | div.content { |
| 89 | 102 | padding: 1ex 5px; |
| 90 | 103 | } |
| 91 | -div.content a { color: #706532; } | |
| 92 | -div.content a:link { color: #706532; } | |
| 93 | -div.content a:visited { color: #704032; } | |
| 94 | -div.content a:hover { background-color: white; color: #706532; } | |
| 104 | +div.content a, div#hbdrop a { color: #706532; } | |
| 105 | +div.content a:link, div#hbdrop a:link { color: #706532; } | |
| 106 | +div.content a:visited, div#hbdrop a:visited { color: #704032; } | |
| 107 | +div.content a:hover, div#hbdrop a:hover { | |
| 108 | + background-color: white; color: #706532; | |
| 109 | +} | |
| 110 | +a, a:visited { | |
| 111 | + text-decoration: none; | |
| 112 | +} | |
| 113 | + | |
| 95 | 114 | |
| 96 | 115 | /* Some pages have section dividers */ |
| 97 | 116 | div.section { |
| 98 | 117 | margin-bottom: 0px; |
| 99 | 118 | margin-top: 1em; |
| 100 | 119 |
| --- skins/khaki/css.txt | |
| +++ skins/khaki/css.txt | |
| @@ -58,11 +58,24 @@ | |
| 58 | font-weight: bold; |
| 59 | text-align: center; |
| 60 | letter-spacing: 1px; |
| 61 | background-color: #a09048; |
| 62 | color: black; |
| 63 | } |
| 64 | |
| 65 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 66 | div.submenu, div.sectionmenu { |
| 67 | padding: 3px 10px 3px 0px; |
| 68 | font-size: 0.9em; |
| @@ -76,24 +89,30 @@ | |
| 76 | padding: 3px 10px 3px 10px; |
| 77 | color: white; |
| 78 | text-decoration: none; |
| 79 | } |
| 80 | div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover, |
| 81 | div.submenu label:hover { |
| 82 | color: #a09048; |
| 83 | background-color: white; |
| 84 | } |
| 85 | |
| 86 | /* All page content from the bottom of the menu or submenu down to |
| 87 | ** the footer */ |
| 88 | div.content { |
| 89 | padding: 1ex 5px; |
| 90 | } |
| 91 | div.content a { color: #706532; } |
| 92 | div.content a:link { color: #706532; } |
| 93 | div.content a:visited { color: #704032; } |
| 94 | div.content a:hover { background-color: white; color: #706532; } |
| 95 | |
| 96 | /* Some pages have section dividers */ |
| 97 | div.section { |
| 98 | margin-bottom: 0px; |
| 99 | margin-top: 1em; |
| 100 |
| --- skins/khaki/css.txt | |
| +++ skins/khaki/css.txt | |
| @@ -58,11 +58,24 @@ | |
| 58 | font-weight: bold; |
| 59 | text-align: center; |
| 60 | letter-spacing: 1px; |
| 61 | background-color: #a09048; |
| 62 | color: black; |
| 63 | z-index: 21; /* just above hbdrop */ |
| 64 | } |
| 65 | div#hbdrop { |
| 66 | background-color: #fef3bc; |
| 67 | border: 2px solid #a09048; |
| 68 | border-radius: 0 0 0.5em 0.5em; |
| 69 | display: none; |
| 70 | left: 2em; |
| 71 | width: 90%; |
| 72 | padding-right: 1em; |
| 73 | position: absolute; |
| 74 | z-index: 20; /* just below mainmenu, but above timeline bubbles */ |
| 75 | } |
| 76 | |
| 77 | |
| 78 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 79 | div.submenu, div.sectionmenu { |
| 80 | padding: 3px 10px 3px 0px; |
| 81 | font-size: 0.9em; |
| @@ -76,24 +89,30 @@ | |
| 89 | padding: 3px 10px 3px 10px; |
| 90 | color: white; |
| 91 | text-decoration: none; |
| 92 | } |
| 93 | div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover, |
| 94 | div.submenu label:hover, div#hbdrop a:hover { |
| 95 | color: #a09048; |
| 96 | background-color: white; |
| 97 | } |
| 98 | |
| 99 | /* All page content from the bottom of the menu or submenu down to |
| 100 | ** the footer */ |
| 101 | div.content { |
| 102 | padding: 1ex 5px; |
| 103 | } |
| 104 | div.content a, div#hbdrop a { color: #706532; } |
| 105 | div.content a:link, div#hbdrop a:link { color: #706532; } |
| 106 | div.content a:visited, div#hbdrop a:visited { color: #704032; } |
| 107 | div.content a:hover, div#hbdrop a:hover { |
| 108 | background-color: white; color: #706532; |
| 109 | } |
| 110 | a, a:visited { |
| 111 | text-decoration: none; |
| 112 | } |
| 113 | |
| 114 | |
| 115 | /* Some pages have section dividers */ |
| 116 | div.section { |
| 117 | margin-bottom: 0px; |
| 118 | margin-top: 1em; |
| 119 |
+2
-2
| --- skins/khaki/details.txt | ||
| +++ skins/khaki/details.txt | ||
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | timeline-arrowheads: 1 |
| 2 | -timeline-circle-nodes: 0 | |
| 3 | -timeline-color-graph-lines: 0 | |
| 2 | +timeline-circle-nodes: 1 | |
| 3 | +timeline-color-graph-lines: 1 | |
| 4 | 4 | white-foreground: 0 |
| 5 | 5 |
| --- skins/khaki/details.txt | |
| +++ skins/khaki/details.txt | |
| @@ -1,4 +1,4 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 0 |
| 4 | white-foreground: 0 |
| 5 |
| --- skins/khaki/details.txt | |
| +++ skins/khaki/details.txt | |
| @@ -1,4 +1,4 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 1 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | white-foreground: 0 |
| 5 |
+8
-31
| --- skins/khaki/header.txt | ||
| +++ skins/khaki/header.txt | ||
| @@ -8,38 +8,15 @@ | ||
| 8 | 8 | } else { |
| 9 | 9 | puts "Not logged in" |
| 10 | 10 | } |
| 11 | 11 | </th1></div> |
| 12 | 12 | </div> |
| 13 | -<div class="mainmenu"> | |
| 14 | -<th1> | |
| 15 | -html "<a href='$home$index_page'>Home</a>\n" | |
| 16 | -if {[anycap jor]} { | |
| 17 | - html "<a href='$home/timeline'>Timeline</a>\n" | |
| 18 | -} | |
| 19 | -if {[anoncap oh]} { | |
| 20 | - html "<a href='$home/tree?ci=tip'>Files</a>\n" | |
| 21 | -} | |
| 22 | -if {[anoncap o]} { | |
| 23 | - html "<a href='$home/brlist'>Branches</a>\n" | |
| 24 | - html "<a href='$home/taglist'>Tags</a>\n" | |
| 25 | -} | |
| 26 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 27 | - html "<a href='$home/forum'>Forum</a>\n" | |
| 28 | -} | |
| 29 | -if {[anoncap r]} { | |
| 30 | - html "<a href='$home/ticket'>Tickets</a>\n" | |
| 31 | -} | |
| 32 | -if {[anoncap j]} { | |
| 33 | - html "<a href='$home/wiki'>Wiki</a>\n" | |
| 34 | -} | |
| 35 | -if {[hascap s]} { | |
| 36 | - html "<a href='$home/setup'>Admin</a>\n" | |
| 37 | -} elseif {[hascap a]} { | |
| 38 | - html "<a href='$home/setup_ulist'>Users</a>\n" | |
| 39 | -} | |
| 40 | -if {[info exists login]} { | |
| 41 | - html "<a href='$home/login'>Logout</a>\n" | |
| 42 | -} else { | |
| 43 | - html "<a href='$home/login'>Login</a>\n" | |
| 13 | +<div class="mainmenu"><th1> | |
| 14 | +html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" | |
| 15 | +builtin_request_js hbmenu.js | |
| 16 | +foreach {name url expr class} $mainmenu { | |
| 17 | + if {![capexpr $expr]} continue | |
| 18 | + if {[string match /* $url]} {set url $home$url} | |
| 19 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 44 | 20 | } |
| 45 | 21 | </th1></div> |
| 22 | +<div id='hbdrop'></div> | |
| 46 | 23 |
| --- skins/khaki/header.txt | |
| +++ skins/khaki/header.txt | |
| @@ -8,38 +8,15 @@ | |
| 8 | } else { |
| 9 | puts "Not logged in" |
| 10 | } |
| 11 | </th1></div> |
| 12 | </div> |
| 13 | <div class="mainmenu"> |
| 14 | <th1> |
| 15 | html "<a href='$home$index_page'>Home</a>\n" |
| 16 | if {[anycap jor]} { |
| 17 | html "<a href='$home/timeline'>Timeline</a>\n" |
| 18 | } |
| 19 | if {[anoncap oh]} { |
| 20 | html "<a href='$home/tree?ci=tip'>Files</a>\n" |
| 21 | } |
| 22 | if {[anoncap o]} { |
| 23 | html "<a href='$home/brlist'>Branches</a>\n" |
| 24 | html "<a href='$home/taglist'>Tags</a>\n" |
| 25 | } |
| 26 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 27 | html "<a href='$home/forum'>Forum</a>\n" |
| 28 | } |
| 29 | if {[anoncap r]} { |
| 30 | html "<a href='$home/ticket'>Tickets</a>\n" |
| 31 | } |
| 32 | if {[anoncap j]} { |
| 33 | html "<a href='$home/wiki'>Wiki</a>\n" |
| 34 | } |
| 35 | if {[hascap s]} { |
| 36 | html "<a href='$home/setup'>Admin</a>\n" |
| 37 | } elseif {[hascap a]} { |
| 38 | html "<a href='$home/setup_ulist'>Users</a>\n" |
| 39 | } |
| 40 | if {[info exists login]} { |
| 41 | html "<a href='$home/login'>Logout</a>\n" |
| 42 | } else { |
| 43 | html "<a href='$home/login'>Login</a>\n" |
| 44 | } |
| 45 | </th1></div> |
| 46 |
| --- skins/khaki/header.txt | |
| +++ skins/khaki/header.txt | |
| @@ -8,38 +8,15 @@ | |
| 8 | } else { |
| 9 | puts "Not logged in" |
| 10 | } |
| 11 | </th1></div> |
| 12 | </div> |
| 13 | <div class="mainmenu"><th1> |
| 14 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 15 | builtin_request_js hbmenu.js |
| 16 | foreach {name url expr class} $mainmenu { |
| 17 | if {![capexpr $expr]} continue |
| 18 | if {[string match /* $url]} {set url $home$url} |
| 19 | html "<a href='$url' class='$class'>$name</a>\n" |
| 20 | } |
| 21 | </th1></div> |
| 22 | <div id='hbdrop'></div> |
| 23 |
+2
-3
| --- skins/original/css.txt | ||
| +++ skins/original/css.txt | ||
| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | display: table-cell; |
| 15 | 15 | text-align: center; |
| 16 | 16 | vertical-align: bottom; |
| 17 | 17 | font-weight: bold; |
| 18 | 18 | color: #558195; |
| 19 | - min-width: 200px; | |
| 19 | + min-width: 50px; | |
| 20 | 20 | white-space: nowrap; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /* The page title centered at the top of each page */ |
| 24 | 24 | div.title { |
| @@ -38,11 +38,10 @@ | ||
| 38 | 38 | text-align: right; |
| 39 | 39 | vertical-align: bottom; |
| 40 | 40 | color: #558195; |
| 41 | 41 | font-size: 0.8em; |
| 42 | 42 | font-weight: bold; |
| 43 | - min-width: 200px; | |
| 44 | 43 | white-space: nowrap; |
| 45 | 44 | } |
| 46 | 45 | |
| 47 | 46 | /* The header across the top of the page */ |
| 48 | 47 | div.header { |
| @@ -51,11 +50,11 @@ | ||
| 51 | 50 | } |
| 52 | 51 | |
| 53 | 52 | /* The main menu bar that appears at the top of the page beneath |
| 54 | 53 | ** the header */ |
| 55 | 54 | div.mainmenu { |
| 56 | - padding: 5px 10px 5px 10px; | |
| 55 | + padding: 5px; | |
| 57 | 56 | font-size: 0.9em; |
| 58 | 57 | font-weight: bold; |
| 59 | 58 | text-align: center; |
| 60 | 59 | letter-spacing: 1px; |
| 61 | 60 | background-color: #558195; |
| 62 | 61 |
| --- skins/original/css.txt | |
| +++ skins/original/css.txt | |
| @@ -14,11 +14,11 @@ | |
| 14 | display: table-cell; |
| 15 | text-align: center; |
| 16 | vertical-align: bottom; |
| 17 | font-weight: bold; |
| 18 | color: #558195; |
| 19 | min-width: 200px; |
| 20 | white-space: nowrap; |
| 21 | } |
| 22 | |
| 23 | /* The page title centered at the top of each page */ |
| 24 | div.title { |
| @@ -38,11 +38,10 @@ | |
| 38 | text-align: right; |
| 39 | vertical-align: bottom; |
| 40 | color: #558195; |
| 41 | font-size: 0.8em; |
| 42 | font-weight: bold; |
| 43 | min-width: 200px; |
| 44 | white-space: nowrap; |
| 45 | } |
| 46 | |
| 47 | /* The header across the top of the page */ |
| 48 | div.header { |
| @@ -51,11 +50,11 @@ | |
| 51 | } |
| 52 | |
| 53 | /* The main menu bar that appears at the top of the page beneath |
| 54 | ** the header */ |
| 55 | div.mainmenu { |
| 56 | padding: 5px 10px 5px 10px; |
| 57 | font-size: 0.9em; |
| 58 | font-weight: bold; |
| 59 | text-align: center; |
| 60 | letter-spacing: 1px; |
| 61 | background-color: #558195; |
| 62 |
| --- skins/original/css.txt | |
| +++ skins/original/css.txt | |
| @@ -14,11 +14,11 @@ | |
| 14 | display: table-cell; |
| 15 | text-align: center; |
| 16 | vertical-align: bottom; |
| 17 | font-weight: bold; |
| 18 | color: #558195; |
| 19 | min-width: 50px; |
| 20 | white-space: nowrap; |
| 21 | } |
| 22 | |
| 23 | /* The page title centered at the top of each page */ |
| 24 | div.title { |
| @@ -38,11 +38,10 @@ | |
| 38 | text-align: right; |
| 39 | vertical-align: bottom; |
| 40 | color: #558195; |
| 41 | font-size: 0.8em; |
| 42 | font-weight: bold; |
| 43 | white-space: nowrap; |
| 44 | } |
| 45 | |
| 46 | /* The header across the top of the page */ |
| 47 | div.header { |
| @@ -51,11 +50,11 @@ | |
| 50 | } |
| 51 | |
| 52 | /* The main menu bar that appears at the top of the page beneath |
| 53 | ** the header */ |
| 54 | div.mainmenu { |
| 55 | padding: 5px; |
| 56 | font-size: 0.9em; |
| 57 | font-weight: bold; |
| 58 | text-align: center; |
| 59 | letter-spacing: 1px; |
| 60 | background-color: #558195; |
| 61 |
+22
-3
| --- skins/original/footer.txt | ||
| +++ skins/original/footer.txt | ||
| @@ -1,5 +1,24 @@ | ||
| 1 | 1 | <div class="footer"> |
| 2 | -This page was generated in about | |
| 3 | -<th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by | |
| 4 | -Fossil $release_version $manifest_version $manifest_date | |
| 2 | + <th1> | |
| 3 | + proc getTclVersion {} { | |
| 4 | + if {[catch {tclEval info patchlevel} tclVersion] == 0} { | |
| 5 | + return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion" | |
| 6 | + } | |
| 7 | + return "" | |
| 8 | + } | |
| 9 | + proc getVersion { version } { | |
| 10 | + set length [string length $version] | |
| 11 | + return [string range $version 1 [expr {$length - 2}]] | |
| 12 | + } | |
| 13 | + set version [getVersion $manifest_version] | |
| 14 | + set tclVersion [getTclVersion] | |
| 15 | + set fossilUrl https://www.fossil-scm.org | |
| 16 | + set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end] | |
| 17 | + </th1> | |
| 18 | + This page was generated in about | |
| 19 | + <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by | |
| 20 | + <a href="$fossilUrl/">Fossil</a> | |
| 21 | + version $release_version $tclVersion | |
| 22 | + <a href="$fossilUrl/index.html/info/$version">$manifest_version</a> | |
| 23 | + <a href="$fossilUrl/index.html/timeline?c=$fossilDate&y=ci">$manifest_date</a> | |
| 5 | 24 | </div> |
| 6 | 25 |
| --- skins/original/footer.txt | |
| +++ skins/original/footer.txt | |
| @@ -1,5 +1,24 @@ | |
| 1 | <div class="footer"> |
| 2 | This page was generated in about |
| 3 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 4 | Fossil $release_version $manifest_version $manifest_date |
| 5 | </div> |
| 6 |
| --- skins/original/footer.txt | |
| +++ skins/original/footer.txt | |
| @@ -1,5 +1,24 @@ | |
| 1 | <div class="footer"> |
| 2 | <th1> |
| 3 | proc getTclVersion {} { |
| 4 | if {[catch {tclEval info patchlevel} tclVersion] == 0} { |
| 5 | return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion" |
| 6 | } |
| 7 | return "" |
| 8 | } |
| 9 | proc getVersion { version } { |
| 10 | set length [string length $version] |
| 11 | return [string range $version 1 [expr {$length - 2}]] |
| 12 | } |
| 13 | set version [getVersion $manifest_version] |
| 14 | set tclVersion [getTclVersion] |
| 15 | set fossilUrl https://www.fossil-scm.org |
| 16 | set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end] |
| 17 | </th1> |
| 18 | This page was generated in about |
| 19 | <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 20 | <a href="$fossilUrl/">Fossil</a> |
| 21 | version $release_version $tclVersion |
| 22 | <a href="$fossilUrl/index.html/info/$version">$manifest_version</a> |
| 23 | <a href="$fossilUrl/index.html/timeline?c=$fossilDate&y=ci">$manifest_date</a> |
| 24 | </div> |
| 25 |
+95
-36
| --- skins/original/header.txt | ||
| +++ skins/original/header.txt | ||
| @@ -1,46 +1,105 @@ | ||
| 1 | 1 | <div class="header"> |
| 2 | 2 | <div class="logo"> |
| 3 | - <img src="$logo_image_url" alt="logo" /> | |
| 3 | + <th1> | |
| 4 | + ## | |
| 5 | + ## NOTE: The purpose of this procedure is to take the base URL of the | |
| 6 | + ## Fossil project and return the root of the entire web site using | |
| 7 | + ## the same URI scheme as the base URL (e.g. http or https). | |
| 8 | + ## | |
| 9 | + proc getLogoUrl { baseurl } { | |
| 10 | + set idx(first) [string first // $baseurl] | |
| 11 | + if {$idx(first) != -1} { | |
| 12 | + ## | |
| 13 | + ## NOTE: Skip second slash. | |
| 14 | + ## | |
| 15 | + set idx(first+1) [expr {$idx(first) + 2}] | |
| 16 | + ## | |
| 17 | + ## NOTE: (part 1) The [string first] command does NOT actually | |
| 18 | + ## support the optional startIndex argument as specified | |
| 19 | + ## in the TH1 support manual; therefore, we fake it by | |
| 20 | + ## using the [string range] command and then adding the | |
| 21 | + ## necessary offset to the resulting index manually | |
| 22 | + ## (below). In Tcl, we could use the following instead: | |
| 23 | + ## | |
| 24 | + ## set idx(next) [string first / $baseurl $idx(first+1)] | |
| 25 | + ## | |
| 26 | + set idx(nextRange) [string range $baseurl $idx(first+1) end] | |
| 27 | + set idx(next) [string first / $idx(nextRange)] | |
| 28 | + if {$idx(next) != -1} { | |
| 29 | + ## | |
| 30 | + ## NOTE: (part 2) Add the necessary offset to the result of | |
| 31 | + ## the search for the next slash (i.e. the one after | |
| 32 | + ## the initial search for the two slashes). | |
| 33 | + ## | |
| 34 | + set idx(next) [expr {$idx(next) + $idx(first+1)}] | |
| 35 | + ## | |
| 36 | + ## NOTE: Back up one character from the next slash. | |
| 37 | + ## | |
| 38 | + set idx(next-1) [expr {$idx(next) - 1}] | |
| 39 | + ## | |
| 40 | + ## NOTE: Extract the URI scheme and host from the base URL. | |
| 41 | + ## | |
| 42 | + set scheme [string range $baseurl 0 $idx(first)] | |
| 43 | + set host [string range $baseurl $idx(first+1) $idx(next-1)] | |
| 44 | + ## | |
| 45 | + ## NOTE: Try to stay in SSL mode if we are there now. | |
| 46 | + ## | |
| 47 | + if {[string compare $scheme http:/] == 0} { | |
| 48 | + set scheme http:// | |
| 49 | + } else { | |
| 50 | + set scheme https:// | |
| 51 | + } | |
| 52 | + set logourl $scheme$host/ | |
| 53 | + } else { | |
| 54 | + set logourl $baseurl | |
| 55 | + } | |
| 56 | + } else { | |
| 57 | + set logourl $baseurl | |
| 58 | + } | |
| 59 | + return $logourl | |
| 60 | + } | |
| 61 | + set logourl [getLogoUrl $baseurl] | |
| 62 | + </th1> | |
| 63 | + <a href="$logourl"> | |
| 64 | + <img src="$logo_image_url" border="0" alt="$project_name"> | |
| 65 | + </a> | |
| 4 | 66 | </div> |
| 5 | - <div class="title"><small>$<project_name></small><br />$<title></div> | |
| 6 | - <div class="status"><th1> | |
| 67 | + <div class="title">$<title></div> | |
| 68 | + <div class="status"><nobr><th1> | |
| 7 | 69 | if {[info exists login]} { |
| 8 | 70 | puts "Logged in as $login" |
| 9 | 71 | } else { |
| 10 | 72 | puts "Not logged in" |
| 11 | 73 | } |
| 12 | - </th1></div> | |
| 13 | -</div> | |
| 14 | -<div class="mainmenu"> | |
| 15 | -<th1> | |
| 16 | -html "<a href='$home$index_page'>Home</a>\n" | |
| 17 | -if {[anycap jor]} { | |
| 18 | - html "<a href='$home/timeline'>Timeline</a>\n" | |
| 19 | -} | |
| 20 | -if {[anoncap oh]} { | |
| 21 | - html "<a href='$home/tree?ci=tip'>Files</a>\n" | |
| 22 | -} | |
| 23 | -if {[anoncap o]} { | |
| 24 | - html "<a href='$home/brlist'>Branches</a>\n" | |
| 25 | - html "<a href='$home/taglist'>Tags</a>\n" | |
| 26 | -} | |
| 27 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 28 | - html "<a href='$home/forum'>Forum</a>\n" | |
| 29 | -} | |
| 30 | -if {[anoncap r]} { | |
| 31 | - html "<a href='$home/ticket'>Tickets</a>\n" | |
| 32 | -} | |
| 33 | -if {[anoncap j]} { | |
| 34 | - html "<a href='$home/wiki'>Wiki</a>\n" | |
| 35 | -} | |
| 36 | -if {[hascap s]} { | |
| 37 | - html "<a href='$home/setup'>Admin</a>\n" | |
| 38 | -} elseif {[hascap a]} { | |
| 39 | - html "<a href='$home/setup_ulist'>Users</a>\n" | |
| 40 | -} | |
| 41 | -if {[info exists login]} { | |
| 42 | - html "<a href='$home/login'>Logout</a>\n" | |
| 43 | -} else { | |
| 44 | - html "<a href='$home/login'>Login</a>\n" | |
| 74 | + </th1></nobr><small><div id="clock"></div></small></div> | |
| 75 | +</div> | |
| 76 | +<th1>html "<script nonce='$nonce'>"</th1> | |
| 77 | +function updateClock(){ | |
| 78 | + var e = document.getElementById("clock"); | |
| 79 | + if(e){ | |
| 80 | + var d = new Date(); | |
| 81 | + function f(n) { | |
| 82 | + return n < 10 ? '0' + n : n; | |
| 83 | + } | |
| 84 | + e.innerHTML = d.getUTCFullYear()+ '-' + | |
| 85 | + f(d.getUTCMonth() + 1) + '-' + | |
| 86 | + f(d.getUTCDate()) + ' ' + | |
| 87 | + f(d.getUTCHours()) + ':' + | |
| 88 | + f(d.getUTCMinutes()); | |
| 89 | + setTimeout(updateClock,(60-d.getUTCSeconds())*1000); | |
| 90 | + } | |
| 91 | +} | |
| 92 | +updateClock(); | |
| 93 | +</script> | |
| 94 | +<div class="mainmenu"><th1> | |
| 95 | +set sitemap 0 | |
| 96 | +foreach {name url expr class} $mainmenu { | |
| 97 | + if {![capexpr $expr]} continue | |
| 98 | + if {[string match /* $url]} {set url $home$url} | |
| 99 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 100 | + if {[string match */sitemap $url]} {set sitemap 1} | |
| 101 | +} | |
| 102 | +if {!$sitemap} { | |
| 103 | + html "<a href='$home/sitemap'>...</a>" | |
| 45 | 104 | } |
| 46 | 105 | </th1></div> |
| 47 | 106 |
| --- skins/original/header.txt | |
| +++ skins/original/header.txt | |
| @@ -1,46 +1,105 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="logo"> |
| 3 | <img src="$logo_image_url" alt="logo" /> |
| 4 | </div> |
| 5 | <div class="title"><small>$<project_name></small><br />$<title></div> |
| 6 | <div class="status"><th1> |
| 7 | if {[info exists login]} { |
| 8 | puts "Logged in as $login" |
| 9 | } else { |
| 10 | puts "Not logged in" |
| 11 | } |
| 12 | </th1></div> |
| 13 | </div> |
| 14 | <div class="mainmenu"> |
| 15 | <th1> |
| 16 | html "<a href='$home$index_page'>Home</a>\n" |
| 17 | if {[anycap jor]} { |
| 18 | html "<a href='$home/timeline'>Timeline</a>\n" |
| 19 | } |
| 20 | if {[anoncap oh]} { |
| 21 | html "<a href='$home/tree?ci=tip'>Files</a>\n" |
| 22 | } |
| 23 | if {[anoncap o]} { |
| 24 | html "<a href='$home/brlist'>Branches</a>\n" |
| 25 | html "<a href='$home/taglist'>Tags</a>\n" |
| 26 | } |
| 27 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 28 | html "<a href='$home/forum'>Forum</a>\n" |
| 29 | } |
| 30 | if {[anoncap r]} { |
| 31 | html "<a href='$home/ticket'>Tickets</a>\n" |
| 32 | } |
| 33 | if {[anoncap j]} { |
| 34 | html "<a href='$home/wiki'>Wiki</a>\n" |
| 35 | } |
| 36 | if {[hascap s]} { |
| 37 | html "<a href='$home/setup'>Admin</a>\n" |
| 38 | } elseif {[hascap a]} { |
| 39 | html "<a href='$home/setup_ulist'>Users</a>\n" |
| 40 | } |
| 41 | if {[info exists login]} { |
| 42 | html "<a href='$home/login'>Logout</a>\n" |
| 43 | } else { |
| 44 | html "<a href='$home/login'>Login</a>\n" |
| 45 | } |
| 46 | </th1></div> |
| 47 |
| --- skins/original/header.txt | |
| +++ skins/original/header.txt | |
| @@ -1,46 +1,105 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="logo"> |
| 3 | <th1> |
| 4 | ## |
| 5 | ## NOTE: The purpose of this procedure is to take the base URL of the |
| 6 | ## Fossil project and return the root of the entire web site using |
| 7 | ## the same URI scheme as the base URL (e.g. http or https). |
| 8 | ## |
| 9 | proc getLogoUrl { baseurl } { |
| 10 | set idx(first) [string first // $baseurl] |
| 11 | if {$idx(first) != -1} { |
| 12 | ## |
| 13 | ## NOTE: Skip second slash. |
| 14 | ## |
| 15 | set idx(first+1) [expr {$idx(first) + 2}] |
| 16 | ## |
| 17 | ## NOTE: (part 1) The [string first] command does NOT actually |
| 18 | ## support the optional startIndex argument as specified |
| 19 | ## in the TH1 support manual; therefore, we fake it by |
| 20 | ## using the [string range] command and then adding the |
| 21 | ## necessary offset to the resulting index manually |
| 22 | ## (below). In Tcl, we could use the following instead: |
| 23 | ## |
| 24 | ## set idx(next) [string first / $baseurl $idx(first+1)] |
| 25 | ## |
| 26 | set idx(nextRange) [string range $baseurl $idx(first+1) end] |
| 27 | set idx(next) [string first / $idx(nextRange)] |
| 28 | if {$idx(next) != -1} { |
| 29 | ## |
| 30 | ## NOTE: (part 2) Add the necessary offset to the result of |
| 31 | ## the search for the next slash (i.e. the one after |
| 32 | ## the initial search for the two slashes). |
| 33 | ## |
| 34 | set idx(next) [expr {$idx(next) + $idx(first+1)}] |
| 35 | ## |
| 36 | ## NOTE: Back up one character from the next slash. |
| 37 | ## |
| 38 | set idx(next-1) [expr {$idx(next) - 1}] |
| 39 | ## |
| 40 | ## NOTE: Extract the URI scheme and host from the base URL. |
| 41 | ## |
| 42 | set scheme [string range $baseurl 0 $idx(first)] |
| 43 | set host [string range $baseurl $idx(first+1) $idx(next-1)] |
| 44 | ## |
| 45 | ## NOTE: Try to stay in SSL mode if we are there now. |
| 46 | ## |
| 47 | if {[string compare $scheme http:/] == 0} { |
| 48 | set scheme http:// |
| 49 | } else { |
| 50 | set scheme https:// |
| 51 | } |
| 52 | set logourl $scheme$host/ |
| 53 | } else { |
| 54 | set logourl $baseurl |
| 55 | } |
| 56 | } else { |
| 57 | set logourl $baseurl |
| 58 | } |
| 59 | return $logourl |
| 60 | } |
| 61 | set logourl [getLogoUrl $baseurl] |
| 62 | </th1> |
| 63 | <a href="$logourl"> |
| 64 | <img src="$logo_image_url" border="0" alt="$project_name"> |
| 65 | </a> |
| 66 | </div> |
| 67 | <div class="title">$<title></div> |
| 68 | <div class="status"><nobr><th1> |
| 69 | if {[info exists login]} { |
| 70 | puts "Logged in as $login" |
| 71 | } else { |
| 72 | puts "Not logged in" |
| 73 | } |
| 74 | </th1></nobr><small><div id="clock"></div></small></div> |
| 75 | </div> |
| 76 | <th1>html "<script nonce='$nonce'>"</th1> |
| 77 | function updateClock(){ |
| 78 | var e = document.getElementById("clock"); |
| 79 | if(e){ |
| 80 | var d = new Date(); |
| 81 | function f(n) { |
| 82 | return n < 10 ? '0' + n : n; |
| 83 | } |
| 84 | e.innerHTML = d.getUTCFullYear()+ '-' + |
| 85 | f(d.getUTCMonth() + 1) + '-' + |
| 86 | f(d.getUTCDate()) + ' ' + |
| 87 | f(d.getUTCHours()) + ':' + |
| 88 | f(d.getUTCMinutes()); |
| 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | } |
| 91 | } |
| 92 | updateClock(); |
| 93 | </script> |
| 94 | <div class="mainmenu"><th1> |
| 95 | set sitemap 0 |
| 96 | foreach {name url expr class} $mainmenu { |
| 97 | if {![capexpr $expr]} continue |
| 98 | if {[string match /* $url]} {set url $home$url} |
| 99 | html "<a href='$url' class='$class'>$name</a>\n" |
| 100 | if {[string match */sitemap $url]} {set sitemap 1} |
| 101 | } |
| 102 | if {!$sitemap} { |
| 103 | html "<a href='$home/sitemap'>...</a>" |
| 104 | } |
| 105 | </th1></div> |
| 106 |
+26
-18
| --- skins/plain_gray/css.txt | ||
| +++ skins/plain_gray/css.txt | ||
| @@ -7,23 +7,10 @@ | ||
| 7 | 7 | -moz-text-size-adjust: none; |
| 8 | 8 | -webkit-text-size-adjust: none; |
| 9 | 9 | -mx-text-size-adjust: none; |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | -/* The project logo in the upper left-hand corner of each page */ | |
| 13 | -div.logo { | |
| 14 | - display: table-row; | |
| 15 | - text-align: center; | |
| 16 | - /* vertical-align: bottom;*/ | |
| 17 | - font-size: 2em; | |
| 18 | - font-weight: bold; | |
| 19 | - background-color: #707070; | |
| 20 | - color: #ffffff; | |
| 21 | - min-width: 200px; | |
| 22 | - white-space: nowrap; | |
| 23 | -} | |
| 24 | - | |
| 25 | 12 | /* The page title centered at the top of each page */ |
| 26 | 13 | div.title { |
| 27 | 14 | display: table-cell; |
| 28 | 15 | font-size: 1.5em; |
| 29 | 16 | font-weight: bold; |
| @@ -38,13 +25,11 @@ | ||
| 38 | 25 | div.status { |
| 39 | 26 | display: table-cell; |
| 40 | 27 | text-align: right; |
| 41 | 28 | vertical-align: bottom; |
| 42 | 29 | color: #404040; |
| 43 | - font-size: 0.8em; | |
| 44 | 30 | font-weight: bold; |
| 45 | - min-width: 200px; | |
| 46 | 31 | white-space: nowrap; |
| 47 | 32 | } |
| 48 | 33 | |
| 49 | 34 | /* The header across the top of the page */ |
| 50 | 35 | div.header { |
| @@ -60,32 +45,55 @@ | ||
| 60 | 45 | font-weight: bold; |
| 61 | 46 | text-align: center; |
| 62 | 47 | letter-spacing: 1px; |
| 63 | 48 | background-color: #404040; |
| 64 | 49 | color: white; |
| 50 | + z-index: 21; /* just above hbdrop */ | |
| 51 | +} | |
| 52 | +.hbdrop { | |
| 53 | + background-color: white; | |
| 54 | + border: 1px solid black; | |
| 55 | + border-radius: 0.5em; | |
| 56 | + display: none; | |
| 57 | + width: 95%; | |
| 58 | + position: absolute; | |
| 59 | + z-index: 20; /* just below mainmenu, but above timeline bubbles */ | |
| 65 | 60 | } |
| 61 | +div.hbdrop a { color: #604000; } | |
| 62 | +div.hbdrop a:link { color: #604000;} | |
| 63 | +div.hbdrop a:visited { color: #600000; } | |
| 64 | + | |
| 66 | 65 | |
| 67 | 66 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 68 | 67 | div.submenu, div.sectionmenu { |
| 69 | 68 | padding: 3px 10px 3px 0px; |
| 70 | 69 | font-size: 0.9em; |
| 71 | 70 | text-align: center; |
| 72 | 71 | background-color: #606060; |
| 73 | 72 | color: white; |
| 74 | 73 | } |
| 75 | -div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited, | |
| 76 | -div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited, | |
| 74 | +div.mainmenu a, | |
| 75 | +div.mainmenu a:visited, | |
| 76 | +div.submenu a, | |
| 77 | +div.submenu a:visited, | |
| 78 | +div.sectionmenu>a.button:link, | |
| 79 | +div.sectionmenu>a.button:visited, | |
| 77 | 80 | div.submenu label { |
| 78 | 81 | padding: 3px 10px 3px 10px; |
| 79 | 82 | color: white; |
| 80 | 83 | text-decoration: none; |
| 81 | 84 | } |
| 82 | -div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover, | |
| 85 | +div.mainmenu a:hover, | |
| 86 | +div.submenu a:hover, | |
| 87 | +div.sectionmenu>a.button:hover, | |
| 83 | 88 | div.submenu label:hover { |
| 84 | 89 | color: #404040; |
| 85 | 90 | background-color: white; |
| 86 | 91 | } |
| 92 | +a, a:visited { | |
| 93 | + text-decoration: none; | |
| 94 | +} | |
| 87 | 95 | |
| 88 | 96 | /* All page content from the bottom of the menu or submenu down to |
| 89 | 97 | ** the footer */ |
| 90 | 98 | div.content { |
| 91 | 99 | padding: 0ex 0ex 0ex 0ex; |
| 92 | 100 |
| --- skins/plain_gray/css.txt | |
| +++ skins/plain_gray/css.txt | |
| @@ -7,23 +7,10 @@ | |
| 7 | -moz-text-size-adjust: none; |
| 8 | -webkit-text-size-adjust: none; |
| 9 | -mx-text-size-adjust: none; |
| 10 | } |
| 11 | |
| 12 | /* The project logo in the upper left-hand corner of each page */ |
| 13 | div.logo { |
| 14 | display: table-row; |
| 15 | text-align: center; |
| 16 | /* vertical-align: bottom;*/ |
| 17 | font-size: 2em; |
| 18 | font-weight: bold; |
| 19 | background-color: #707070; |
| 20 | color: #ffffff; |
| 21 | min-width: 200px; |
| 22 | white-space: nowrap; |
| 23 | } |
| 24 | |
| 25 | /* The page title centered at the top of each page */ |
| 26 | div.title { |
| 27 | display: table-cell; |
| 28 | font-size: 1.5em; |
| 29 | font-weight: bold; |
| @@ -38,13 +25,11 @@ | |
| 38 | div.status { |
| 39 | display: table-cell; |
| 40 | text-align: right; |
| 41 | vertical-align: bottom; |
| 42 | color: #404040; |
| 43 | font-size: 0.8em; |
| 44 | font-weight: bold; |
| 45 | min-width: 200px; |
| 46 | white-space: nowrap; |
| 47 | } |
| 48 | |
| 49 | /* The header across the top of the page */ |
| 50 | div.header { |
| @@ -60,32 +45,55 @@ | |
| 60 | font-weight: bold; |
| 61 | text-align: center; |
| 62 | letter-spacing: 1px; |
| 63 | background-color: #404040; |
| 64 | color: white; |
| 65 | } |
| 66 | |
| 67 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 68 | div.submenu, div.sectionmenu { |
| 69 | padding: 3px 10px 3px 0px; |
| 70 | font-size: 0.9em; |
| 71 | text-align: center; |
| 72 | background-color: #606060; |
| 73 | color: white; |
| 74 | } |
| 75 | div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited, |
| 76 | div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited, |
| 77 | div.submenu label { |
| 78 | padding: 3px 10px 3px 10px; |
| 79 | color: white; |
| 80 | text-decoration: none; |
| 81 | } |
| 82 | div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover, |
| 83 | div.submenu label:hover { |
| 84 | color: #404040; |
| 85 | background-color: white; |
| 86 | } |
| 87 | |
| 88 | /* All page content from the bottom of the menu or submenu down to |
| 89 | ** the footer */ |
| 90 | div.content { |
| 91 | padding: 0ex 0ex 0ex 0ex; |
| 92 |
| --- skins/plain_gray/css.txt | |
| +++ skins/plain_gray/css.txt | |
| @@ -7,23 +7,10 @@ | |
| 7 | -moz-text-size-adjust: none; |
| 8 | -webkit-text-size-adjust: none; |
| 9 | -mx-text-size-adjust: none; |
| 10 | } |
| 11 | |
| 12 | /* The page title centered at the top of each page */ |
| 13 | div.title { |
| 14 | display: table-cell; |
| 15 | font-size: 1.5em; |
| 16 | font-weight: bold; |
| @@ -38,13 +25,11 @@ | |
| 25 | div.status { |
| 26 | display: table-cell; |
| 27 | text-align: right; |
| 28 | vertical-align: bottom; |
| 29 | color: #404040; |
| 30 | font-weight: bold; |
| 31 | white-space: nowrap; |
| 32 | } |
| 33 | |
| 34 | /* The header across the top of the page */ |
| 35 | div.header { |
| @@ -60,32 +45,55 @@ | |
| 45 | font-weight: bold; |
| 46 | text-align: center; |
| 47 | letter-spacing: 1px; |
| 48 | background-color: #404040; |
| 49 | color: white; |
| 50 | z-index: 21; /* just above hbdrop */ |
| 51 | } |
| 52 | .hbdrop { |
| 53 | background-color: white; |
| 54 | border: 1px solid black; |
| 55 | border-radius: 0.5em; |
| 56 | display: none; |
| 57 | width: 95%; |
| 58 | position: absolute; |
| 59 | z-index: 20; /* just below mainmenu, but above timeline bubbles */ |
| 60 | } |
| 61 | div.hbdrop a { color: #604000; } |
| 62 | div.hbdrop a:link { color: #604000;} |
| 63 | div.hbdrop a:visited { color: #600000; } |
| 64 | |
| 65 | |
| 66 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 67 | div.submenu, div.sectionmenu { |
| 68 | padding: 3px 10px 3px 0px; |
| 69 | font-size: 0.9em; |
| 70 | text-align: center; |
| 71 | background-color: #606060; |
| 72 | color: white; |
| 73 | } |
| 74 | div.mainmenu a, |
| 75 | div.mainmenu a:visited, |
| 76 | div.submenu a, |
| 77 | div.submenu a:visited, |
| 78 | div.sectionmenu>a.button:link, |
| 79 | div.sectionmenu>a.button:visited, |
| 80 | div.submenu label { |
| 81 | padding: 3px 10px 3px 10px; |
| 82 | color: white; |
| 83 | text-decoration: none; |
| 84 | } |
| 85 | div.mainmenu a:hover, |
| 86 | div.submenu a:hover, |
| 87 | div.sectionmenu>a.button:hover, |
| 88 | div.submenu label:hover { |
| 89 | color: #404040; |
| 90 | background-color: white; |
| 91 | } |
| 92 | a, a:visited { |
| 93 | text-decoration: none; |
| 94 | } |
| 95 | |
| 96 | /* All page content from the bottom of the menu or submenu down to |
| 97 | ** the footer */ |
| 98 | div.content { |
| 99 | padding: 0ex 0ex 0ex 0ex; |
| 100 |
+8
-37
| --- skins/plain_gray/header.txt | ||
| +++ skins/plain_gray/header.txt | ||
| @@ -1,43 +1,14 @@ | ||
| 1 | 1 | <div class="header"> |
| 2 | - <div class="title"><small>$<project_name></small><br />$<title></div> | |
| 3 | - <div class="status"><th1> | |
| 4 | - if {[info exists login]} { | |
| 5 | - puts "Logged in as $login" | |
| 6 | - } else { | |
| 7 | - puts "Not logged in" | |
| 8 | - } | |
| 9 | - </th1></div> | |
| 2 | + <div class="title">$<project_name>: $<title></div> | |
| 10 | 3 | </div> |
| 11 | 4 | <div class="mainmenu"> |
| 12 | 5 | <th1> |
| 13 | -html "<a href='$home$index_page'>Home</a>\n" | |
| 14 | -if {[anycap jor]} { | |
| 15 | - html "<a href='$home/timeline'>Timeline</a>\n" | |
| 16 | -} | |
| 17 | -if {[anoncap oh]} { | |
| 18 | - html "<a href='$home/tree?ci=tip'>Files</a>\n" | |
| 19 | -} | |
| 20 | -if {[anoncap o]} { | |
| 21 | - html "<a href='$home/brlist'>Branches</a>\n" | |
| 22 | - html "<a href='$home/taglist'>Tags</a>\n" | |
| 23 | -} | |
| 24 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 25 | - html "<a href='$home/forum'>Forum</a>\n" | |
| 26 | -} | |
| 27 | -if {[anoncap r]} { | |
| 28 | - html "<a href='$home/ticket'>Tickets</a>\n" | |
| 29 | -} | |
| 30 | -if {[anoncap j]} { | |
| 31 | - html "<a href='$home/wiki'>Wiki</a>\n" | |
| 32 | -} | |
| 33 | -if {[hascap s]} { | |
| 34 | - html "<a href='$home/setup'>Admin</a>\n" | |
| 35 | -} elseif {[hascap a]} { | |
| 36 | - html "<a href='$home/setup_ulist'>Users</a>\n" | |
| 37 | -} | |
| 38 | -if {[info exists login]} { | |
| 39 | - html "<a href='$home/login'>Logout</a>\n" | |
| 40 | -} else { | |
| 41 | - html "<a href='$home/login'>Login</a>\n" | |
| 6 | +html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" | |
| 7 | +builtin_request_js hbmenu.js | |
| 8 | +foreach {name url expr class} $mainmenu { | |
| 9 | + if {![capexpr $expr]} continue | |
| 10 | + if {[string match /* $url]} {set url $home$url} | |
| 11 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 42 | 12 | } |
| 43 | 13 | </th1></div> |
| 14 | +<div id='hbdrop' class='hbdrop'></div> | |
| 44 | 15 | |
| 45 | 16 | DELETED skins/rounded1/css.txt |
| 46 | 17 | DELETED skins/rounded1/details.txt |
| 47 | 18 | DELETED skins/rounded1/footer.txt |
| 48 | 19 | DELETED skins/rounded1/header.txt |
| --- skins/plain_gray/header.txt | |
| +++ skins/plain_gray/header.txt | |
| @@ -1,43 +1,14 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="title"><small>$<project_name></small><br />$<title></div> |
| 3 | <div class="status"><th1> |
| 4 | if {[info exists login]} { |
| 5 | puts "Logged in as $login" |
| 6 | } else { |
| 7 | puts "Not logged in" |
| 8 | } |
| 9 | </th1></div> |
| 10 | </div> |
| 11 | <div class="mainmenu"> |
| 12 | <th1> |
| 13 | html "<a href='$home$index_page'>Home</a>\n" |
| 14 | if {[anycap jor]} { |
| 15 | html "<a href='$home/timeline'>Timeline</a>\n" |
| 16 | } |
| 17 | if {[anoncap oh]} { |
| 18 | html "<a href='$home/tree?ci=tip'>Files</a>\n" |
| 19 | } |
| 20 | if {[anoncap o]} { |
| 21 | html "<a href='$home/brlist'>Branches</a>\n" |
| 22 | html "<a href='$home/taglist'>Tags</a>\n" |
| 23 | } |
| 24 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 25 | html "<a href='$home/forum'>Forum</a>\n" |
| 26 | } |
| 27 | if {[anoncap r]} { |
| 28 | html "<a href='$home/ticket'>Tickets</a>\n" |
| 29 | } |
| 30 | if {[anoncap j]} { |
| 31 | html "<a href='$home/wiki'>Wiki</a>\n" |
| 32 | } |
| 33 | if {[hascap s]} { |
| 34 | html "<a href='$home/setup'>Admin</a>\n" |
| 35 | } elseif {[hascap a]} { |
| 36 | html "<a href='$home/setup_ulist'>Users</a>\n" |
| 37 | } |
| 38 | if {[info exists login]} { |
| 39 | html "<a href='$home/login'>Logout</a>\n" |
| 40 | } else { |
| 41 | html "<a href='$home/login'>Login</a>\n" |
| 42 | } |
| 43 | </th1></div> |
| 44 | |
| 45 | ELETED skins/rounded1/css.txt |
| 46 | ELETED skins/rounded1/details.txt |
| 47 | ELETED skins/rounded1/footer.txt |
| 48 | ELETED skins/rounded1/header.txt |
| --- skins/plain_gray/header.txt | |
| +++ skins/plain_gray/header.txt | |
| @@ -1,43 +1,14 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="title">$<project_name>: $<title></div> |
| 3 | </div> |
| 4 | <div class="mainmenu"> |
| 5 | <th1> |
| 6 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 7 | builtin_request_js hbmenu.js |
| 8 | foreach {name url expr class} $mainmenu { |
| 9 | if {![capexpr $expr]} continue |
| 10 | if {[string match /* $url]} {set url $home$url} |
| 11 | html "<a href='$url' class='$class'>$name</a>\n" |
| 12 | } |
| 13 | </th1></div> |
| 14 | <div id='hbdrop' class='hbdrop'></div> |
| 15 | |
| 16 | ELETED skins/rounded1/css.txt |
| 17 | ELETED skins/rounded1/details.txt |
| 18 | ELETED skins/rounded1/footer.txt |
| 19 | ELETED skins/rounded1/header.txt |
D
skins/rounded1/css.txt
-197
| --- a/skins/rounded1/css.txt | ||
| +++ b/skins/rounded1/css.txt | ||
| @@ -1,197 +0,0 @@ | ||
| 1 | -/* General settings for the entire page */ | |
| 2 | -html { | |
| 3 | - min-height: 100%; | |
| 4 | -} | |
| 5 | -body { | |
| 6 | - margin: 0ex 1ex; | |
| 7 | - padding: 0px; | |
| 8 | - background-color: white; | |
| 9 | - color: #333; | |
| 10 | - font-family: Verdana, sans-serif; | |
| 11 | - font-size: 0.8em; | |
| 12 | - -moz-text-size-adjust: none; | |
| 13 | - -webkit-text-size-adjust: none; | |
| 14 | - -mx-text-size-adjust: none; | |
| 15 | -} | |
| 16 | - | |
| 17 | -/* The project logo in the upper left-hand corner of each page */ | |
| 18 | -div.logo { | |
| 19 | - display: table-cell; | |
| 20 | - text-align: right; | |
| 21 | - vertical-align: bottom; | |
| 22 | - font-weight: normal; | |
| 23 | - white-space: nowrap; | |
| 24 | -} | |
| 25 | - | |
| 26 | -/* Widths */ | |
| 27 | -div.header, div.mainmenu, div.submenu, div.content, div.footer { | |
| 28 | - max-width: 900px; | |
| 29 | - margin: auto; | |
| 30 | - padding: 3px 20px 3px 20px; | |
| 31 | - clear: both; | |
| 32 | -} | |
| 33 | - | |
| 34 | -/* The page title at the top of each page */ | |
| 35 | -div.title { | |
| 36 | - display: table-cell; | |
| 37 | - padding-left: 10px; | |
| 38 | - font-size: 2em; | |
| 39 | - margin: 10px 0 10px -20px; | |
| 40 | - vertical-align: bottom; | |
| 41 | - text-align: left; | |
| 42 | - width: 80%; | |
| 43 | - font-family: Verdana, sans-serif; | |
| 44 | - font-weight: bold; | |
| 45 | - color: #558195; | |
| 46 | - text-shadow: 0px 2px 2px #999999; | |
| 47 | -} | |
| 48 | - | |
| 49 | -/* The login status message in the top right-hand corner */ | |
| 50 | -div.status { | |
| 51 | - display: table-cell; | |
| 52 | - text-align: right; | |
| 53 | - vertical-align: bottom; | |
| 54 | - color: #333; | |
| 55 | - margin-right: -20px; | |
| 56 | - white-space: nowrap; | |
| 57 | -} | |
| 58 | - | |
| 59 | -/* The main menu bar that appears at the top of the page beneath | |
| 60 | - ** the header */ | |
| 61 | -div.mainmenu { | |
| 62 | - text-align: center; | |
| 63 | - color: white; | |
| 64 | - border-top-left-radius: 5px; | |
| 65 | - border-top-right-radius: 5px; | |
| 66 | - vertical-align: middle; | |
| 67 | - padding-top: 8px; | |
| 68 | - padding-bottom: 8px; | |
| 69 | - background-color: #446979; | |
| 70 | - box-shadow: 0px 3px 4px #333333; | |
| 71 | -} | |
| 72 | - | |
| 73 | -/* The submenu bar that *sometimes* appears below the main menu */ | |
| 74 | -div.submenu { | |
| 75 | - padding-top:10px; | |
| 76 | - padding-bottom:0; | |
| 77 | - text-align: right; | |
| 78 | - color: #000; | |
| 79 | - background-color: #fff; | |
| 80 | - height: 1.5em; | |
| 81 | - vertical-align:middle; | |
| 82 | - box-shadow: 0px 3px 4px #999; | |
| 83 | -} | |
| 84 | -div.mainmenu a, div.mainmenu a:visited { | |
| 85 | - padding: 3px 10px 3px 10px; | |
| 86 | - color: white; | |
| 87 | - text-decoration: none; | |
| 88 | -} | |
| 89 | -div.submenu a, div.submenu a:visited, a.button, div.submenu label, | |
| 90 | -div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { | |
| 91 | - padding: 2px 8px; | |
| 92 | - color: #000; | |
| 93 | - font-family: Arial; | |
| 94 | - text-decoration: none; | |
| 95 | - margin:auto; | |
| 96 | - border-radius: 5px; | |
| 97 | - background-color: #e0e0e0; | |
| 98 | - text-shadow: 0px -1px 0px #eee; | |
| 99 | - border: 1px solid #000; | |
| 100 | -} | |
| 101 | - | |
| 102 | -div.mainmenu a:hover { | |
| 103 | - color: #000; | |
| 104 | - background-color: white; | |
| 105 | -} | |
| 106 | - | |
| 107 | -div.submenu a:hover, div.sectionmenu>a.button:hover, div.submenu label:hover { | |
| 108 | - background-color: #c0c0c0; | |
| 109 | -} | |
| 110 | - | |
| 111 | -/* All page content from the bottom of the menu or submenu down to | |
| 112 | - ** the footer */ | |
| 113 | -div.content { | |
| 114 | - background-color: #fff; | |
| 115 | - box-shadow: 0px 3px 4px #999; | |
| 116 | - border-bottom-right-radius: 5px; | |
| 117 | - border-bottom-left-radius: 5px; | |
| 118 | - padding-bottom: 1em; | |
| 119 | - min-height:40%; | |
| 120 | -} | |
| 121 | - | |
| 122 | - | |
| 123 | -/* Some pages have section dividers */ | |
| 124 | -div.section { | |
| 125 | - margin-bottom: 0.5em; | |
| 126 | - margin-top: 1em; | |
| 127 | - margin-right: auto; | |
| 128 | - padding: 1px 1px 1px 1px; | |
| 129 | - font-size: 1.2em; | |
| 130 | - font-weight: bold; | |
| 131 | - text-align: center; | |
| 132 | - color: white; | |
| 133 | - border-radius: 5px; | |
| 134 | - background-color: #446979; | |
| 135 | - box-shadow: 0px 3px 4px #333333; | |
| 136 | - white-space: nowrap; | |
| 137 | -} | |
| 138 | - | |
| 139 | -/* The "Date" that occurs on the left hand side of timelines */ | |
| 140 | -div.divider { | |
| 141 | - font-size: 1.2em; | |
| 142 | - font-family: Georgia, serif; | |
| 143 | - font-weight: bold; | |
| 144 | - margin-top: 1em; | |
| 145 | - white-space: nowrap; | |
| 146 | -} | |
| 147 | - | |
| 148 | -/* The footer at the very bottom of the page */ | |
| 149 | -div.footer { | |
| 150 | - font-size: 0.9em; | |
| 151 | - text-align: right; | |
| 152 | - margin-bottom: 1em; | |
| 153 | - color: #666; | |
| 154 | -} | |
| 155 | - | |
| 156 | -/* Hyperlink colors in the footer */ | |
| 157 | -div.footer a { color: white; } | |
| 158 | -div.footer a:link { color: white; } | |
| 159 | -div.footer a:visited { color: white; } | |
| 160 | -div.footer a:hover { background-color: white; color: #558195; } | |
| 161 | - | |
| 162 | -/* <verbatim> blocks */ | |
| 163 | -pre.verbatim, blockquote pre { | |
| 164 | - font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace; | |
| 165 | - background-color: #f3f3f3; | |
| 166 | - padding: 0.5em; | |
| 167 | - white-space: pre-wrap; | |
| 168 | -} | |
| 169 | - | |
| 170 | -blockquote pre { | |
| 171 | - border: 1px #000 dashed; | |
| 172 | -} | |
| 173 | - | |
| 174 | -/* The label/value pairs on (for example) the ci page */ | |
| 175 | -table.label-value th { | |
| 176 | - vertical-align: top; | |
| 177 | - text-align: right; | |
| 178 | - padding: 0.2ex 2ex; | |
| 179 | -} | |
| 180 | - | |
| 181 | -table.report tr th { | |
| 182 | - padding: 3px 5px; | |
| 183 | - text-transform: capitalize; | |
| 184 | - cursor: pointer; | |
| 185 | -} | |
| 186 | - | |
| 187 | -table.report tr td { | |
| 188 | - padding: 3px 5px; | |
| 189 | -} | |
| 190 | - | |
| 191 | -textarea { | |
| 192 | - font-size: 1em; | |
| 193 | -} | |
| 194 | - | |
| 195 | -.fullsize-text { | |
| 196 | - font-size: 1.25em; | |
| 197 | -} |
| --- a/skins/rounded1/css.txt | |
| +++ b/skins/rounded1/css.txt | |
| @@ -1,197 +0,0 @@ | |
| 1 | /* General settings for the entire page */ |
| 2 | html { |
| 3 | min-height: 100%; |
| 4 | } |
| 5 | body { |
| 6 | margin: 0ex 1ex; |
| 7 | padding: 0px; |
| 8 | background-color: white; |
| 9 | color: #333; |
| 10 | font-family: Verdana, sans-serif; |
| 11 | font-size: 0.8em; |
| 12 | -moz-text-size-adjust: none; |
| 13 | -webkit-text-size-adjust: none; |
| 14 | -mx-text-size-adjust: none; |
| 15 | } |
| 16 | |
| 17 | /* The project logo in the upper left-hand corner of each page */ |
| 18 | div.logo { |
| 19 | display: table-cell; |
| 20 | text-align: right; |
| 21 | vertical-align: bottom; |
| 22 | font-weight: normal; |
| 23 | white-space: nowrap; |
| 24 | } |
| 25 | |
| 26 | /* Widths */ |
| 27 | div.header, div.mainmenu, div.submenu, div.content, div.footer { |
| 28 | max-width: 900px; |
| 29 | margin: auto; |
| 30 | padding: 3px 20px 3px 20px; |
| 31 | clear: both; |
| 32 | } |
| 33 | |
| 34 | /* The page title at the top of each page */ |
| 35 | div.title { |
| 36 | display: table-cell; |
| 37 | padding-left: 10px; |
| 38 | font-size: 2em; |
| 39 | margin: 10px 0 10px -20px; |
| 40 | vertical-align: bottom; |
| 41 | text-align: left; |
| 42 | width: 80%; |
| 43 | font-family: Verdana, sans-serif; |
| 44 | font-weight: bold; |
| 45 | color: #558195; |
| 46 | text-shadow: 0px 2px 2px #999999; |
| 47 | } |
| 48 | |
| 49 | /* The login status message in the top right-hand corner */ |
| 50 | div.status { |
| 51 | display: table-cell; |
| 52 | text-align: right; |
| 53 | vertical-align: bottom; |
| 54 | color: #333; |
| 55 | margin-right: -20px; |
| 56 | white-space: nowrap; |
| 57 | } |
| 58 | |
| 59 | /* The main menu bar that appears at the top of the page beneath |
| 60 | ** the header */ |
| 61 | div.mainmenu { |
| 62 | text-align: center; |
| 63 | color: white; |
| 64 | border-top-left-radius: 5px; |
| 65 | border-top-right-radius: 5px; |
| 66 | vertical-align: middle; |
| 67 | padding-top: 8px; |
| 68 | padding-bottom: 8px; |
| 69 | background-color: #446979; |
| 70 | box-shadow: 0px 3px 4px #333333; |
| 71 | } |
| 72 | |
| 73 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 74 | div.submenu { |
| 75 | padding-top:10px; |
| 76 | padding-bottom:0; |
| 77 | text-align: right; |
| 78 | color: #000; |
| 79 | background-color: #fff; |
| 80 | height: 1.5em; |
| 81 | vertical-align:middle; |
| 82 | box-shadow: 0px 3px 4px #999; |
| 83 | } |
| 84 | div.mainmenu a, div.mainmenu a:visited { |
| 85 | padding: 3px 10px 3px 10px; |
| 86 | color: white; |
| 87 | text-decoration: none; |
| 88 | } |
| 89 | div.submenu a, div.submenu a:visited, a.button, div.submenu label, |
| 90 | div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { |
| 91 | padding: 2px 8px; |
| 92 | color: #000; |
| 93 | font-family: Arial; |
| 94 | text-decoration: none; |
| 95 | margin:auto; |
| 96 | border-radius: 5px; |
| 97 | background-color: #e0e0e0; |
| 98 | text-shadow: 0px -1px 0px #eee; |
| 99 | border: 1px solid #000; |
| 100 | } |
| 101 | |
| 102 | div.mainmenu a:hover { |
| 103 | color: #000; |
| 104 | background-color: white; |
| 105 | } |
| 106 | |
| 107 | div.submenu a:hover, div.sectionmenu>a.button:hover, div.submenu label:hover { |
| 108 | background-color: #c0c0c0; |
| 109 | } |
| 110 | |
| 111 | /* All page content from the bottom of the menu or submenu down to |
| 112 | ** the footer */ |
| 113 | div.content { |
| 114 | background-color: #fff; |
| 115 | box-shadow: 0px 3px 4px #999; |
| 116 | border-bottom-right-radius: 5px; |
| 117 | border-bottom-left-radius: 5px; |
| 118 | padding-bottom: 1em; |
| 119 | min-height:40%; |
| 120 | } |
| 121 | |
| 122 | |
| 123 | /* Some pages have section dividers */ |
| 124 | div.section { |
| 125 | margin-bottom: 0.5em; |
| 126 | margin-top: 1em; |
| 127 | margin-right: auto; |
| 128 | padding: 1px 1px 1px 1px; |
| 129 | font-size: 1.2em; |
| 130 | font-weight: bold; |
| 131 | text-align: center; |
| 132 | color: white; |
| 133 | border-radius: 5px; |
| 134 | background-color: #446979; |
| 135 | box-shadow: 0px 3px 4px #333333; |
| 136 | white-space: nowrap; |
| 137 | } |
| 138 | |
| 139 | /* The "Date" that occurs on the left hand side of timelines */ |
| 140 | div.divider { |
| 141 | font-size: 1.2em; |
| 142 | font-family: Georgia, serif; |
| 143 | font-weight: bold; |
| 144 | margin-top: 1em; |
| 145 | white-space: nowrap; |
| 146 | } |
| 147 | |
| 148 | /* The footer at the very bottom of the page */ |
| 149 | div.footer { |
| 150 | font-size: 0.9em; |
| 151 | text-align: right; |
| 152 | margin-bottom: 1em; |
| 153 | color: #666; |
| 154 | } |
| 155 | |
| 156 | /* Hyperlink colors in the footer */ |
| 157 | div.footer a { color: white; } |
| 158 | div.footer a:link { color: white; } |
| 159 | div.footer a:visited { color: white; } |
| 160 | div.footer a:hover { background-color: white; color: #558195; } |
| 161 | |
| 162 | /* <verbatim> blocks */ |
| 163 | pre.verbatim, blockquote pre { |
| 164 | font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace; |
| 165 | background-color: #f3f3f3; |
| 166 | padding: 0.5em; |
| 167 | white-space: pre-wrap; |
| 168 | } |
| 169 | |
| 170 | blockquote pre { |
| 171 | border: 1px #000 dashed; |
| 172 | } |
| 173 | |
| 174 | /* The label/value pairs on (for example) the ci page */ |
| 175 | table.label-value th { |
| 176 | vertical-align: top; |
| 177 | text-align: right; |
| 178 | padding: 0.2ex 2ex; |
| 179 | } |
| 180 | |
| 181 | table.report tr th { |
| 182 | padding: 3px 5px; |
| 183 | text-transform: capitalize; |
| 184 | cursor: pointer; |
| 185 | } |
| 186 | |
| 187 | table.report tr td { |
| 188 | padding: 3px 5px; |
| 189 | } |
| 190 | |
| 191 | textarea { |
| 192 | font-size: 1em; |
| 193 | } |
| 194 | |
| 195 | .fullsize-text { |
| 196 | font-size: 1.25em; |
| 197 | } |
| --- a/skins/rounded1/css.txt | |
| +++ b/skins/rounded1/css.txt | |
| @@ -1,197 +0,0 @@ | |
D
skins/rounded1/details.txt
-3
| --- a/skins/rounded1/details.txt | ||
| +++ b/skins/rounded1/details.txt | ||
| @@ -1,3 +0,0 @@ | ||
| 1 | -timeline-arrowheads: 1 | |
| 2 | -t1 | |
| 3 | -timeline-color-graph-lines: 0 |
| --- a/skins/rounded1/details.txt | |
| +++ b/skins/rounded1/details.txt | |
| @@ -1,3 +0,0 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | t1 |
| 3 | timeline-color-graph-lines: 0 |
| --- a/skins/rounded1/details.txt | |
| +++ b/skins/rounded1/details.txt | |
| @@ -1,3 +0,0 @@ | |
D
skins/rounded1/footer.txt
-1
| --- a/skins/rounded1/footer.txt | ||
| +++ b/skins/rounded1/footer.txt | ||
| @@ -1 +0,0 @@ | ||
| 1 | -< |
| --- a/skins/rounded1/footer.txt | |
| +++ b/skins/rounded1/footer.txt | |
| @@ -1 +0,0 @@ | |
| 1 | < |
| --- a/skins/rounded1/footer.txt | |
| +++ b/skins/rounded1/footer.txt | |
| @@ -1 +0,0 @@ | |
D
skins/rounded1/header.txt
-44
| --- a/skins/rounded1/header.txt | ||
| +++ b/skins/rounded1/header.txt | ||
| @@ -1,44 +0,0 @@ | ||
| 1 | -<div class="header"> | |
| 2 | - <div class="logo"> | |
| 3 | - <img src="$logo_image_url" alt="logo"> | |
| 4 | - <br />$<project_name> | |
| 5 | - </div> | |
| 6 | - <div class="title">$<title></div> | |
| 7 | - <div class="status"><th1> | |
| 8 | - if {[info exists login]} { | |
| 9 | - puts "Logged in as $login" | |
| 10 | - } else { | |
| 11 | - puts "Not logged in" | |
| 12 | - } | |
| 13 | - </th1></div> | |
| 14 | -</div> | |
| 15 | -<div class="mainmenu"> | |
| 16 | -<th1> | |
| 17 | -html "<a href='$home$index_page'>Home</a>\n" | |
| 18 | -if {[anycap jor]} { | |
| 19 | - html "<a href='$home/} { | |
| 20 | - html "<a href='$home/timeline'>Timeline</a>\n" | |
| 21 | -} | |
| 22 | -if {[anoncap oh]} { | |
| 23 | - html "<a href='$home/tree?ci=tip'>Files</a>\n" | |
| 24 | -} | |
| 25 | -if {[anoncap o]} { | |
| 26 | - html "<a href='$home/brlist'>Branches</a>\n" | |
| 27 | - html "<a href='$home/taglist'>Tags</a>\n" | |
| 28 | -} | |
| 29 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 30 | - html "<a href='$home/fooncap r</a>\n" | |
| 31 | -} elseif {[hascap a]ticket'>Tickets</a>\n" | |
| 32 | -} | |
| 33 | -if {[anoncap j]} { | |
| 34 | - html "<a href='$home/wiki'>Wiki</a>\n" | |
| 35 | -} | |
| 36 | -if {[hascap s]} { | |
| 37 | - html "<a href='$home/setup'>Admin</a>\n" | |
| 38 | -} elseif {[hascap a]} { | |
| 39 | - html "<a href='$home/setup_ulist'>Users</a>\n" | |
| 40 | -} | |
| 41 | - class="status"><th1> | |
| 42 | - ifhtml "<a href='$home/login'>Logout</a>\n" | |
| 43 | -} else { | |
| 44 | - html "<a href='$home/login'>L |
| --- a/skins/rounded1/header.txt | |
| +++ b/skins/rounded1/header.txt | |
| @@ -1,44 +0,0 @@ | |
| 1 | <div class="header"> |
| 2 | <div class="logo"> |
| 3 | <img src="$logo_image_url" alt="logo"> |
| 4 | <br />$<project_name> |
| 5 | </div> |
| 6 | <div class="title">$<title></div> |
| 7 | <div class="status"><th1> |
| 8 | if {[info exists login]} { |
| 9 | puts "Logged in as $login" |
| 10 | } else { |
| 11 | puts "Not logged in" |
| 12 | } |
| 13 | </th1></div> |
| 14 | </div> |
| 15 | <div class="mainmenu"> |
| 16 | <th1> |
| 17 | html "<a href='$home$index_page'>Home</a>\n" |
| 18 | if {[anycap jor]} { |
| 19 | html "<a href='$home/} { |
| 20 | html "<a href='$home/timeline'>Timeline</a>\n" |
| 21 | } |
| 22 | if {[anoncap oh]} { |
| 23 | html "<a href='$home/tree?ci=tip'>Files</a>\n" |
| 24 | } |
| 25 | if {[anoncap o]} { |
| 26 | html "<a href='$home/brlist'>Branches</a>\n" |
| 27 | html "<a href='$home/taglist'>Tags</a>\n" |
| 28 | } |
| 29 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 30 | html "<a href='$home/fooncap r</a>\n" |
| 31 | } elseif {[hascap a]ticket'>Tickets</a>\n" |
| 32 | } |
| 33 | if {[anoncap j]} { |
| 34 | html "<a href='$home/wiki'>Wiki</a>\n" |
| 35 | } |
| 36 | if {[hascap s]} { |
| 37 | html "<a href='$home/setup'>Admin</a>\n" |
| 38 | } elseif {[hascap a]} { |
| 39 | html "<a href='$home/setup_ulist'>Users</a>\n" |
| 40 | } |
| 41 | class="status"><th1> |
| 42 | ifhtml "<a href='$home/login'>Logout</a>\n" |
| 43 | } else { |
| 44 | html "<a href='$home/login'>L |
| --- a/skins/rounded1/header.txt | |
| +++ b/skins/rounded1/header.txt | |
| @@ -1,44 +0,0 @@ | |
+15
-41
| --- skins/xekri/header.txt | ||
| +++ skins/xekri/header.txt | ||
| @@ -89,48 +89,22 @@ | ||
| 89 | 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | updateClock(); |
| 93 | 93 | </script> |
| 94 | -<div class="mainmenu"> | |
| 95 | -<th1> | |
| 96 | -proc menulink {url name} { | |
| 97 | - upvar current_page current | |
| 98 | - upvar home home | |
| 99 | - if {[string range $url 0 [string length $current]] eq "/$current"} { | |
| 100 | - html "<a href='$home$url' class='active'>$name</a>\n" | |
| 101 | - } else { | |
| 102 | - html "<a href='$home$url'>$name</a>\n" | |
| 103 | - } | |
| 104 | -} | |
| 105 | -menulink $index_page Home | |
| 106 | -if {[anycap jor]} { | |
| 107 | - menulink /timeline Timeline | |
| 108 | -} | |
| 109 | -if {[anoncap oh]} { | |
| 110 | - menulink /dir?ci=tip Files | |
| 111 | -} | |
| 112 | -if {[anoncap o]} { | |
| 113 | - menulink /brlist Branches | |
| 114 | - menulink /taglist Tags | |
| 115 | -} | |
| 116 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 117 | - menulink /forum Forum | |
| 118 | -} | |
| 119 | -if {[anoncap r]} { | |
| 120 | - menulink /ticket Tickets | |
| 121 | -} | |
| 122 | -if {[anoncap j]} { | |
| 123 | - menulink /wiki Wiki | |
| 124 | -} | |
| 125 | - menulink /sitemap More... | |
| 126 | -if {[hascap s]} { | |
| 127 | - menulink /setup Admin | |
| 128 | -} elseif {[hascap a]} { | |
| 129 | - menulink /setup_ulist Users | |
| 130 | -} | |
| 131 | -if {[info exists login]} { | |
| 132 | - menulink /login Logout | |
| 133 | -} else { | |
| 134 | - menulink /login Login | |
| 94 | +<div class="mainmenu"><th1> | |
| 95 | +set sitemap 0 | |
| 96 | +foreach {name url expr class} $mainmenu { | |
| 97 | + if {![capexpr $expr]} continue | |
| 98 | + if {[string match /* $url]} { | |
| 99 | + if {[string match /$current_page* $url]} { | |
| 100 | + lappend class active | |
| 101 | + } | |
| 102 | + set url $home$url | |
| 103 | + } | |
| 104 | + html "<a href='$url' class='$class'>$name</a>\n" | |
| 105 | + if {[string match */sitemap $url]} {set sitemap 1} | |
| 106 | +} | |
| 107 | +if {!$sitemap} { | |
| 108 | + html "<a href='$home/sitemap'>...</a>\n" | |
| 135 | 109 | } |
| 136 | 110 | </th1></div> |
| 137 | 111 |
| --- skins/xekri/header.txt | |
| +++ skins/xekri/header.txt | |
| @@ -89,48 +89,22 @@ | |
| 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | } |
| 91 | } |
| 92 | updateClock(); |
| 93 | </script> |
| 94 | <div class="mainmenu"> |
| 95 | <th1> |
| 96 | proc menulink {url name} { |
| 97 | upvar current_page current |
| 98 | upvar home home |
| 99 | if {[string range $url 0 [string length $current]] eq "/$current"} { |
| 100 | html "<a href='$home$url' class='active'>$name</a>\n" |
| 101 | } else { |
| 102 | html "<a href='$home$url'>$name</a>\n" |
| 103 | } |
| 104 | } |
| 105 | menulink $index_page Home |
| 106 | if {[anycap jor]} { |
| 107 | menulink /timeline Timeline |
| 108 | } |
| 109 | if {[anoncap oh]} { |
| 110 | menulink /dir?ci=tip Files |
| 111 | } |
| 112 | if {[anoncap o]} { |
| 113 | menulink /brlist Branches |
| 114 | menulink /taglist Tags |
| 115 | } |
| 116 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 117 | menulink /forum Forum |
| 118 | } |
| 119 | if {[anoncap r]} { |
| 120 | menulink /ticket Tickets |
| 121 | } |
| 122 | if {[anoncap j]} { |
| 123 | menulink /wiki Wiki |
| 124 | } |
| 125 | menulink /sitemap More... |
| 126 | if {[hascap s]} { |
| 127 | menulink /setup Admin |
| 128 | } elseif {[hascap a]} { |
| 129 | menulink /setup_ulist Users |
| 130 | } |
| 131 | if {[info exists login]} { |
| 132 | menulink /login Logout |
| 133 | } else { |
| 134 | menulink /login Login |
| 135 | } |
| 136 | </th1></div> |
| 137 |
| --- skins/xekri/header.txt | |
| +++ skins/xekri/header.txt | |
| @@ -89,48 +89,22 @@ | |
| 89 | setTimeout(updateClock,(60-d.getUTCSeconds())*1000); |
| 90 | } |
| 91 | } |
| 92 | updateClock(); |
| 93 | </script> |
| 94 | <div class="mainmenu"><th1> |
| 95 | set sitemap 0 |
| 96 | foreach {name url expr class} $mainmenu { |
| 97 | if {![capexpr $expr]} continue |
| 98 | if {[string match /* $url]} { |
| 99 | if {[string match /$current_page* $url]} { |
| 100 | lappend class active |
| 101 | } |
| 102 | set url $home$url |
| 103 | } |
| 104 | html "<a href='$url' class='$class'>$name</a>\n" |
| 105 | if {[string match */sitemap $url]} {set sitemap 1} |
| 106 | } |
| 107 | if {!$sitemap} { |
| 108 | html "<a href='$home/sitemap'>...</a>\n" |
| 109 | } |
| 110 | </th1></div> |
| 111 |
+2
-2
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -559,11 +559,11 @@ | ||
| 559 | 559 | ** --reset Reset the DELETED state of a checkout, such |
| 560 | 560 | ** that all newly-rm'd (but not yet committed) |
| 561 | 561 | ** files are no longer removed. No flags other |
| 562 | 562 | ** than --verbose or --dry-run may be used with |
| 563 | 563 | ** --reset. |
| 564 | -** --verbose|-v Outputs information about each --reset file. | |
| 564 | +** -v|--verbose Outputs information about each --reset file. | |
| 565 | 565 | ** Only usable with --reset. |
| 566 | 566 | ** |
| 567 | 567 | ** See also: [[addremove]], [[add]] |
| 568 | 568 | */ |
| 569 | 569 | void delete_cmd(void){ |
| @@ -751,11 +751,11 @@ | ||
| 751 | 751 | ** such that all newly-added (but not yet committed) |
| 752 | 752 | ** files are no longer added and all newly-removed |
| 753 | 753 | ** (but not yet committed) files are no longer |
| 754 | 754 | ** removed. No flags other than --verbose and |
| 755 | 755 | ** --dry-run may be used with --reset. |
| 756 | -** --verbose|-v Outputs information about each --reset file. | |
| 756 | +** -v|--verbose Outputs information about each --reset file. | |
| 757 | 757 | ** Only usable with --reset. |
| 758 | 758 | ** |
| 759 | 759 | ** See also: [[add]], [[rm]] |
| 760 | 760 | */ |
| 761 | 761 | void addremove_cmd(void){ |
| 762 | 762 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -559,11 +559,11 @@ | |
| 559 | ** --reset Reset the DELETED state of a checkout, such |
| 560 | ** that all newly-rm'd (but not yet committed) |
| 561 | ** files are no longer removed. No flags other |
| 562 | ** than --verbose or --dry-run may be used with |
| 563 | ** --reset. |
| 564 | ** --verbose|-v Outputs information about each --reset file. |
| 565 | ** Only usable with --reset. |
| 566 | ** |
| 567 | ** See also: [[addremove]], [[add]] |
| 568 | */ |
| 569 | void delete_cmd(void){ |
| @@ -751,11 +751,11 @@ | |
| 751 | ** such that all newly-added (but not yet committed) |
| 752 | ** files are no longer added and all newly-removed |
| 753 | ** (but not yet committed) files are no longer |
| 754 | ** removed. No flags other than --verbose and |
| 755 | ** --dry-run may be used with --reset. |
| 756 | ** --verbose|-v Outputs information about each --reset file. |
| 757 | ** Only usable with --reset. |
| 758 | ** |
| 759 | ** See also: [[add]], [[rm]] |
| 760 | */ |
| 761 | void addremove_cmd(void){ |
| 762 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -559,11 +559,11 @@ | |
| 559 | ** --reset Reset the DELETED state of a checkout, such |
| 560 | ** that all newly-rm'd (but not yet committed) |
| 561 | ** files are no longer removed. No flags other |
| 562 | ** than --verbose or --dry-run may be used with |
| 563 | ** --reset. |
| 564 | ** -v|--verbose Outputs information about each --reset file. |
| 565 | ** Only usable with --reset. |
| 566 | ** |
| 567 | ** See also: [[addremove]], [[add]] |
| 568 | */ |
| 569 | void delete_cmd(void){ |
| @@ -751,11 +751,11 @@ | |
| 751 | ** such that all newly-added (but not yet committed) |
| 752 | ** files are no longer added and all newly-removed |
| 753 | ** (but not yet committed) files are no longer |
| 754 | ** removed. No flags other than --verbose and |
| 755 | ** --dry-run may be used with --reset. |
| 756 | ** -v|--verbose Outputs information about each --reset file. |
| 757 | ** Only usable with --reset. |
| 758 | ** |
| 759 | ** See also: [[add]], [[rm]] |
| 760 | */ |
| 761 | void addremove_cmd(void){ |
| 762 |
+15
-10
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -288,11 +288,11 @@ | ||
| 288 | 288 | @ recepient addresses, and subject from the header of the piped email |
| 289 | 289 | @ text. (Property: "email-send-command")</p> |
| 290 | 290 | |
| 291 | 291 | entry_attribute("Store Emails In This Database", 60, "email-send-db", |
| 292 | 292 | "esdb", "", 0); |
| 293 | - @ <p>When the send method is "store in a databaes", each email message is | |
| 293 | + @ <p>When the send method is "store in a database", each email message is | |
| 294 | 294 | @ stored in an SQLite database file with the name given here. |
| 295 | 295 | @ (Property: "email-send-db")</p> |
| 296 | 296 | |
| 297 | 297 | entry_attribute("Store Emails In This Directory", 60, "email-send-dir", |
| 298 | 298 | "esdir", "", 0); |
| @@ -1377,11 +1377,10 @@ | ||
| 1377 | 1377 | && subscribe_error_check(&eErr,&zErr,needCaptcha) |
| 1378 | 1378 | ){ |
| 1379 | 1379 | /* A validated request for a new subscription has been received. */ |
| 1380 | 1380 | char ssub[20]; |
| 1381 | 1381 | const char *zEAddr = P("e"); |
| 1382 | - sqlite3_int64 id; /* New subscriber Id */ | |
| 1383 | 1382 | const char *zCode; /* New subscriber code (in hex) */ |
| 1384 | 1383 | int nsub = 0; |
| 1385 | 1384 | const char *suname = PT("suname"); |
| 1386 | 1385 | if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin; |
| 1387 | 1386 | if( suname && suname[0]==0 ) suname = 0; |
| @@ -1390,25 +1389,22 @@ | ||
| 1390 | 1389 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1391 | 1390 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1392 | 1391 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1393 | 1392 | if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; |
| 1394 | 1393 | ssub[nsub] = 0; |
| 1395 | - db_multi_exec( | |
| 1394 | + zCode = db_text(0, | |
| 1396 | 1395 | "INSERT INTO subscriber(semail,suname," |
| 1397 | 1396 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1398 | - "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)", | |
| 1397 | + "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)" | |
| 1398 | + "RETURNING hex(subscriberCode);", | |
| 1399 | 1399 | /* semail */ zEAddr, |
| 1400 | 1400 | /* suname */ suname, |
| 1401 | 1401 | /* sverified */ needCaptcha==0, |
| 1402 | 1402 | /* sdigest */ PB("di"), |
| 1403 | 1403 | /* ssub */ ssub, |
| 1404 | 1404 | /* smip */ g.zIpAddr |
| 1405 | 1405 | ); |
| 1406 | - id = db_last_insert_rowid(); | |
| 1407 | - zCode = db_text(0, | |
| 1408 | - "SELECT hex(subscriberCode) FROM subscriber WHERE subscriberId=%lld", | |
| 1409 | - id); | |
| 1410 | 1406 | if( !needCaptcha ){ |
| 1411 | 1407 | /* The new subscription has been added on behalf of a logged-in user. |
| 1412 | 1408 | ** No verification is required. Jump immediately to /alerts page. |
| 1413 | 1409 | */ |
| 1414 | 1410 | if( g.perm.Admin ){ |
| @@ -2278,10 +2274,11 @@ | ||
| 2278 | 2274 | memset(&anchor, 0, sizeof(anchor)); |
| 2279 | 2275 | pLast = &anchor; |
| 2280 | 2276 | *pnEvent = 0; |
| 2281 | 2277 | while( db_step(&q)==SQLITE_ROW ){ |
| 2282 | 2278 | const char *zType = ""; |
| 2279 | + const char *zComment = db_column_text(&q, 2); | |
| 2283 | 2280 | p = fossil_malloc( sizeof(EmailEvent) ); |
| 2284 | 2281 | pLast->pNext = p; |
| 2285 | 2282 | pLast = p; |
| 2286 | 2283 | p->type = db_column_text(&q, 3)[0]; |
| 2287 | 2284 | p->needMod = db_column_int(&q, 4); |
| @@ -2289,18 +2286,26 @@ | ||
| 2289 | 2286 | p->pNext = 0; |
| 2290 | 2287 | switch( p->type ){ |
| 2291 | 2288 | case 'c': zType = "Check-In"; break; |
| 2292 | 2289 | /* case 'f': -- forum posts omitted from this loop. See below */ |
| 2293 | 2290 | case 't': zType = "Ticket Change"; break; |
| 2294 | - case 'w': zType = "Wiki Edit"; break; | |
| 2291 | + case 'w': { | |
| 2292 | + zType = "Wiki Edit"; | |
| 2293 | + switch( zComment ? *zComment : 0 ){ | |
| 2294 | + case ':': ++zComment; break; | |
| 2295 | + case '+': zType = "Wiki Added"; ++zComment; break; | |
| 2296 | + case '-': zType = "Wiki Removed"; ++zComment; break; | |
| 2297 | + } | |
| 2298 | + break; | |
| 2299 | + } | |
| 2295 | 2300 | } |
| 2296 | 2301 | blob_init(&p->hdr, 0, 0); |
| 2297 | 2302 | blob_init(&p->txt, 0, 0); |
| 2298 | 2303 | blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n", |
| 2299 | 2304 | db_column_text(&q,1), |
| 2300 | 2305 | zType, |
| 2301 | - db_column_text(&q, 2), | |
| 2306 | + zComment, | |
| 2302 | 2307 | zUrl, |
| 2303 | 2308 | db_column_text(&q,0) |
| 2304 | 2309 | ); |
| 2305 | 2310 | if( p->needMod ){ |
| 2306 | 2311 | blob_appendf(&p->txt, |
| 2307 | 2312 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -288,11 +288,11 @@ | |
| 288 | @ recepient addresses, and subject from the header of the piped email |
| 289 | @ text. (Property: "email-send-command")</p> |
| 290 | |
| 291 | entry_attribute("Store Emails In This Database", 60, "email-send-db", |
| 292 | "esdb", "", 0); |
| 293 | @ <p>When the send method is "store in a databaes", each email message is |
| 294 | @ stored in an SQLite database file with the name given here. |
| 295 | @ (Property: "email-send-db")</p> |
| 296 | |
| 297 | entry_attribute("Store Emails In This Directory", 60, "email-send-dir", |
| 298 | "esdir", "", 0); |
| @@ -1377,11 +1377,10 @@ | |
| 1377 | && subscribe_error_check(&eErr,&zErr,needCaptcha) |
| 1378 | ){ |
| 1379 | /* A validated request for a new subscription has been received. */ |
| 1380 | char ssub[20]; |
| 1381 | const char *zEAddr = P("e"); |
| 1382 | sqlite3_int64 id; /* New subscriber Id */ |
| 1383 | const char *zCode; /* New subscriber code (in hex) */ |
| 1384 | int nsub = 0; |
| 1385 | const char *suname = PT("suname"); |
| 1386 | if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin; |
| 1387 | if( suname && suname[0]==0 ) suname = 0; |
| @@ -1390,25 +1389,22 @@ | |
| 1390 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1391 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1392 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1393 | if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; |
| 1394 | ssub[nsub] = 0; |
| 1395 | db_multi_exec( |
| 1396 | "INSERT INTO subscriber(semail,suname," |
| 1397 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1398 | "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)", |
| 1399 | /* semail */ zEAddr, |
| 1400 | /* suname */ suname, |
| 1401 | /* sverified */ needCaptcha==0, |
| 1402 | /* sdigest */ PB("di"), |
| 1403 | /* ssub */ ssub, |
| 1404 | /* smip */ g.zIpAddr |
| 1405 | ); |
| 1406 | id = db_last_insert_rowid(); |
| 1407 | zCode = db_text(0, |
| 1408 | "SELECT hex(subscriberCode) FROM subscriber WHERE subscriberId=%lld", |
| 1409 | id); |
| 1410 | if( !needCaptcha ){ |
| 1411 | /* The new subscription has been added on behalf of a logged-in user. |
| 1412 | ** No verification is required. Jump immediately to /alerts page. |
| 1413 | */ |
| 1414 | if( g.perm.Admin ){ |
| @@ -2278,10 +2274,11 @@ | |
| 2278 | memset(&anchor, 0, sizeof(anchor)); |
| 2279 | pLast = &anchor; |
| 2280 | *pnEvent = 0; |
| 2281 | while( db_step(&q)==SQLITE_ROW ){ |
| 2282 | const char *zType = ""; |
| 2283 | p = fossil_malloc( sizeof(EmailEvent) ); |
| 2284 | pLast->pNext = p; |
| 2285 | pLast = p; |
| 2286 | p->type = db_column_text(&q, 3)[0]; |
| 2287 | p->needMod = db_column_int(&q, 4); |
| @@ -2289,18 +2286,26 @@ | |
| 2289 | p->pNext = 0; |
| 2290 | switch( p->type ){ |
| 2291 | case 'c': zType = "Check-In"; break; |
| 2292 | /* case 'f': -- forum posts omitted from this loop. See below */ |
| 2293 | case 't': zType = "Ticket Change"; break; |
| 2294 | case 'w': zType = "Wiki Edit"; break; |
| 2295 | } |
| 2296 | blob_init(&p->hdr, 0, 0); |
| 2297 | blob_init(&p->txt, 0, 0); |
| 2298 | blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n", |
| 2299 | db_column_text(&q,1), |
| 2300 | zType, |
| 2301 | db_column_text(&q, 2), |
| 2302 | zUrl, |
| 2303 | db_column_text(&q,0) |
| 2304 | ); |
| 2305 | if( p->needMod ){ |
| 2306 | blob_appendf(&p->txt, |
| 2307 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -288,11 +288,11 @@ | |
| 288 | @ recepient addresses, and subject from the header of the piped email |
| 289 | @ text. (Property: "email-send-command")</p> |
| 290 | |
| 291 | entry_attribute("Store Emails In This Database", 60, "email-send-db", |
| 292 | "esdb", "", 0); |
| 293 | @ <p>When the send method is "store in a database", each email message is |
| 294 | @ stored in an SQLite database file with the name given here. |
| 295 | @ (Property: "email-send-db")</p> |
| 296 | |
| 297 | entry_attribute("Store Emails In This Directory", 60, "email-send-dir", |
| 298 | "esdir", "", 0); |
| @@ -1377,11 +1377,10 @@ | |
| 1377 | && subscribe_error_check(&eErr,&zErr,needCaptcha) |
| 1378 | ){ |
| 1379 | /* A validated request for a new subscription has been received. */ |
| 1380 | char ssub[20]; |
| 1381 | const char *zEAddr = P("e"); |
| 1382 | const char *zCode; /* New subscriber code (in hex) */ |
| 1383 | int nsub = 0; |
| 1384 | const char *suname = PT("suname"); |
| 1385 | if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin; |
| 1386 | if( suname && suname[0]==0 ) suname = 0; |
| @@ -1390,25 +1389,22 @@ | |
| 1389 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1390 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1391 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1392 | if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; |
| 1393 | ssub[nsub] = 0; |
| 1394 | zCode = db_text(0, |
| 1395 | "INSERT INTO subscriber(semail,suname," |
| 1396 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1397 | "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)" |
| 1398 | "RETURNING hex(subscriberCode);", |
| 1399 | /* semail */ zEAddr, |
| 1400 | /* suname */ suname, |
| 1401 | /* sverified */ needCaptcha==0, |
| 1402 | /* sdigest */ PB("di"), |
| 1403 | /* ssub */ ssub, |
| 1404 | /* smip */ g.zIpAddr |
| 1405 | ); |
| 1406 | if( !needCaptcha ){ |
| 1407 | /* The new subscription has been added on behalf of a logged-in user. |
| 1408 | ** No verification is required. Jump immediately to /alerts page. |
| 1409 | */ |
| 1410 | if( g.perm.Admin ){ |
| @@ -2278,10 +2274,11 @@ | |
| 2274 | memset(&anchor, 0, sizeof(anchor)); |
| 2275 | pLast = &anchor; |
| 2276 | *pnEvent = 0; |
| 2277 | while( db_step(&q)==SQLITE_ROW ){ |
| 2278 | const char *zType = ""; |
| 2279 | const char *zComment = db_column_text(&q, 2); |
| 2280 | p = fossil_malloc( sizeof(EmailEvent) ); |
| 2281 | pLast->pNext = p; |
| 2282 | pLast = p; |
| 2283 | p->type = db_column_text(&q, 3)[0]; |
| 2284 | p->needMod = db_column_int(&q, 4); |
| @@ -2289,18 +2286,26 @@ | |
| 2286 | p->pNext = 0; |
| 2287 | switch( p->type ){ |
| 2288 | case 'c': zType = "Check-In"; break; |
| 2289 | /* case 'f': -- forum posts omitted from this loop. See below */ |
| 2290 | case 't': zType = "Ticket Change"; break; |
| 2291 | case 'w': { |
| 2292 | zType = "Wiki Edit"; |
| 2293 | switch( zComment ? *zComment : 0 ){ |
| 2294 | case ':': ++zComment; break; |
| 2295 | case '+': zType = "Wiki Added"; ++zComment; break; |
| 2296 | case '-': zType = "Wiki Removed"; ++zComment; break; |
| 2297 | } |
| 2298 | break; |
| 2299 | } |
| 2300 | } |
| 2301 | blob_init(&p->hdr, 0, 0); |
| 2302 | blob_init(&p->txt, 0, 0); |
| 2303 | blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n", |
| 2304 | db_column_text(&q,1), |
| 2305 | zType, |
| 2306 | zComment, |
| 2307 | zUrl, |
| 2308 | db_column_text(&q,0) |
| 2309 | ); |
| 2310 | if( p->needMod ){ |
| 2311 | blob_appendf(&p->txt, |
| 2312 |
+1
-1
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -62,11 +62,11 @@ | ||
| 62 | 62 | ** On Win32 systems, the file is named "_fossil" and is located in |
| 63 | 63 | ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%. |
| 64 | 64 | ** |
| 65 | 65 | ** Available operations are: |
| 66 | 66 | ** |
| 67 | -** backup Backup all repositories. The argument must the name of | |
| 67 | +** backup Backup all repositories. The argument must be the name of | |
| 68 | 68 | ** a directory into which all backup repositories are written. |
| 69 | 69 | ** |
| 70 | 70 | ** cache Manages the cache used for potentially expensive web |
| 71 | 71 | ** pages. Any additional arguments are passed on verbatim |
| 72 | 72 | ** to the cache command. |
| 73 | 73 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -62,11 +62,11 @@ | |
| 62 | ** On Win32 systems, the file is named "_fossil" and is located in |
| 63 | ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%. |
| 64 | ** |
| 65 | ** Available operations are: |
| 66 | ** |
| 67 | ** backup Backup all repositories. The argument must the name of |
| 68 | ** a directory into which all backup repositories are written. |
| 69 | ** |
| 70 | ** cache Manages the cache used for potentially expensive web |
| 71 | ** pages. Any additional arguments are passed on verbatim |
| 72 | ** to the cache command. |
| 73 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -62,11 +62,11 @@ | |
| 62 | ** On Win32 systems, the file is named "_fossil" and is located in |
| 63 | ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%. |
| 64 | ** |
| 65 | ** Available operations are: |
| 66 | ** |
| 67 | ** backup Backup all repositories. The argument must be the name of |
| 68 | ** a directory into which all backup repositories are written. |
| 69 | ** |
| 70 | ** cache Manages the cache used for potentially expensive web |
| 71 | ** pages. Any additional arguments are passed on verbatim |
| 72 | ** to the cache command. |
| 73 |
+10
-5
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -282,11 +282,11 @@ | ||
| 282 | 282 | ** |
| 283 | 283 | ** If (which<0) then the query pulls only closed branches. If |
| 284 | 284 | ** (which>0) then the query pulls all (closed and opened) |
| 285 | 285 | ** branches. Else the query pulls currently-opened branches. |
| 286 | 286 | */ |
| 287 | -void branch_prepare_list_query(Stmt *pQuery, int brFlags){ | |
| 287 | +void branch_prepare_list_query(Stmt *pQuery, int brFlags, const char *zBrNameGlob){ | |
| 288 | 288 | Blob sql; |
| 289 | 289 | blob_init(&sql, 0, 0); |
| 290 | 290 | brlist_create_temp_table(); |
| 291 | 291 | switch( brFlags & BRL_OPEN_CLOSED_MASK ){ |
| 292 | 292 | case BRL_CLOSED_ONLY: { |
| @@ -295,11 +295,11 @@ | ||
| 295 | 295 | ); |
| 296 | 296 | break; |
| 297 | 297 | } |
| 298 | 298 | case BRL_BOTH: { |
| 299 | 299 | blob_append_sql(&sql, |
| 300 | - "SELECT name FROM tmp_brlist" | |
| 300 | + "SELECT name FROM tmp_brlist WHERE 1" | |
| 301 | 301 | ); |
| 302 | 302 | break; |
| 303 | 303 | } |
| 304 | 304 | case BRL_OPEN_ONLY: { |
| 305 | 305 | blob_append_sql(&sql, |
| @@ -306,10 +306,11 @@ | ||
| 306 | 306 | "SELECT name FROM tmp_brlist WHERE NOT isclosed" |
| 307 | 307 | ); |
| 308 | 308 | break; |
| 309 | 309 | } |
| 310 | 310 | } |
| 311 | + if(zBrNameGlob) blob_append_sql(&sql, " AND (name GLOB %Q)", zBrNameGlob); | |
| 311 | 312 | if( brFlags & BRL_ORDERBY_MTIME ){ |
| 312 | 313 | blob_append_sql(&sql, " ORDER BY -mtime"); |
| 313 | 314 | }else{ |
| 314 | 315 | blob_append_sql(&sql, " ORDER BY name COLLATE nocase"); |
| 315 | 316 | } |
| @@ -355,17 +356,19 @@ | ||
| 355 | 356 | ** |
| 356 | 357 | ** > fossil branch info BRANCH-NAME |
| 357 | 358 | ** |
| 358 | 359 | ** Print information about a branch |
| 359 | 360 | ** |
| 360 | -** > fossil branch list|ls ?OPTIONS? | |
| 361 | +** > fossil branch list|ls ?OPTIONS? ?GLOB? | |
| 361 | 362 | ** |
| 362 | 363 | ** List all branches. Options: |
| 363 | 364 | ** -a|--all List all branches. Default show only open branches |
| 364 | 365 | ** -c|--closed List closed branches. |
| 365 | 366 | ** -r Reverse the sort order |
| 366 | 367 | ** -t Show recently changed branches first |
| 368 | +** | |
| 369 | +** If GLOB is given, show only branches matching the pattern. | |
| 367 | 370 | ** |
| 368 | 371 | ** > fossil branch new BRANCH-NAME BASIS ?OPTIONS? |
| 369 | 372 | ** |
| 370 | 373 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 371 | 374 | ** Supported options for this subcommand include: |
| @@ -418,22 +421,24 @@ | ||
| 418 | 421 | } |
| 419 | 422 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 420 | 423 | Stmt q; |
| 421 | 424 | int vid; |
| 422 | 425 | char *zCurrent = 0; |
| 426 | + const char *zBrNameGlob = 0; | |
| 423 | 427 | int brFlags = BRL_OPEN_ONLY; |
| 424 | 428 | if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH; |
| 425 | 429 | if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY; |
| 426 | 430 | if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME; |
| 427 | 431 | if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE; |
| 432 | + if( g.argc >= 4 ) zBrNameGlob = g.argv[3]; | |
| 428 | 433 | |
| 429 | 434 | if( g.localOpen ){ |
| 430 | 435 | vid = db_lget_int("checkout", 0); |
| 431 | 436 | zCurrent = db_text(0, "SELECT value FROM tagxref" |
| 432 | 437 | " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH); |
| 433 | 438 | } |
| 434 | - branch_prepare_list_query(&q, brFlags); | |
| 439 | + branch_prepare_list_query(&q, brFlags, zBrNameGlob); | |
| 435 | 440 | while( db_step(&q)==SQLITE_ROW ){ |
| 436 | 441 | const char *zBr = db_column_text(&q, 0); |
| 437 | 442 | int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0; |
| 438 | 443 | fossil_print("%s%s\n", (isCur ? "* " : " "), zBr); |
| 439 | 444 | } |
| @@ -595,11 +600,11 @@ | ||
| 595 | 600 | @ reopened).</li> |
| 596 | 601 | @ </ol> |
| 597 | 602 | style_sidebox_end(); |
| 598 | 603 | #endif |
| 599 | 604 | |
| 600 | - branch_prepare_list_query(&q, brFlags); | |
| 605 | + branch_prepare_list_query(&q, brFlags, 0); | |
| 601 | 606 | cnt = 0; |
| 602 | 607 | while( db_step(&q)==SQLITE_ROW ){ |
| 603 | 608 | const char *zBr = db_column_text(&q, 0); |
| 604 | 609 | if( cnt==0 ){ |
| 605 | 610 | if( colorTest ){ |
| 606 | 611 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -282,11 +282,11 @@ | |
| 282 | ** |
| 283 | ** If (which<0) then the query pulls only closed branches. If |
| 284 | ** (which>0) then the query pulls all (closed and opened) |
| 285 | ** branches. Else the query pulls currently-opened branches. |
| 286 | */ |
| 287 | void branch_prepare_list_query(Stmt *pQuery, int brFlags){ |
| 288 | Blob sql; |
| 289 | blob_init(&sql, 0, 0); |
| 290 | brlist_create_temp_table(); |
| 291 | switch( brFlags & BRL_OPEN_CLOSED_MASK ){ |
| 292 | case BRL_CLOSED_ONLY: { |
| @@ -295,11 +295,11 @@ | |
| 295 | ); |
| 296 | break; |
| 297 | } |
| 298 | case BRL_BOTH: { |
| 299 | blob_append_sql(&sql, |
| 300 | "SELECT name FROM tmp_brlist" |
| 301 | ); |
| 302 | break; |
| 303 | } |
| 304 | case BRL_OPEN_ONLY: { |
| 305 | blob_append_sql(&sql, |
| @@ -306,10 +306,11 @@ | |
| 306 | "SELECT name FROM tmp_brlist WHERE NOT isclosed" |
| 307 | ); |
| 308 | break; |
| 309 | } |
| 310 | } |
| 311 | if( brFlags & BRL_ORDERBY_MTIME ){ |
| 312 | blob_append_sql(&sql, " ORDER BY -mtime"); |
| 313 | }else{ |
| 314 | blob_append_sql(&sql, " ORDER BY name COLLATE nocase"); |
| 315 | } |
| @@ -355,17 +356,19 @@ | |
| 355 | ** |
| 356 | ** > fossil branch info BRANCH-NAME |
| 357 | ** |
| 358 | ** Print information about a branch |
| 359 | ** |
| 360 | ** > fossil branch list|ls ?OPTIONS? |
| 361 | ** |
| 362 | ** List all branches. Options: |
| 363 | ** -a|--all List all branches. Default show only open branches |
| 364 | ** -c|--closed List closed branches. |
| 365 | ** -r Reverse the sort order |
| 366 | ** -t Show recently changed branches first |
| 367 | ** |
| 368 | ** > fossil branch new BRANCH-NAME BASIS ?OPTIONS? |
| 369 | ** |
| 370 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 371 | ** Supported options for this subcommand include: |
| @@ -418,22 +421,24 @@ | |
| 418 | } |
| 419 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 420 | Stmt q; |
| 421 | int vid; |
| 422 | char *zCurrent = 0; |
| 423 | int brFlags = BRL_OPEN_ONLY; |
| 424 | if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH; |
| 425 | if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY; |
| 426 | if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME; |
| 427 | if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE; |
| 428 | |
| 429 | if( g.localOpen ){ |
| 430 | vid = db_lget_int("checkout", 0); |
| 431 | zCurrent = db_text(0, "SELECT value FROM tagxref" |
| 432 | " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH); |
| 433 | } |
| 434 | branch_prepare_list_query(&q, brFlags); |
| 435 | while( db_step(&q)==SQLITE_ROW ){ |
| 436 | const char *zBr = db_column_text(&q, 0); |
| 437 | int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0; |
| 438 | fossil_print("%s%s\n", (isCur ? "* " : " "), zBr); |
| 439 | } |
| @@ -595,11 +600,11 @@ | |
| 595 | @ reopened).</li> |
| 596 | @ </ol> |
| 597 | style_sidebox_end(); |
| 598 | #endif |
| 599 | |
| 600 | branch_prepare_list_query(&q, brFlags); |
| 601 | cnt = 0; |
| 602 | while( db_step(&q)==SQLITE_ROW ){ |
| 603 | const char *zBr = db_column_text(&q, 0); |
| 604 | if( cnt==0 ){ |
| 605 | if( colorTest ){ |
| 606 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -282,11 +282,11 @@ | |
| 282 | ** |
| 283 | ** If (which<0) then the query pulls only closed branches. If |
| 284 | ** (which>0) then the query pulls all (closed and opened) |
| 285 | ** branches. Else the query pulls currently-opened branches. |
| 286 | */ |
| 287 | void branch_prepare_list_query(Stmt *pQuery, int brFlags, const char *zBrNameGlob){ |
| 288 | Blob sql; |
| 289 | blob_init(&sql, 0, 0); |
| 290 | brlist_create_temp_table(); |
| 291 | switch( brFlags & BRL_OPEN_CLOSED_MASK ){ |
| 292 | case BRL_CLOSED_ONLY: { |
| @@ -295,11 +295,11 @@ | |
| 295 | ); |
| 296 | break; |
| 297 | } |
| 298 | case BRL_BOTH: { |
| 299 | blob_append_sql(&sql, |
| 300 | "SELECT name FROM tmp_brlist WHERE 1" |
| 301 | ); |
| 302 | break; |
| 303 | } |
| 304 | case BRL_OPEN_ONLY: { |
| 305 | blob_append_sql(&sql, |
| @@ -306,10 +306,11 @@ | |
| 306 | "SELECT name FROM tmp_brlist WHERE NOT isclosed" |
| 307 | ); |
| 308 | break; |
| 309 | } |
| 310 | } |
| 311 | if(zBrNameGlob) blob_append_sql(&sql, " AND (name GLOB %Q)", zBrNameGlob); |
| 312 | if( brFlags & BRL_ORDERBY_MTIME ){ |
| 313 | blob_append_sql(&sql, " ORDER BY -mtime"); |
| 314 | }else{ |
| 315 | blob_append_sql(&sql, " ORDER BY name COLLATE nocase"); |
| 316 | } |
| @@ -355,17 +356,19 @@ | |
| 356 | ** |
| 357 | ** > fossil branch info BRANCH-NAME |
| 358 | ** |
| 359 | ** Print information about a branch |
| 360 | ** |
| 361 | ** > fossil branch list|ls ?OPTIONS? ?GLOB? |
| 362 | ** |
| 363 | ** List all branches. Options: |
| 364 | ** -a|--all List all branches. Default show only open branches |
| 365 | ** -c|--closed List closed branches. |
| 366 | ** -r Reverse the sort order |
| 367 | ** -t Show recently changed branches first |
| 368 | ** |
| 369 | ** If GLOB is given, show only branches matching the pattern. |
| 370 | ** |
| 371 | ** > fossil branch new BRANCH-NAME BASIS ?OPTIONS? |
| 372 | ** |
| 373 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 374 | ** Supported options for this subcommand include: |
| @@ -418,22 +421,24 @@ | |
| 421 | } |
| 422 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 423 | Stmt q; |
| 424 | int vid; |
| 425 | char *zCurrent = 0; |
| 426 | const char *zBrNameGlob = 0; |
| 427 | int brFlags = BRL_OPEN_ONLY; |
| 428 | if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH; |
| 429 | if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY; |
| 430 | if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME; |
| 431 | if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE; |
| 432 | if( g.argc >= 4 ) zBrNameGlob = g.argv[3]; |
| 433 | |
| 434 | if( g.localOpen ){ |
| 435 | vid = db_lget_int("checkout", 0); |
| 436 | zCurrent = db_text(0, "SELECT value FROM tagxref" |
| 437 | " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH); |
| 438 | } |
| 439 | branch_prepare_list_query(&q, brFlags, zBrNameGlob); |
| 440 | while( db_step(&q)==SQLITE_ROW ){ |
| 441 | const char *zBr = db_column_text(&q, 0); |
| 442 | int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0; |
| 443 | fossil_print("%s%s\n", (isCur ? "* " : " "), zBr); |
| 444 | } |
| @@ -595,11 +600,11 @@ | |
| 600 | @ reopened).</li> |
| 601 | @ </ol> |
| 602 | style_sidebox_end(); |
| 603 | #endif |
| 604 | |
| 605 | branch_prepare_list_query(&q, brFlags, 0); |
| 606 | cnt = 0; |
| 607 | while( db_step(&q)==SQLITE_ROW ){ |
| 608 | const char *zBr = db_column_text(&q, 0); |
| 609 | if( cnt==0 ){ |
| 610 | if( colorTest ){ |
| 611 |
-1
| --- src/captcha.c | ||
| +++ src/captcha.c | ||
| @@ -514,11 +514,10 @@ | ||
| 514 | 514 | if( zSeed==0 ) return 0; |
| 515 | 515 | zEntered = P("captcha"); |
| 516 | 516 | if( zEntered==0 || strlen(zEntered)!=8 ) return 0; |
| 517 | 517 | zDecode = captcha_decode((unsigned int)atoi(zSeed)); |
| 518 | 518 | assert( strlen(zDecode)==8 ); |
| 519 | - if( strlen(zEntered)!=8 ) return 0; | |
| 520 | 519 | for(i=0; i<8; i++){ |
| 521 | 520 | char c = zEntered[i]; |
| 522 | 521 | if( c>='A' && c<='F' ) c += 'a' - 'A'; |
| 523 | 522 | if( c=='O' ) c = '0'; |
| 524 | 523 | z[i] = c; |
| 525 | 524 |
| --- src/captcha.c | |
| +++ src/captcha.c | |
| @@ -514,11 +514,10 @@ | |
| 514 | if( zSeed==0 ) return 0; |
| 515 | zEntered = P("captcha"); |
| 516 | if( zEntered==0 || strlen(zEntered)!=8 ) return 0; |
| 517 | zDecode = captcha_decode((unsigned int)atoi(zSeed)); |
| 518 | assert( strlen(zDecode)==8 ); |
| 519 | if( strlen(zEntered)!=8 ) return 0; |
| 520 | for(i=0; i<8; i++){ |
| 521 | char c = zEntered[i]; |
| 522 | if( c>='A' && c<='F' ) c += 'a' - 'A'; |
| 523 | if( c=='O' ) c = '0'; |
| 524 | z[i] = c; |
| 525 |
| --- src/captcha.c | |
| +++ src/captcha.c | |
| @@ -514,11 +514,10 @@ | |
| 514 | if( zSeed==0 ) return 0; |
| 515 | zEntered = P("captcha"); |
| 516 | if( zEntered==0 || strlen(zEntered)!=8 ) return 0; |
| 517 | zDecode = captcha_decode((unsigned int)atoi(zSeed)); |
| 518 | assert( strlen(zDecode)==8 ); |
| 519 | for(i=0; i<8; i++){ |
| 520 | char c = zEntered[i]; |
| 521 | if( c>='A' && c<='F' ) c += 'a' - 'A'; |
| 522 | if( c=='O' ) c = '0'; |
| 523 | z[i] = c; |
| 524 |
+55
-20
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -196,11 +196,11 @@ | ||
| 196 | 196 | |
| 197 | 197 | /* |
| 198 | 198 | ** Set the reply content type |
| 199 | 199 | */ |
| 200 | 200 | void cgi_set_content_type(const char *zType){ |
| 201 | - zContentType = mprintf("%s", zType); | |
| 201 | + zContentType = fossil_strdup(zType); | |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /* |
| 205 | 205 | ** Set the reply content to the specified BLOB. |
| 206 | 206 | */ |
| @@ -213,11 +213,11 @@ | ||
| 213 | 213 | |
| 214 | 214 | /* |
| 215 | 215 | ** Set the reply status code |
| 216 | 216 | */ |
| 217 | 217 | void cgi_set_status(int iStat, const char *zStat){ |
| 218 | - zReplyStatus = mprintf("%s", zStat); | |
| 218 | + zReplyStatus = fossil_strdup(zStat); | |
| 219 | 219 | iReplyStatus = iStat; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | /* |
| 223 | 223 | ** Append text to the header of an HTTP reply |
| @@ -580,14 +580,14 @@ | ||
| 580 | 580 | ** is its fully decoded value. |
| 581 | 581 | ** |
| 582 | 582 | ** Copies are made of both the zName and zValue parameters. |
| 583 | 583 | */ |
| 584 | 584 | void cgi_set_parameter(const char *zName, const char *zValue){ |
| 585 | - cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 0); | |
| 585 | + cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 0); | |
| 586 | 586 | } |
| 587 | 587 | void cgi_set_query_parameter(const char *zName, const char *zValue){ |
| 588 | - cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 1); | |
| 588 | + cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 1); | |
| 589 | 589 | } |
| 590 | 590 | |
| 591 | 591 | /* |
| 592 | 592 | ** Replace a parameter with a new value. |
| 593 | 593 | */ |
| @@ -650,11 +650,11 @@ | ||
| 650 | 650 | /* |
| 651 | 651 | ** Add a query parameter. The zName portion is fixed but a copy |
| 652 | 652 | ** must be made of zValue. |
| 653 | 653 | */ |
| 654 | 654 | void cgi_setenv(const char *zName, const char *zValue){ |
| 655 | - cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0); | |
| 655 | + cgi_set_parameter_nocopy(zName, fossil_strdup(zValue), 0); | |
| 656 | 656 | } |
| 657 | 657 | |
| 658 | 658 | /* |
| 659 | 659 | ** Add a list of query parameters or cookies to the parameter set. |
| 660 | 660 | ** |
| @@ -1050,10 +1050,15 @@ | ||
| 1050 | 1050 | ** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided |
| 1051 | 1051 | ** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and |
| 1052 | 1052 | ** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then |
| 1053 | 1053 | ** assume that PATH_INFO is an empty string and set REQUEST_URI equal |
| 1054 | 1054 | ** to PATH_INFO. |
| 1055 | +** | |
| 1056 | +** Sometimes PATH_INFO is missing and SCRIPT_NAME is not a prefix of | |
| 1057 | +** REQUEST_URI. (See https://fossil-scm.org/forum/forumpost/049e8650ed) | |
| 1058 | +** In that case, truncate SCRIPT_NAME so that it is a proper prefix | |
| 1059 | +** of REQUEST_URI. | |
| 1055 | 1060 | ** |
| 1056 | 1061 | ** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and |
| 1057 | 1062 | ** PATH_INFO when it is empty. |
| 1058 | 1063 | ** |
| 1059 | 1064 | ** CGI Parameter quick reference: |
| @@ -1095,11 +1100,11 @@ | ||
| 1095 | 1100 | nRU = strlen(zRequestUri); |
| 1096 | 1101 | nPI = strlen(zPathInfo); |
| 1097 | 1102 | if( nRU<nPI ){ |
| 1098 | 1103 | malformed_request("PATH_INFO is longer than REQUEST_URI"); |
| 1099 | 1104 | } |
| 1100 | - zScriptName = mprintf("%.*s", (int)(nRU-nPI), zRequestUri); | |
| 1105 | + zScriptName = fossil_strndup(zRequestUri,(int)(nRU-nPI)); | |
| 1101 | 1106 | cgi_set_parameter("SCRIPT_NAME", zScriptName); |
| 1102 | 1107 | } |
| 1103 | 1108 | |
| 1104 | 1109 | #ifdef _WIN32 |
| 1105 | 1110 | /* The Microsoft IIS web server does not define REQUEST_URI, instead it uses |
| @@ -1109,11 +1114,11 @@ | ||
| 1109 | 1114 | if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){ |
| 1110 | 1115 | int i, j; |
| 1111 | 1116 | cgi_set_parameter("REQUEST_URI", zPathInfo); |
| 1112 | 1117 | for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){} |
| 1113 | 1118 | for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){} |
| 1114 | - zPathInfo = mprintf("%.*s", j-i, zPathInfo+i); | |
| 1119 | + zPathInfo = fossil_strndup(zPathInfo+i, j-i); | |
| 1115 | 1120 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1116 | 1121 | } |
| 1117 | 1122 | #endif |
| 1118 | 1123 | if( zRequestUri==0 ){ |
| 1119 | 1124 | const char *z = zPathInfo; |
| @@ -1126,12 +1131,19 @@ | ||
| 1126 | 1131 | } |
| 1127 | 1132 | if( zPathInfo==0 ){ |
| 1128 | 1133 | int i, j; |
| 1129 | 1134 | for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){} |
| 1130 | 1135 | for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){} |
| 1131 | - zPathInfo = mprintf("%.*s", j-i, zRequestUri+i); | |
| 1132 | - cgi_set_parameter("PATH_INFO", zPathInfo); | |
| 1136 | + zPathInfo = fossil_strndup(zRequestUri+i, j-i); | |
| 1137 | + cgi_set_parameter_nocopy("PATH_INFO", zPathInfo, 0); | |
| 1138 | + if( j>i && zScriptName[i]!=0 ){ | |
| 1139 | + /* If SCRIPT_NAME is not a prefix of REQUEST_URI, truncate it so | |
| 1140 | + ** that it is. See https://fossil-scm.org/forum/forumpost/049e8650ed | |
| 1141 | + */ | |
| 1142 | + char *zNew = fossil_strndup(zScriptName, i); | |
| 1143 | + cgi_replace_parameter("SCRIPT_NAME", zNew); | |
| 1144 | + } | |
| 1133 | 1145 | } |
| 1134 | 1146 | #ifdef FOSSIL_ENABLE_JSON |
| 1135 | 1147 | if(noJson==0 && json_request_is_json_api(zPathInfo)){ |
| 1136 | 1148 | /* We need to change some following behaviour depending on whether |
| 1137 | 1149 | ** we are operating in JSON mode or not. We cannot, however, be |
| @@ -1145,30 +1157,30 @@ | ||
| 1145 | 1157 | "Internal misconfiguration of g.json.isJsonMode"); |
| 1146 | 1158 | } |
| 1147 | 1159 | #endif |
| 1148 | 1160 | z = (char*)P("HTTP_COOKIE"); |
| 1149 | 1161 | if( z ){ |
| 1150 | - z = mprintf("%s",z); | |
| 1162 | + z = fossil_strdup(z); | |
| 1151 | 1163 | add_param_list(z, ';'); |
| 1152 | 1164 | } |
| 1153 | 1165 | |
| 1154 | 1166 | z = (char*)P("QUERY_STRING"); |
| 1155 | 1167 | if( z ){ |
| 1156 | - z = mprintf("%s",z); | |
| 1168 | + z = fossil_strdup(z); | |
| 1157 | 1169 | add_param_list(z, '&'); |
| 1158 | 1170 | } |
| 1159 | 1171 | |
| 1160 | 1172 | z = (char*)P("REMOTE_ADDR"); |
| 1161 | 1173 | if( z ){ |
| 1162 | - g.zIpAddr = mprintf("%s", z); | |
| 1174 | + g.zIpAddr = fossil_strdup(z); | |
| 1163 | 1175 | } |
| 1164 | 1176 | |
| 1165 | 1177 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 1166 | 1178 | zType = P("CONTENT_TYPE"); |
| 1167 | 1179 | zSemi = zType ? strchr(zType, ';') : 0; |
| 1168 | 1180 | if( zSemi ){ |
| 1169 | - g.zContentType = mprintf("%.*s", (int)(zSemi-zType), zType); | |
| 1181 | + g.zContentType = fossil_strndup(zType, (int)(zSemi-zType)); | |
| 1170 | 1182 | zType = g.zContentType; |
| 1171 | 1183 | }else{ |
| 1172 | 1184 | g.zContentType = zType; |
| 1173 | 1185 | } |
| 1174 | 1186 | blob_zero(&g.cgiIn); |
| @@ -1477,10 +1489,33 @@ | ||
| 1477 | 1489 | break; |
| 1478 | 1490 | } |
| 1479 | 1491 | } |
| 1480 | 1492 | } |
| 1481 | 1493 | } |
| 1494 | + | |
| 1495 | +/* | |
| 1496 | +** Put information about the N-th parameter into arguments. | |
| 1497 | +** Return non-zero on success, and return 0 if there is no N-th parameter. | |
| 1498 | +*/ | |
| 1499 | +int cgi_param_info( | |
| 1500 | + int N, | |
| 1501 | + const char **pzName, | |
| 1502 | + const char **pzValue, | |
| 1503 | + int *pbIsQP | |
| 1504 | +){ | |
| 1505 | + if( N>=0 && N<nUsedQP ){ | |
| 1506 | + *pzName = aParamQP[N].zName; | |
| 1507 | + *pzValue = aParamQP[N].zValue; | |
| 1508 | + *pbIsQP = aParamQP[N].isQP; | |
| 1509 | + return 1; | |
| 1510 | + }else{ | |
| 1511 | + *pzName = 0; | |
| 1512 | + *pzValue = 0; | |
| 1513 | + *pbIsQP = 0; | |
| 1514 | + return 0; | |
| 1515 | + } | |
| 1516 | +} | |
| 1482 | 1517 | |
| 1483 | 1518 | /* |
| 1484 | 1519 | ** Export all untagged query parameters (but not cookies or environment |
| 1485 | 1520 | ** variables) as hidden values of a form. |
| 1486 | 1521 | */ |
| @@ -1695,11 +1730,11 @@ | ||
| 1695 | 1730 | if( zIpAddr==0 ){ |
| 1696 | 1731 | zIpAddr = cgi_remote_ip(fileno(g.httpIn)); |
| 1697 | 1732 | } |
| 1698 | 1733 | if( zIpAddr ){ |
| 1699 | 1734 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1700 | - g.zIpAddr = mprintf("%s", zIpAddr); | |
| 1735 | + g.zIpAddr = fossil_strdup(zIpAddr); | |
| 1701 | 1736 | } |
| 1702 | 1737 | |
| 1703 | 1738 | |
| 1704 | 1739 | /* Get all the optional fields that follow the first line. |
| 1705 | 1740 | */ |
| @@ -1746,11 +1781,11 @@ | ||
| 1746 | 1781 | }else if( fossil_strcmp(zFieldName,"authorization:")==0 ){ |
| 1747 | 1782 | cgi_setenv("HTTP_AUTHORIZATION", zVal); |
| 1748 | 1783 | }else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){ |
| 1749 | 1784 | const char *zIpAddr = cgi_accept_forwarded_for(zVal); |
| 1750 | 1785 | if( zIpAddr!=0 ){ |
| 1751 | - g.zIpAddr = mprintf("%s", zIpAddr); | |
| 1786 | + g.zIpAddr = fossil_strdup(zIpAddr); | |
| 1752 | 1787 | cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr); |
| 1753 | 1788 | } |
| 1754 | 1789 | }else if( fossil_strcmp(zFieldName,"range:")==0 ){ |
| 1755 | 1790 | int x1 = 0; |
| 1756 | 1791 | int x2 = 0; |
| @@ -1786,11 +1821,11 @@ | ||
| 1786 | 1821 | if( nCycles==0 ){ json_bootstrap_early(); } |
| 1787 | 1822 | #endif |
| 1788 | 1823 | if( zIpAddr ){ |
| 1789 | 1824 | if( nCycles==0 ){ |
| 1790 | 1825 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1791 | - g.zIpAddr = mprintf("%s", zIpAddr); | |
| 1826 | + g.zIpAddr = fossil_strdup(zIpAddr); | |
| 1792 | 1827 | } |
| 1793 | 1828 | }else{ |
| 1794 | 1829 | fossil_panic("missing SSH IP address"); |
| 1795 | 1830 | } |
| 1796 | 1831 | if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){ |
| @@ -1848,11 +1883,11 @@ | ||
| 1848 | 1883 | for(i=0; zToken[i] && zToken[i]!='?'; i++){} |
| 1849 | 1884 | if( zToken[i] ) zToken[i++] = 0; |
| 1850 | 1885 | if( nCycles==0 ){ |
| 1851 | 1886 | cgi_setenv("PATH_INFO", zToken); |
| 1852 | 1887 | }else{ |
| 1853 | - cgi_replace_parameter("PATH_INFO", mprintf("%s",zToken)); | |
| 1888 | + cgi_replace_parameter("PATH_INFO", fossil_strdup(zToken)); | |
| 1854 | 1889 | } |
| 1855 | 1890 | |
| 1856 | 1891 | /* Get all the optional fields that follow the first line. |
| 1857 | 1892 | */ |
| 1858 | 1893 | while( fgets(zLine,sizeof(zLine),g.httpIn) ){ |
| @@ -1870,11 +1905,11 @@ | ||
| 1870 | 1905 | zFieldName[i] = fossil_tolower(zFieldName[i]); |
| 1871 | 1906 | } |
| 1872 | 1907 | if( fossil_strcmp(zFieldName,"content-length:")==0 ){ |
| 1873 | 1908 | content_length = atoi(zVal); |
| 1874 | 1909 | }else if( fossil_strcmp(zFieldName,"content-type:")==0 ){ |
| 1875 | - g.zContentType = zType = mprintf("%s", zVal); | |
| 1910 | + g.zContentType = zType = fossil_strdup(zVal); | |
| 1876 | 1911 | }else if( fossil_strcmp(zFieldName,"host:")==0 ){ |
| 1877 | 1912 | if( nCycles==0 ){ |
| 1878 | 1913 | cgi_setenv("HTTP_HOST", zVal); |
| 1879 | 1914 | } |
| 1880 | 1915 | }else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){ |
| @@ -1947,11 +1982,11 @@ | ||
| 1947 | 1982 | |
| 1948 | 1983 | /* Got all probes now first transport_open is completed |
| 1949 | 1984 | ** so return the command that was requested |
| 1950 | 1985 | */ |
| 1951 | 1986 | g.fSshClient |= CGI_SSH_COMPAT; |
| 1952 | - return mprintf("%s", zToken); | |
| 1987 | + return fossil_strdup(zToken); | |
| 1953 | 1988 | } |
| 1954 | 1989 | |
| 1955 | 1990 | /* |
| 1956 | 1991 | ** This routine handles the old fossil SSH transport_flip |
| 1957 | 1992 | ** and transport_open communications if detected. |
| @@ -2323,11 +2358,11 @@ | ||
| 2323 | 2358 | const char *cgi_ssh_remote_addr(const char *zDefault){ |
| 2324 | 2359 | char *zIndex; |
| 2325 | 2360 | const char *zSshConn = fossil_getenv("SSH_CONNECTION"); |
| 2326 | 2361 | |
| 2327 | 2362 | if( zSshConn && zSshConn[0] ){ |
| 2328 | - char *zSshClient = mprintf("%s",zSshConn); | |
| 2363 | + char *zSshClient = fossil_strdup(zSshConn); | |
| 2329 | 2364 | if( (zIndex = strchr(zSshClient,' '))!=0 ){ |
| 2330 | 2365 | zSshClient[zIndex-zSshClient] = '\0'; |
| 2331 | 2366 | return zSshClient; |
| 2332 | 2367 | } |
| 2333 | 2368 | } |
| 2334 | 2369 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -196,11 +196,11 @@ | |
| 196 | |
| 197 | /* |
| 198 | ** Set the reply content type |
| 199 | */ |
| 200 | void cgi_set_content_type(const char *zType){ |
| 201 | zContentType = mprintf("%s", zType); |
| 202 | } |
| 203 | |
| 204 | /* |
| 205 | ** Set the reply content to the specified BLOB. |
| 206 | */ |
| @@ -213,11 +213,11 @@ | |
| 213 | |
| 214 | /* |
| 215 | ** Set the reply status code |
| 216 | */ |
| 217 | void cgi_set_status(int iStat, const char *zStat){ |
| 218 | zReplyStatus = mprintf("%s", zStat); |
| 219 | iReplyStatus = iStat; |
| 220 | } |
| 221 | |
| 222 | /* |
| 223 | ** Append text to the header of an HTTP reply |
| @@ -580,14 +580,14 @@ | |
| 580 | ** is its fully decoded value. |
| 581 | ** |
| 582 | ** Copies are made of both the zName and zValue parameters. |
| 583 | */ |
| 584 | void cgi_set_parameter(const char *zName, const char *zValue){ |
| 585 | cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 0); |
| 586 | } |
| 587 | void cgi_set_query_parameter(const char *zName, const char *zValue){ |
| 588 | cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 1); |
| 589 | } |
| 590 | |
| 591 | /* |
| 592 | ** Replace a parameter with a new value. |
| 593 | */ |
| @@ -650,11 +650,11 @@ | |
| 650 | /* |
| 651 | ** Add a query parameter. The zName portion is fixed but a copy |
| 652 | ** must be made of zValue. |
| 653 | */ |
| 654 | void cgi_setenv(const char *zName, const char *zValue){ |
| 655 | cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0); |
| 656 | } |
| 657 | |
| 658 | /* |
| 659 | ** Add a list of query parameters or cookies to the parameter set. |
| 660 | ** |
| @@ -1050,10 +1050,15 @@ | |
| 1050 | ** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided |
| 1051 | ** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and |
| 1052 | ** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then |
| 1053 | ** assume that PATH_INFO is an empty string and set REQUEST_URI equal |
| 1054 | ** to PATH_INFO. |
| 1055 | ** |
| 1056 | ** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and |
| 1057 | ** PATH_INFO when it is empty. |
| 1058 | ** |
| 1059 | ** CGI Parameter quick reference: |
| @@ -1095,11 +1100,11 @@ | |
| 1095 | nRU = strlen(zRequestUri); |
| 1096 | nPI = strlen(zPathInfo); |
| 1097 | if( nRU<nPI ){ |
| 1098 | malformed_request("PATH_INFO is longer than REQUEST_URI"); |
| 1099 | } |
| 1100 | zScriptName = mprintf("%.*s", (int)(nRU-nPI), zRequestUri); |
| 1101 | cgi_set_parameter("SCRIPT_NAME", zScriptName); |
| 1102 | } |
| 1103 | |
| 1104 | #ifdef _WIN32 |
| 1105 | /* The Microsoft IIS web server does not define REQUEST_URI, instead it uses |
| @@ -1109,11 +1114,11 @@ | |
| 1109 | if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){ |
| 1110 | int i, j; |
| 1111 | cgi_set_parameter("REQUEST_URI", zPathInfo); |
| 1112 | for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){} |
| 1113 | for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){} |
| 1114 | zPathInfo = mprintf("%.*s", j-i, zPathInfo+i); |
| 1115 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1116 | } |
| 1117 | #endif |
| 1118 | if( zRequestUri==0 ){ |
| 1119 | const char *z = zPathInfo; |
| @@ -1126,12 +1131,19 @@ | |
| 1126 | } |
| 1127 | if( zPathInfo==0 ){ |
| 1128 | int i, j; |
| 1129 | for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){} |
| 1130 | for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){} |
| 1131 | zPathInfo = mprintf("%.*s", j-i, zRequestUri+i); |
| 1132 | cgi_set_parameter("PATH_INFO", zPathInfo); |
| 1133 | } |
| 1134 | #ifdef FOSSIL_ENABLE_JSON |
| 1135 | if(noJson==0 && json_request_is_json_api(zPathInfo)){ |
| 1136 | /* We need to change some following behaviour depending on whether |
| 1137 | ** we are operating in JSON mode or not. We cannot, however, be |
| @@ -1145,30 +1157,30 @@ | |
| 1145 | "Internal misconfiguration of g.json.isJsonMode"); |
| 1146 | } |
| 1147 | #endif |
| 1148 | z = (char*)P("HTTP_COOKIE"); |
| 1149 | if( z ){ |
| 1150 | z = mprintf("%s",z); |
| 1151 | add_param_list(z, ';'); |
| 1152 | } |
| 1153 | |
| 1154 | z = (char*)P("QUERY_STRING"); |
| 1155 | if( z ){ |
| 1156 | z = mprintf("%s",z); |
| 1157 | add_param_list(z, '&'); |
| 1158 | } |
| 1159 | |
| 1160 | z = (char*)P("REMOTE_ADDR"); |
| 1161 | if( z ){ |
| 1162 | g.zIpAddr = mprintf("%s", z); |
| 1163 | } |
| 1164 | |
| 1165 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 1166 | zType = P("CONTENT_TYPE"); |
| 1167 | zSemi = zType ? strchr(zType, ';') : 0; |
| 1168 | if( zSemi ){ |
| 1169 | g.zContentType = mprintf("%.*s", (int)(zSemi-zType), zType); |
| 1170 | zType = g.zContentType; |
| 1171 | }else{ |
| 1172 | g.zContentType = zType; |
| 1173 | } |
| 1174 | blob_zero(&g.cgiIn); |
| @@ -1477,10 +1489,33 @@ | |
| 1477 | break; |
| 1478 | } |
| 1479 | } |
| 1480 | } |
| 1481 | } |
| 1482 | |
| 1483 | /* |
| 1484 | ** Export all untagged query parameters (but not cookies or environment |
| 1485 | ** variables) as hidden values of a form. |
| 1486 | */ |
| @@ -1695,11 +1730,11 @@ | |
| 1695 | if( zIpAddr==0 ){ |
| 1696 | zIpAddr = cgi_remote_ip(fileno(g.httpIn)); |
| 1697 | } |
| 1698 | if( zIpAddr ){ |
| 1699 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1700 | g.zIpAddr = mprintf("%s", zIpAddr); |
| 1701 | } |
| 1702 | |
| 1703 | |
| 1704 | /* Get all the optional fields that follow the first line. |
| 1705 | */ |
| @@ -1746,11 +1781,11 @@ | |
| 1746 | }else if( fossil_strcmp(zFieldName,"authorization:")==0 ){ |
| 1747 | cgi_setenv("HTTP_AUTHORIZATION", zVal); |
| 1748 | }else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){ |
| 1749 | const char *zIpAddr = cgi_accept_forwarded_for(zVal); |
| 1750 | if( zIpAddr!=0 ){ |
| 1751 | g.zIpAddr = mprintf("%s", zIpAddr); |
| 1752 | cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr); |
| 1753 | } |
| 1754 | }else if( fossil_strcmp(zFieldName,"range:")==0 ){ |
| 1755 | int x1 = 0; |
| 1756 | int x2 = 0; |
| @@ -1786,11 +1821,11 @@ | |
| 1786 | if( nCycles==0 ){ json_bootstrap_early(); } |
| 1787 | #endif |
| 1788 | if( zIpAddr ){ |
| 1789 | if( nCycles==0 ){ |
| 1790 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1791 | g.zIpAddr = mprintf("%s", zIpAddr); |
| 1792 | } |
| 1793 | }else{ |
| 1794 | fossil_panic("missing SSH IP address"); |
| 1795 | } |
| 1796 | if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){ |
| @@ -1848,11 +1883,11 @@ | |
| 1848 | for(i=0; zToken[i] && zToken[i]!='?'; i++){} |
| 1849 | if( zToken[i] ) zToken[i++] = 0; |
| 1850 | if( nCycles==0 ){ |
| 1851 | cgi_setenv("PATH_INFO", zToken); |
| 1852 | }else{ |
| 1853 | cgi_replace_parameter("PATH_INFO", mprintf("%s",zToken)); |
| 1854 | } |
| 1855 | |
| 1856 | /* Get all the optional fields that follow the first line. |
| 1857 | */ |
| 1858 | while( fgets(zLine,sizeof(zLine),g.httpIn) ){ |
| @@ -1870,11 +1905,11 @@ | |
| 1870 | zFieldName[i] = fossil_tolower(zFieldName[i]); |
| 1871 | } |
| 1872 | if( fossil_strcmp(zFieldName,"content-length:")==0 ){ |
| 1873 | content_length = atoi(zVal); |
| 1874 | }else if( fossil_strcmp(zFieldName,"content-type:")==0 ){ |
| 1875 | g.zContentType = zType = mprintf("%s", zVal); |
| 1876 | }else if( fossil_strcmp(zFieldName,"host:")==0 ){ |
| 1877 | if( nCycles==0 ){ |
| 1878 | cgi_setenv("HTTP_HOST", zVal); |
| 1879 | } |
| 1880 | }else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){ |
| @@ -1947,11 +1982,11 @@ | |
| 1947 | |
| 1948 | /* Got all probes now first transport_open is completed |
| 1949 | ** so return the command that was requested |
| 1950 | */ |
| 1951 | g.fSshClient |= CGI_SSH_COMPAT; |
| 1952 | return mprintf("%s", zToken); |
| 1953 | } |
| 1954 | |
| 1955 | /* |
| 1956 | ** This routine handles the old fossil SSH transport_flip |
| 1957 | ** and transport_open communications if detected. |
| @@ -2323,11 +2358,11 @@ | |
| 2323 | const char *cgi_ssh_remote_addr(const char *zDefault){ |
| 2324 | char *zIndex; |
| 2325 | const char *zSshConn = fossil_getenv("SSH_CONNECTION"); |
| 2326 | |
| 2327 | if( zSshConn && zSshConn[0] ){ |
| 2328 | char *zSshClient = mprintf("%s",zSshConn); |
| 2329 | if( (zIndex = strchr(zSshClient,' '))!=0 ){ |
| 2330 | zSshClient[zIndex-zSshClient] = '\0'; |
| 2331 | return zSshClient; |
| 2332 | } |
| 2333 | } |
| 2334 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -196,11 +196,11 @@ | |
| 196 | |
| 197 | /* |
| 198 | ** Set the reply content type |
| 199 | */ |
| 200 | void cgi_set_content_type(const char *zType){ |
| 201 | zContentType = fossil_strdup(zType); |
| 202 | } |
| 203 | |
| 204 | /* |
| 205 | ** Set the reply content to the specified BLOB. |
| 206 | */ |
| @@ -213,11 +213,11 @@ | |
| 213 | |
| 214 | /* |
| 215 | ** Set the reply status code |
| 216 | */ |
| 217 | void cgi_set_status(int iStat, const char *zStat){ |
| 218 | zReplyStatus = fossil_strdup(zStat); |
| 219 | iReplyStatus = iStat; |
| 220 | } |
| 221 | |
| 222 | /* |
| 223 | ** Append text to the header of an HTTP reply |
| @@ -580,14 +580,14 @@ | |
| 580 | ** is its fully decoded value. |
| 581 | ** |
| 582 | ** Copies are made of both the zName and zValue parameters. |
| 583 | */ |
| 584 | void cgi_set_parameter(const char *zName, const char *zValue){ |
| 585 | cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 0); |
| 586 | } |
| 587 | void cgi_set_query_parameter(const char *zName, const char *zValue){ |
| 588 | cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 1); |
| 589 | } |
| 590 | |
| 591 | /* |
| 592 | ** Replace a parameter with a new value. |
| 593 | */ |
| @@ -650,11 +650,11 @@ | |
| 650 | /* |
| 651 | ** Add a query parameter. The zName portion is fixed but a copy |
| 652 | ** must be made of zValue. |
| 653 | */ |
| 654 | void cgi_setenv(const char *zName, const char *zValue){ |
| 655 | cgi_set_parameter_nocopy(zName, fossil_strdup(zValue), 0); |
| 656 | } |
| 657 | |
| 658 | /* |
| 659 | ** Add a list of query parameters or cookies to the parameter set. |
| 660 | ** |
| @@ -1050,10 +1050,15 @@ | |
| 1050 | ** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided |
| 1051 | ** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and |
| 1052 | ** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then |
| 1053 | ** assume that PATH_INFO is an empty string and set REQUEST_URI equal |
| 1054 | ** to PATH_INFO. |
| 1055 | ** |
| 1056 | ** Sometimes PATH_INFO is missing and SCRIPT_NAME is not a prefix of |
| 1057 | ** REQUEST_URI. (See https://fossil-scm.org/forum/forumpost/049e8650ed) |
| 1058 | ** In that case, truncate SCRIPT_NAME so that it is a proper prefix |
| 1059 | ** of REQUEST_URI. |
| 1060 | ** |
| 1061 | ** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and |
| 1062 | ** PATH_INFO when it is empty. |
| 1063 | ** |
| 1064 | ** CGI Parameter quick reference: |
| @@ -1095,11 +1100,11 @@ | |
| 1100 | nRU = strlen(zRequestUri); |
| 1101 | nPI = strlen(zPathInfo); |
| 1102 | if( nRU<nPI ){ |
| 1103 | malformed_request("PATH_INFO is longer than REQUEST_URI"); |
| 1104 | } |
| 1105 | zScriptName = fossil_strndup(zRequestUri,(int)(nRU-nPI)); |
| 1106 | cgi_set_parameter("SCRIPT_NAME", zScriptName); |
| 1107 | } |
| 1108 | |
| 1109 | #ifdef _WIN32 |
| 1110 | /* The Microsoft IIS web server does not define REQUEST_URI, instead it uses |
| @@ -1109,11 +1114,11 @@ | |
| 1114 | if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){ |
| 1115 | int i, j; |
| 1116 | cgi_set_parameter("REQUEST_URI", zPathInfo); |
| 1117 | for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){} |
| 1118 | for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){} |
| 1119 | zPathInfo = fossil_strndup(zPathInfo+i, j-i); |
| 1120 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1121 | } |
| 1122 | #endif |
| 1123 | if( zRequestUri==0 ){ |
| 1124 | const char *z = zPathInfo; |
| @@ -1126,12 +1131,19 @@ | |
| 1131 | } |
| 1132 | if( zPathInfo==0 ){ |
| 1133 | int i, j; |
| 1134 | for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){} |
| 1135 | for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){} |
| 1136 | zPathInfo = fossil_strndup(zRequestUri+i, j-i); |
| 1137 | cgi_set_parameter_nocopy("PATH_INFO", zPathInfo, 0); |
| 1138 | if( j>i && zScriptName[i]!=0 ){ |
| 1139 | /* If SCRIPT_NAME is not a prefix of REQUEST_URI, truncate it so |
| 1140 | ** that it is. See https://fossil-scm.org/forum/forumpost/049e8650ed |
| 1141 | */ |
| 1142 | char *zNew = fossil_strndup(zScriptName, i); |
| 1143 | cgi_replace_parameter("SCRIPT_NAME", zNew); |
| 1144 | } |
| 1145 | } |
| 1146 | #ifdef FOSSIL_ENABLE_JSON |
| 1147 | if(noJson==0 && json_request_is_json_api(zPathInfo)){ |
| 1148 | /* We need to change some following behaviour depending on whether |
| 1149 | ** we are operating in JSON mode or not. We cannot, however, be |
| @@ -1145,30 +1157,30 @@ | |
| 1157 | "Internal misconfiguration of g.json.isJsonMode"); |
| 1158 | } |
| 1159 | #endif |
| 1160 | z = (char*)P("HTTP_COOKIE"); |
| 1161 | if( z ){ |
| 1162 | z = fossil_strdup(z); |
| 1163 | add_param_list(z, ';'); |
| 1164 | } |
| 1165 | |
| 1166 | z = (char*)P("QUERY_STRING"); |
| 1167 | if( z ){ |
| 1168 | z = fossil_strdup(z); |
| 1169 | add_param_list(z, '&'); |
| 1170 | } |
| 1171 | |
| 1172 | z = (char*)P("REMOTE_ADDR"); |
| 1173 | if( z ){ |
| 1174 | g.zIpAddr = fossil_strdup(z); |
| 1175 | } |
| 1176 | |
| 1177 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 1178 | zType = P("CONTENT_TYPE"); |
| 1179 | zSemi = zType ? strchr(zType, ';') : 0; |
| 1180 | if( zSemi ){ |
| 1181 | g.zContentType = fossil_strndup(zType, (int)(zSemi-zType)); |
| 1182 | zType = g.zContentType; |
| 1183 | }else{ |
| 1184 | g.zContentType = zType; |
| 1185 | } |
| 1186 | blob_zero(&g.cgiIn); |
| @@ -1477,10 +1489,33 @@ | |
| 1489 | break; |
| 1490 | } |
| 1491 | } |
| 1492 | } |
| 1493 | } |
| 1494 | |
| 1495 | /* |
| 1496 | ** Put information about the N-th parameter into arguments. |
| 1497 | ** Return non-zero on success, and return 0 if there is no N-th parameter. |
| 1498 | */ |
| 1499 | int cgi_param_info( |
| 1500 | int N, |
| 1501 | const char **pzName, |
| 1502 | const char **pzValue, |
| 1503 | int *pbIsQP |
| 1504 | ){ |
| 1505 | if( N>=0 && N<nUsedQP ){ |
| 1506 | *pzName = aParamQP[N].zName; |
| 1507 | *pzValue = aParamQP[N].zValue; |
| 1508 | *pbIsQP = aParamQP[N].isQP; |
| 1509 | return 1; |
| 1510 | }else{ |
| 1511 | *pzName = 0; |
| 1512 | *pzValue = 0; |
| 1513 | *pbIsQP = 0; |
| 1514 | return 0; |
| 1515 | } |
| 1516 | } |
| 1517 | |
| 1518 | /* |
| 1519 | ** Export all untagged query parameters (but not cookies or environment |
| 1520 | ** variables) as hidden values of a form. |
| 1521 | */ |
| @@ -1695,11 +1730,11 @@ | |
| 1730 | if( zIpAddr==0 ){ |
| 1731 | zIpAddr = cgi_remote_ip(fileno(g.httpIn)); |
| 1732 | } |
| 1733 | if( zIpAddr ){ |
| 1734 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1735 | g.zIpAddr = fossil_strdup(zIpAddr); |
| 1736 | } |
| 1737 | |
| 1738 | |
| 1739 | /* Get all the optional fields that follow the first line. |
| 1740 | */ |
| @@ -1746,11 +1781,11 @@ | |
| 1781 | }else if( fossil_strcmp(zFieldName,"authorization:")==0 ){ |
| 1782 | cgi_setenv("HTTP_AUTHORIZATION", zVal); |
| 1783 | }else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){ |
| 1784 | const char *zIpAddr = cgi_accept_forwarded_for(zVal); |
| 1785 | if( zIpAddr!=0 ){ |
| 1786 | g.zIpAddr = fossil_strdup(zIpAddr); |
| 1787 | cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr); |
| 1788 | } |
| 1789 | }else if( fossil_strcmp(zFieldName,"range:")==0 ){ |
| 1790 | int x1 = 0; |
| 1791 | int x2 = 0; |
| @@ -1786,11 +1821,11 @@ | |
| 1821 | if( nCycles==0 ){ json_bootstrap_early(); } |
| 1822 | #endif |
| 1823 | if( zIpAddr ){ |
| 1824 | if( nCycles==0 ){ |
| 1825 | cgi_setenv("REMOTE_ADDR", zIpAddr); |
| 1826 | g.zIpAddr = fossil_strdup(zIpAddr); |
| 1827 | } |
| 1828 | }else{ |
| 1829 | fossil_panic("missing SSH IP address"); |
| 1830 | } |
| 1831 | if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){ |
| @@ -1848,11 +1883,11 @@ | |
| 1883 | for(i=0; zToken[i] && zToken[i]!='?'; i++){} |
| 1884 | if( zToken[i] ) zToken[i++] = 0; |
| 1885 | if( nCycles==0 ){ |
| 1886 | cgi_setenv("PATH_INFO", zToken); |
| 1887 | }else{ |
| 1888 | cgi_replace_parameter("PATH_INFO", fossil_strdup(zToken)); |
| 1889 | } |
| 1890 | |
| 1891 | /* Get all the optional fields that follow the first line. |
| 1892 | */ |
| 1893 | while( fgets(zLine,sizeof(zLine),g.httpIn) ){ |
| @@ -1870,11 +1905,11 @@ | |
| 1905 | zFieldName[i] = fossil_tolower(zFieldName[i]); |
| 1906 | } |
| 1907 | if( fossil_strcmp(zFieldName,"content-length:")==0 ){ |
| 1908 | content_length = atoi(zVal); |
| 1909 | }else if( fossil_strcmp(zFieldName,"content-type:")==0 ){ |
| 1910 | g.zContentType = zType = fossil_strdup(zVal); |
| 1911 | }else if( fossil_strcmp(zFieldName,"host:")==0 ){ |
| 1912 | if( nCycles==0 ){ |
| 1913 | cgi_setenv("HTTP_HOST", zVal); |
| 1914 | } |
| 1915 | }else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){ |
| @@ -1947,11 +1982,11 @@ | |
| 1982 | |
| 1983 | /* Got all probes now first transport_open is completed |
| 1984 | ** so return the command that was requested |
| 1985 | */ |
| 1986 | g.fSshClient |= CGI_SSH_COMPAT; |
| 1987 | return fossil_strdup(zToken); |
| 1988 | } |
| 1989 | |
| 1990 | /* |
| 1991 | ** This routine handles the old fossil SSH transport_flip |
| 1992 | ** and transport_open communications if detected. |
| @@ -2323,11 +2358,11 @@ | |
| 2358 | const char *cgi_ssh_remote_addr(const char *zDefault){ |
| 2359 | char *zIndex; |
| 2360 | const char *zSshConn = fossil_getenv("SSH_CONNECTION"); |
| 2361 | |
| 2362 | if( zSshConn && zSshConn[0] ){ |
| 2363 | char *zSshClient = fossil_strdup(zSshConn); |
| 2364 | if( (zIndex = strchr(zSshClient,' '))!=0 ){ |
| 2365 | zSshClient[zIndex-zSshClient] = '\0'; |
| 2366 | return zSshClient; |
| 2367 | } |
| 2368 | } |
| 2369 |
+6
-3
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -371,16 +371,19 @@ | ||
| 371 | 371 | zSafe[k] = 0; |
| 372 | 372 | if( j<i ){ |
| 373 | 373 | blob_append(&out, zSafe + j, i-j); |
| 374 | 374 | j = i; |
| 375 | 375 | } |
| 376 | - wiki_resolve_hyperlink(&out, WIKI_NOBADLINKS|WIKI_TARGET_BLANK, | |
| 376 | + blob_append_char(&out, '['); | |
| 377 | + wiki_resolve_hyperlink(&out, | |
| 378 | + WIKI_NOBADLINKS|WIKI_TARGET_BLANK|WIKI_NOBRACKET, | |
| 377 | 379 | zSafe+i+1, zClose, sizeof(zClose), zSafe, 0); |
| 378 | 380 | zSafe[k] = ']'; |
| 379 | 381 | j++; |
| 380 | 382 | blob_append(&out, zSafe + j, k - j); |
| 381 | 383 | blob_append(&out, zClose, -1); |
| 384 | + blob_append_char(&out, ']'); | |
| 382 | 385 | i = k; |
| 383 | 386 | j = k+1; |
| 384 | 387 | continue; |
| 385 | 388 | } |
| 386 | 389 | }else if( zSafe[i]=='h' |
| @@ -498,11 +501,11 @@ | ||
| 498 | 501 | ** |
| 499 | 502 | ** The "msgid" values will be in increasing order. |
| 500 | 503 | ** |
| 501 | 504 | ** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero. |
| 502 | 505 | ** |
| 503 | -** The "lmtime" value might be known, in which case it is omitted. | |
| 506 | +** The "lmtime" value might be unknown, in which case it is omitted. | |
| 504 | 507 | ** |
| 505 | 508 | ** The messages are ordered oldest first unless "before" is provided, in which |
| 506 | 509 | ** case they are sorted newest first (to facilitate the client-side UI update). |
| 507 | 510 | ** |
| 508 | 511 | ** As a special case, if this routine encounters an error, e.g. the user's |
| @@ -598,11 +601,11 @@ | ||
| 598 | 601 | blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11); |
| 599 | 602 | if( zLMtime && zLMtime[0] ){ |
| 600 | 603 | blob_appendf(&json, "\"lmtime\":%!j,", zLMtime); |
| 601 | 604 | } |
| 602 | 605 | blob_appendf(&json, "\"xfrom\":%!j,", zFrom); |
| 603 | - blob_appendf(&json, "\"uclr\":%!j,", hash_color(zFrom)); | |
| 606 | + blob_appendf(&json, "\"uclr\":%!j,", user_color(zFrom)); | |
| 604 | 607 | |
| 605 | 608 | zMsg = chat_format_to_html(zRawMsg ? zRawMsg : ""); |
| 606 | 609 | blob_appendf(&json, "\"xmsg\":%!j,", zMsg); |
| 607 | 610 | fossil_free(zMsg); |
| 608 | 611 | |
| 609 | 612 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -371,16 +371,19 @@ | |
| 371 | zSafe[k] = 0; |
| 372 | if( j<i ){ |
| 373 | blob_append(&out, zSafe + j, i-j); |
| 374 | j = i; |
| 375 | } |
| 376 | wiki_resolve_hyperlink(&out, WIKI_NOBADLINKS|WIKI_TARGET_BLANK, |
| 377 | zSafe+i+1, zClose, sizeof(zClose), zSafe, 0); |
| 378 | zSafe[k] = ']'; |
| 379 | j++; |
| 380 | blob_append(&out, zSafe + j, k - j); |
| 381 | blob_append(&out, zClose, -1); |
| 382 | i = k; |
| 383 | j = k+1; |
| 384 | continue; |
| 385 | } |
| 386 | }else if( zSafe[i]=='h' |
| @@ -498,11 +501,11 @@ | |
| 498 | ** |
| 499 | ** The "msgid" values will be in increasing order. |
| 500 | ** |
| 501 | ** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero. |
| 502 | ** |
| 503 | ** The "lmtime" value might be known, in which case it is omitted. |
| 504 | ** |
| 505 | ** The messages are ordered oldest first unless "before" is provided, in which |
| 506 | ** case they are sorted newest first (to facilitate the client-side UI update). |
| 507 | ** |
| 508 | ** As a special case, if this routine encounters an error, e.g. the user's |
| @@ -598,11 +601,11 @@ | |
| 598 | blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11); |
| 599 | if( zLMtime && zLMtime[0] ){ |
| 600 | blob_appendf(&json, "\"lmtime\":%!j,", zLMtime); |
| 601 | } |
| 602 | blob_appendf(&json, "\"xfrom\":%!j,", zFrom); |
| 603 | blob_appendf(&json, "\"uclr\":%!j,", hash_color(zFrom)); |
| 604 | |
| 605 | zMsg = chat_format_to_html(zRawMsg ? zRawMsg : ""); |
| 606 | blob_appendf(&json, "\"xmsg\":%!j,", zMsg); |
| 607 | fossil_free(zMsg); |
| 608 | |
| 609 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -371,16 +371,19 @@ | |
| 371 | zSafe[k] = 0; |
| 372 | if( j<i ){ |
| 373 | blob_append(&out, zSafe + j, i-j); |
| 374 | j = i; |
| 375 | } |
| 376 | blob_append_char(&out, '['); |
| 377 | wiki_resolve_hyperlink(&out, |
| 378 | WIKI_NOBADLINKS|WIKI_TARGET_BLANK|WIKI_NOBRACKET, |
| 379 | zSafe+i+1, zClose, sizeof(zClose), zSafe, 0); |
| 380 | zSafe[k] = ']'; |
| 381 | j++; |
| 382 | blob_append(&out, zSafe + j, k - j); |
| 383 | blob_append(&out, zClose, -1); |
| 384 | blob_append_char(&out, ']'); |
| 385 | i = k; |
| 386 | j = k+1; |
| 387 | continue; |
| 388 | } |
| 389 | }else if( zSafe[i]=='h' |
| @@ -498,11 +501,11 @@ | |
| 501 | ** |
| 502 | ** The "msgid" values will be in increasing order. |
| 503 | ** |
| 504 | ** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero. |
| 505 | ** |
| 506 | ** The "lmtime" value might be unknown, in which case it is omitted. |
| 507 | ** |
| 508 | ** The messages are ordered oldest first unless "before" is provided, in which |
| 509 | ** case they are sorted newest first (to facilitate the client-side UI update). |
| 510 | ** |
| 511 | ** As a special case, if this routine encounters an error, e.g. the user's |
| @@ -598,11 +601,11 @@ | |
| 601 | blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11); |
| 602 | if( zLMtime && zLMtime[0] ){ |
| 603 | blob_appendf(&json, "\"lmtime\":%!j,", zLMtime); |
| 604 | } |
| 605 | blob_appendf(&json, "\"xfrom\":%!j,", zFrom); |
| 606 | blob_appendf(&json, "\"uclr\":%!j,", user_color(zFrom)); |
| 607 | |
| 608 | zMsg = chat_format_to_html(zRawMsg ? zRawMsg : ""); |
| 609 | blob_appendf(&json, "\"xmsg\":%!j,", zMsg); |
| 610 | fossil_free(zMsg); |
| 611 | |
| 612 |
+33
-18
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -584,14 +584,39 @@ | ||
| 584 | 584 | this.e.tab.setAttribute('role', 'button'); |
| 585 | 585 | if(arguments.length){ |
| 586 | 586 | this.setMessage(arguments[0]); |
| 587 | 587 | } |
| 588 | 588 | }; |
| 589 | + /* Left-zero-pad a number to at least 2 digits */ | |
| 590 | + const pad2 = (x)=>(''+x).length>1 ? x : '0'+x; | |
| 591 | + const dowMap = { | |
| 592 | + /* Map of Date.getDay() values to weekday names. */ | |
| 593 | + 0: "Sunday", 1: "Monday", 2: "Tuesday", | |
| 594 | + 3: "Wednesday", 4: "Thursday", 5: "Friday", | |
| 595 | + 6: "Saturday" | |
| 596 | + }; | |
| 597 | + /* Given a Date, returns the timestamp string used in the | |
| 598 | + "tab" part of message widgets. */ | |
| 589 | 599 | const theTime = function(d){ |
| 590 | - return [d.getHours(),":", | |
| 591 | - (d.getMinutes()+100).toString().slice(1,3) | |
| 592 | - ].join(''); | |
| 600 | + return [ | |
| 601 | + //d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/), | |
| 602 | + //'-',pad2(d.getDate()), ' ', | |
| 603 | + d.getHours(),":", | |
| 604 | + (d.getMinutes()+100).toString().slice(1,3), | |
| 605 | + ' ', dowMap[d.getDay()] | |
| 606 | + ].join(''); | |
| 607 | + }; | |
| 608 | + /** Returns the local time string of Date object d, defaulting | |
| 609 | + to the current time. */ | |
| 610 | + const localTimeString = function ff(d){ | |
| 611 | + d || (d = new Date()); | |
| 612 | + return [ | |
| 613 | + d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/), | |
| 614 | + '-',pad2(d.getDate()), | |
| 615 | + ' ',pad2(d.getHours()),':',pad2(d.getMinutes()), | |
| 616 | + ':',pad2(d.getSeconds()) | |
| 617 | + ].join(''); | |
| 593 | 618 | }; |
| 594 | 619 | cf.prototype = { |
| 595 | 620 | setLabel: function(label){ |
| 596 | 621 | return this; |
| 597 | 622 | }, |
| @@ -696,10 +721,15 @@ | ||
| 696 | 721 | D.append(D.span(), localTime8601( |
| 697 | 722 | new Date(eMsg.dataset.lmtime) |
| 698 | 723 | ).replace('T',' ')," ",xfrom," time")); |
| 699 | 724 | } |
| 700 | 725 | }else{ |
| 726 | + /* This might not be necessary any more: it was | |
| 727 | + initially caused by Safari being stricter than | |
| 728 | + other browsers on its time string input, and that | |
| 729 | + has since been resolved by emiting a stricter | |
| 730 | + format. */ | |
| 701 | 731 | // Date doesn't work, so dumb it down... |
| 702 | 732 | D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu")); |
| 703 | 733 | } |
| 704 | 734 | const toolbar = D.addClass(D.div(), 'toolbar'); |
| 705 | 735 | D.append(this.e, toolbar); |
| @@ -891,25 +921,10 @@ | ||
| 891 | 921 | e.preventDefault(); |
| 892 | 922 | Chat.submitMessage(); |
| 893 | 923 | return false; |
| 894 | 924 | }); |
| 895 | 925 | |
| 896 | - /* Returns a new TEXT node with the given text content. */ | |
| 897 | - /** Returns the local time string of Date object d, defaulting | |
| 898 | - to the current time. */ | |
| 899 | - const localTimeString = function ff(d){ | |
| 900 | - if(!ff.pad){ | |
| 901 | - ff.pad = (x)=>(''+x).length>1 ? x : '0'+x; | |
| 902 | - } | |
| 903 | - d || (d = new Date()); | |
| 904 | - return [ | |
| 905 | - d.getFullYear(),'-',ff.pad(d.getMonth()+1/*sigh*/), | |
| 906 | - '-',ff.pad(d.getDate()), | |
| 907 | - ' ',ff.pad(d.getHours()),':',ff.pad(d.getMinutes()), | |
| 908 | - ':',ff.pad(d.getSeconds()) | |
| 909 | - ].join(''); | |
| 910 | - }; | |
| 911 | 926 | /* Returns an almost-ISO8601 form of Date object d. */ |
| 912 | 927 | const iso8601ish = function(d){ |
| 913 | 928 | return d.toISOString() |
| 914 | 929 | .replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu'); |
| 915 | 930 | }; |
| 916 | 931 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -584,14 +584,39 @@ | |
| 584 | this.e.tab.setAttribute('role', 'button'); |
| 585 | if(arguments.length){ |
| 586 | this.setMessage(arguments[0]); |
| 587 | } |
| 588 | }; |
| 589 | const theTime = function(d){ |
| 590 | return [d.getHours(),":", |
| 591 | (d.getMinutes()+100).toString().slice(1,3) |
| 592 | ].join(''); |
| 593 | }; |
| 594 | cf.prototype = { |
| 595 | setLabel: function(label){ |
| 596 | return this; |
| 597 | }, |
| @@ -696,10 +721,15 @@ | |
| 696 | D.append(D.span(), localTime8601( |
| 697 | new Date(eMsg.dataset.lmtime) |
| 698 | ).replace('T',' ')," ",xfrom," time")); |
| 699 | } |
| 700 | }else{ |
| 701 | // Date doesn't work, so dumb it down... |
| 702 | D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu")); |
| 703 | } |
| 704 | const toolbar = D.addClass(D.div(), 'toolbar'); |
| 705 | D.append(this.e, toolbar); |
| @@ -891,25 +921,10 @@ | |
| 891 | e.preventDefault(); |
| 892 | Chat.submitMessage(); |
| 893 | return false; |
| 894 | }); |
| 895 | |
| 896 | /* Returns a new TEXT node with the given text content. */ |
| 897 | /** Returns the local time string of Date object d, defaulting |
| 898 | to the current time. */ |
| 899 | const localTimeString = function ff(d){ |
| 900 | if(!ff.pad){ |
| 901 | ff.pad = (x)=>(''+x).length>1 ? x : '0'+x; |
| 902 | } |
| 903 | d || (d = new Date()); |
| 904 | return [ |
| 905 | d.getFullYear(),'-',ff.pad(d.getMonth()+1/*sigh*/), |
| 906 | '-',ff.pad(d.getDate()), |
| 907 | ' ',ff.pad(d.getHours()),':',ff.pad(d.getMinutes()), |
| 908 | ':',ff.pad(d.getSeconds()) |
| 909 | ].join(''); |
| 910 | }; |
| 911 | /* Returns an almost-ISO8601 form of Date object d. */ |
| 912 | const iso8601ish = function(d){ |
| 913 | return d.toISOString() |
| 914 | .replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu'); |
| 915 | }; |
| 916 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -584,14 +584,39 @@ | |
| 584 | this.e.tab.setAttribute('role', 'button'); |
| 585 | if(arguments.length){ |
| 586 | this.setMessage(arguments[0]); |
| 587 | } |
| 588 | }; |
| 589 | /* Left-zero-pad a number to at least 2 digits */ |
| 590 | const pad2 = (x)=>(''+x).length>1 ? x : '0'+x; |
| 591 | const dowMap = { |
| 592 | /* Map of Date.getDay() values to weekday names. */ |
| 593 | 0: "Sunday", 1: "Monday", 2: "Tuesday", |
| 594 | 3: "Wednesday", 4: "Thursday", 5: "Friday", |
| 595 | 6: "Saturday" |
| 596 | }; |
| 597 | /* Given a Date, returns the timestamp string used in the |
| 598 | "tab" part of message widgets. */ |
| 599 | const theTime = function(d){ |
| 600 | return [ |
| 601 | //d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/), |
| 602 | //'-',pad2(d.getDate()), ' ', |
| 603 | d.getHours(),":", |
| 604 | (d.getMinutes()+100).toString().slice(1,3), |
| 605 | ' ', dowMap[d.getDay()] |
| 606 | ].join(''); |
| 607 | }; |
| 608 | /** Returns the local time string of Date object d, defaulting |
| 609 | to the current time. */ |
| 610 | const localTimeString = function ff(d){ |
| 611 | d || (d = new Date()); |
| 612 | return [ |
| 613 | d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/), |
| 614 | '-',pad2(d.getDate()), |
| 615 | ' ',pad2(d.getHours()),':',pad2(d.getMinutes()), |
| 616 | ':',pad2(d.getSeconds()) |
| 617 | ].join(''); |
| 618 | }; |
| 619 | cf.prototype = { |
| 620 | setLabel: function(label){ |
| 621 | return this; |
| 622 | }, |
| @@ -696,10 +721,15 @@ | |
| 721 | D.append(D.span(), localTime8601( |
| 722 | new Date(eMsg.dataset.lmtime) |
| 723 | ).replace('T',' ')," ",xfrom," time")); |
| 724 | } |
| 725 | }else{ |
| 726 | /* This might not be necessary any more: it was |
| 727 | initially caused by Safari being stricter than |
| 728 | other browsers on its time string input, and that |
| 729 | has since been resolved by emiting a stricter |
| 730 | format. */ |
| 731 | // Date doesn't work, so dumb it down... |
| 732 | D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu")); |
| 733 | } |
| 734 | const toolbar = D.addClass(D.div(), 'toolbar'); |
| 735 | D.append(this.e, toolbar); |
| @@ -891,25 +921,10 @@ | |
| 921 | e.preventDefault(); |
| 922 | Chat.submitMessage(); |
| 923 | return false; |
| 924 | }); |
| 925 | |
| 926 | /* Returns an almost-ISO8601 form of Date object d. */ |
| 927 | const iso8601ish = function(d){ |
| 928 | return d.toISOString() |
| 929 | .replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu'); |
| 930 | }; |
| 931 |
+59
-12
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -1209,17 +1209,24 @@ | ||
| 1209 | 1209 | #if defined(_WIN32) |
| 1210 | 1210 | blob_add_cr(pPrompt); |
| 1211 | 1211 | #endif |
| 1212 | 1212 | if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile); |
| 1213 | 1213 | if( zEditor ){ |
| 1214 | + char *z, *zEnd; | |
| 1214 | 1215 | zCmd = mprintf("%s %$", zEditor, zFile); |
| 1215 | 1216 | fossil_print("%s\n", zCmd); |
| 1216 | 1217 | if( fossil_system(zCmd) ){ |
| 1217 | 1218 | fossil_fatal("editor aborted: \"%s\"", zCmd); |
| 1218 | 1219 | } |
| 1219 | - | |
| 1220 | 1220 | blob_read_from_file(&reply, zFile, ExtFILE); |
| 1221 | + z = blob_str(&reply); | |
| 1222 | + zEnd = strstr(z, "##########"); | |
| 1223 | + if( zEnd ){ | |
| 1224 | + /* Truncate the reply at any sequence of 10 or more # characters. | |
| 1225 | + ** The diff for the -v option occurs after such a sequence. */ | |
| 1226 | + blob_resize(&reply, (int)(zEnd - z)); | |
| 1227 | + } | |
| 1221 | 1228 | }else{ |
| 1222 | 1229 | char zIn[300]; |
| 1223 | 1230 | blob_zero(&reply); |
| 1224 | 1231 | while( fgets(zIn, sizeof(zIn), stdin)!=0 ){ |
| 1225 | 1232 | if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){ |
| @@ -1270,11 +1277,12 @@ | ||
| 1270 | 1277 | */ |
| 1271 | 1278 | static void prepare_commit_comment( |
| 1272 | 1279 | Blob *pComment, |
| 1273 | 1280 | char *zInit, |
| 1274 | 1281 | CheckinInfo *p, |
| 1275 | - int parent_rid | |
| 1282 | + int parent_rid, | |
| 1283 | + int dryRunFlag | |
| 1276 | 1284 | ){ |
| 1277 | 1285 | Blob prompt; |
| 1278 | 1286 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 1279 | 1287 | int bomSize; |
| 1280 | 1288 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| @@ -1289,10 +1297,14 @@ | ||
| 1289 | 1297 | "\n" |
| 1290 | 1298 | "# Enter a commit message for this check-in." |
| 1291 | 1299 | " Lines beginning with # are ignored.\n" |
| 1292 | 1300 | "#\n", -1 |
| 1293 | 1301 | ); |
| 1302 | + if( dryRunFlag ){ | |
| 1303 | + blob_appendf(&prompt, "# DRY-RUN: This is a test commit. No changes " | |
| 1304 | + "will be made to the repository\n#\n"); | |
| 1305 | + } | |
| 1294 | 1306 | blob_appendf(&prompt, "# user: %s\n", |
| 1295 | 1307 | p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 1296 | 1308 | if( p->zBranch && p->zBranch[0] ){ |
| 1297 | 1309 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 1298 | 1310 | }else{ |
| @@ -1324,10 +1336,44 @@ | ||
| 1324 | 1336 | blob_append(&prompt, |
| 1325 | 1337 | "#\n" |
| 1326 | 1338 | "# All merged-in branches will be closed due to the --integrate flag\n" |
| 1327 | 1339 | "#\n", -1 |
| 1328 | 1340 | ); |
| 1341 | + } | |
| 1342 | + if( p->verboseFlag ){ | |
| 1343 | + blob_appendf(&prompt, | |
| 1344 | + "#\n%.78c\n" | |
| 1345 | + "# The following diff is excluded from the commit message:\n#\n", | |
| 1346 | + '#' | |
| 1347 | + ); | |
| 1348 | + if( g.aCommitFile ){ | |
| 1349 | + FileDirList *diffFiles; | |
| 1350 | + int i; | |
| 1351 | + diffFiles = fossil_malloc_zero((g.argc-1) * sizeof(*diffFiles)); | |
| 1352 | + for( i=0; g.aCommitFile[i]!=0; ++i ){ | |
| 1353 | + diffFiles[i].zName = db_text(0, | |
| 1354 | + "SELECT pathname FROM vfile WHERE id=%d", g.aCommitFile[i]); | |
| 1355 | + if( fossil_strcmp(diffFiles[i].zName, "." )==0 ){ | |
| 1356 | + diffFiles[0].zName[0] = '.'; | |
| 1357 | + diffFiles[0].zName[1] = 0; | |
| 1358 | + break; | |
| 1359 | + } | |
| 1360 | + diffFiles[i].nName = strlen(diffFiles[i].zName); | |
| 1361 | + diffFiles[i].nUsed = 0; | |
| 1362 | + } | |
| 1363 | + diff_against_disk(0, 0, diff_get_binary_glob(), | |
| 1364 | + db_get_boolean("diff-binary", 1), | |
| 1365 | + DIFF_VERBOSE, diffFiles, &prompt); | |
| 1366 | + for( i=0; diffFiles[i].zName; ++i ){ | |
| 1367 | + fossil_free(diffFiles[i].zName); | |
| 1368 | + } | |
| 1369 | + fossil_free(diffFiles); | |
| 1370 | + }else{ | |
| 1371 | + diff_against_disk(0, 0, diff_get_binary_glob(), | |
| 1372 | + db_get_boolean("diff-binary", 1), | |
| 1373 | + DIFF_VERBOSE, 0, &prompt); | |
| 1374 | + } | |
| 1329 | 1375 | } |
| 1330 | 1376 | prompt_for_user_comment(pComment, &prompt); |
| 1331 | 1377 | blob_reset(&prompt); |
| 1332 | 1378 | } |
| 1333 | 1379 | |
| @@ -1543,10 +1589,11 @@ | ||
| 1543 | 1589 | Blob *pComment; /* Check-in comment text */ |
| 1544 | 1590 | const char *zMimetype; /* Mimetype of check-in command. May be NULL */ |
| 1545 | 1591 | int verifyDate; /* Verify that child is younger */ |
| 1546 | 1592 | int closeFlag; /* Close the branch being committed */ |
| 1547 | 1593 | int integrateFlag; /* Close merged-in branches */ |
| 1594 | + int verboseFlag; /* Show diff in editor for check-in comment */ | |
| 1548 | 1595 | Blob *pCksum; /* Repository checksum. May be 0 */ |
| 1549 | 1596 | const char *zDateOvrd; /* Date override. If 0 then use 'now' */ |
| 1550 | 1597 | const char *zUserOvrd; /* User override. If 0 then use login_name() */ |
| 1551 | 1598 | const char *zBranch; /* Branch name. May be 0 */ |
| 1552 | 1599 | const char *zColor; /* One-time background color. May be 0 */ |
| @@ -2090,10 +2137,11 @@ | ||
| 2090 | 2137 | ** --integrate close all merged-in branches |
| 2091 | 2138 | ** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment |
| 2092 | 2139 | ** -M|--message-file FILE read the commit comment from given file |
| 2093 | 2140 | ** --mimetype MIMETYPE mimetype of check-in comment |
| 2094 | 2141 | ** -n|--dry-run If given, display instead of run actions |
| 2142 | +** -v|--verbose Show a diff in the commit message prompt | |
| 2095 | 2143 | ** --no-prompt This option disables prompting the user for |
| 2096 | 2144 | ** input and assumes an answer of 'No' for every |
| 2097 | 2145 | ** question. |
| 2098 | 2146 | ** --no-warnings omit all warnings about file contents |
| 2099 | 2147 | ** --no-verify do not run before-commit hooks |
| @@ -2194,10 +2242,11 @@ | ||
| 2194 | 2242 | sCiInfo.zColor = find_option("bgcolor",0,1); |
| 2195 | 2243 | sCiInfo.zBrClr = find_option("branchcolor",0,1); |
| 2196 | 2244 | sCiInfo.closeFlag = find_option("close",0,0)!=0; |
| 2197 | 2245 | sCiInfo.integrateFlag = find_option("integrate",0,0)!=0; |
| 2198 | 2246 | sCiInfo.zMimetype = find_option("mimetype",0,1); |
| 2247 | + sCiInfo.verboseFlag = find_option("verbose", "v", 0)!=0; | |
| 2199 | 2248 | while( (zTag = find_option("tag",0,1))!=0 ){ |
| 2200 | 2249 | if( zTag[0]==0 ) continue; |
| 2201 | 2250 | sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag, |
| 2202 | 2251 | sizeof(char*)*(nTag+2)); |
| 2203 | 2252 | sCiInfo.azTag[nTag++] = zTag; |
| @@ -2441,21 +2490,19 @@ | ||
| 2441 | 2490 | blob_append(&comment, zComment, -1); |
| 2442 | 2491 | }else if( zComFile ){ |
| 2443 | 2492 | blob_zero(&comment); |
| 2444 | 2493 | blob_read_from_file(&comment, zComFile, ExtFILE); |
| 2445 | 2494 | blob_to_utf8_no_bom(&comment, 1); |
| 2446 | - }else if( dryRunFlag ){ | |
| 2447 | - blob_zero(&comment); | |
| 2448 | 2495 | }else if( !noPrompt ){ |
| 2449 | 2496 | char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'"); |
| 2450 | - prepare_commit_comment(&comment, zInit, &sCiInfo, vid); | |
| 2497 | + prepare_commit_comment(&comment, zInit, &sCiInfo, vid, dryRunFlag); | |
| 2451 | 2498 | if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){ |
| 2452 | 2499 | prompt_user("unchanged check-in comment. continue (y/N)? ", &ans); |
| 2453 | 2500 | cReply = blob_str(&ans)[0]; |
| 2454 | 2501 | blob_reset(&ans); |
| 2455 | 2502 | if( cReply!='y' && cReply!='Y' ){ |
| 2456 | - fossil_exit(1); | |
| 2503 | + fossil_fatal("Commit aborted."); | |
| 2457 | 2504 | } |
| 2458 | 2505 | } |
| 2459 | 2506 | free(zInit); |
| 2460 | 2507 | db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment); |
| 2461 | 2508 | db_end_transaction(0); |
| @@ -2464,14 +2511,16 @@ | ||
| 2464 | 2511 | /* Do another auto-pull, renewing the check-in lock. Then set |
| 2465 | 2512 | ** bRecheck so that we loop back above to verify that the check-in |
| 2466 | 2513 | ** is still not against a closed branch and still won't fork. */ |
| 2467 | 2514 | int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK; |
| 2468 | 2515 | if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){ |
| 2469 | - fossil_exit(1); | |
| 2516 | + fossil_fatal("Auto-pull failed. Commit aborted."); | |
| 2470 | 2517 | } |
| 2471 | 2518 | bRecheck = 1; |
| 2472 | 2519 | } |
| 2520 | + }else{ | |
| 2521 | + blob_zero(&comment); | |
| 2473 | 2522 | } |
| 2474 | 2523 | }while( bRecheck ); |
| 2475 | 2524 | |
| 2476 | 2525 | if( blob_size(&comment)==0 ){ |
| 2477 | 2526 | if( !dryRunFlag ){ |
| @@ -2478,15 +2527,14 @@ | ||
| 2478 | 2527 | if( !noPrompt ){ |
| 2479 | 2528 | prompt_user("empty check-in comment. continue (y/N)? ", &ans); |
| 2480 | 2529 | cReply = blob_str(&ans)[0]; |
| 2481 | 2530 | blob_reset(&ans); |
| 2482 | 2531 | }else{ |
| 2483 | - fossil_print("Abandoning commit due to empty check-in comment\n"); | |
| 2484 | 2532 | cReply = 'N'; |
| 2485 | 2533 | } |
| 2486 | 2534 | if( cReply!='y' && cReply!='Y' ){ |
| 2487 | - fossil_exit(1); | |
| 2535 | + fossil_fatal("Abandoning commit due to empty check-in comment\n"); | |
| 2488 | 2536 | } |
| 2489 | 2537 | } |
| 2490 | 2538 | } |
| 2491 | 2539 | |
| 2492 | 2540 | if( !noVerify && hook_exists("before-commit") ){ |
| @@ -2631,15 +2679,14 @@ | ||
| 2631 | 2679 | if( !noPrompt ){ |
| 2632 | 2680 | prompt_user("unable to sign manifest. continue (y/N)? ", &ans); |
| 2633 | 2681 | cReply = blob_str(&ans)[0]; |
| 2634 | 2682 | blob_reset(&ans); |
| 2635 | 2683 | }else{ |
| 2636 | - fossil_print("Abandoning commit due to manifest signing failure\n"); | |
| 2637 | 2684 | cReply = 'N'; |
| 2638 | 2685 | } |
| 2639 | 2686 | if( cReply!='y' && cReply!='Y' ){ |
| 2640 | - fossil_exit(1); | |
| 2687 | + fossil_fatal("Abandoning commit due to manifest signing failure\n"); | |
| 2641 | 2688 | } |
| 2642 | 2689 | } |
| 2643 | 2690 | |
| 2644 | 2691 | /* If the -n|--dry-run option is specified, output the manifest file |
| 2645 | 2692 | ** and rollback the transaction. |
| @@ -2757,11 +2804,11 @@ | ||
| 2757 | 2804 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2758 | 2805 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2759 | 2806 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2760 | 2807 | if( dryRunFlag ){ |
| 2761 | 2808 | db_end_transaction(1); |
| 2762 | - exit(1); | |
| 2809 | + return; | |
| 2763 | 2810 | } |
| 2764 | 2811 | db_end_transaction(0); |
| 2765 | 2812 | |
| 2766 | 2813 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2767 | 2814 | Blob tagslist; |
| 2768 | 2815 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1209,17 +1209,24 @@ | |
| 1209 | #if defined(_WIN32) |
| 1210 | blob_add_cr(pPrompt); |
| 1211 | #endif |
| 1212 | if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile); |
| 1213 | if( zEditor ){ |
| 1214 | zCmd = mprintf("%s %$", zEditor, zFile); |
| 1215 | fossil_print("%s\n", zCmd); |
| 1216 | if( fossil_system(zCmd) ){ |
| 1217 | fossil_fatal("editor aborted: \"%s\"", zCmd); |
| 1218 | } |
| 1219 | |
| 1220 | blob_read_from_file(&reply, zFile, ExtFILE); |
| 1221 | }else{ |
| 1222 | char zIn[300]; |
| 1223 | blob_zero(&reply); |
| 1224 | while( fgets(zIn, sizeof(zIn), stdin)!=0 ){ |
| 1225 | if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){ |
| @@ -1270,11 +1277,12 @@ | |
| 1270 | */ |
| 1271 | static void prepare_commit_comment( |
| 1272 | Blob *pComment, |
| 1273 | char *zInit, |
| 1274 | CheckinInfo *p, |
| 1275 | int parent_rid |
| 1276 | ){ |
| 1277 | Blob prompt; |
| 1278 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 1279 | int bomSize; |
| 1280 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| @@ -1289,10 +1297,14 @@ | |
| 1289 | "\n" |
| 1290 | "# Enter a commit message for this check-in." |
| 1291 | " Lines beginning with # are ignored.\n" |
| 1292 | "#\n", -1 |
| 1293 | ); |
| 1294 | blob_appendf(&prompt, "# user: %s\n", |
| 1295 | p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 1296 | if( p->zBranch && p->zBranch[0] ){ |
| 1297 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 1298 | }else{ |
| @@ -1324,10 +1336,44 @@ | |
| 1324 | blob_append(&prompt, |
| 1325 | "#\n" |
| 1326 | "# All merged-in branches will be closed due to the --integrate flag\n" |
| 1327 | "#\n", -1 |
| 1328 | ); |
| 1329 | } |
| 1330 | prompt_for_user_comment(pComment, &prompt); |
| 1331 | blob_reset(&prompt); |
| 1332 | } |
| 1333 | |
| @@ -1543,10 +1589,11 @@ | |
| 1543 | Blob *pComment; /* Check-in comment text */ |
| 1544 | const char *zMimetype; /* Mimetype of check-in command. May be NULL */ |
| 1545 | int verifyDate; /* Verify that child is younger */ |
| 1546 | int closeFlag; /* Close the branch being committed */ |
| 1547 | int integrateFlag; /* Close merged-in branches */ |
| 1548 | Blob *pCksum; /* Repository checksum. May be 0 */ |
| 1549 | const char *zDateOvrd; /* Date override. If 0 then use 'now' */ |
| 1550 | const char *zUserOvrd; /* User override. If 0 then use login_name() */ |
| 1551 | const char *zBranch; /* Branch name. May be 0 */ |
| 1552 | const char *zColor; /* One-time background color. May be 0 */ |
| @@ -2090,10 +2137,11 @@ | |
| 2090 | ** --integrate close all merged-in branches |
| 2091 | ** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment |
| 2092 | ** -M|--message-file FILE read the commit comment from given file |
| 2093 | ** --mimetype MIMETYPE mimetype of check-in comment |
| 2094 | ** -n|--dry-run If given, display instead of run actions |
| 2095 | ** --no-prompt This option disables prompting the user for |
| 2096 | ** input and assumes an answer of 'No' for every |
| 2097 | ** question. |
| 2098 | ** --no-warnings omit all warnings about file contents |
| 2099 | ** --no-verify do not run before-commit hooks |
| @@ -2194,10 +2242,11 @@ | |
| 2194 | sCiInfo.zColor = find_option("bgcolor",0,1); |
| 2195 | sCiInfo.zBrClr = find_option("branchcolor",0,1); |
| 2196 | sCiInfo.closeFlag = find_option("close",0,0)!=0; |
| 2197 | sCiInfo.integrateFlag = find_option("integrate",0,0)!=0; |
| 2198 | sCiInfo.zMimetype = find_option("mimetype",0,1); |
| 2199 | while( (zTag = find_option("tag",0,1))!=0 ){ |
| 2200 | if( zTag[0]==0 ) continue; |
| 2201 | sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag, |
| 2202 | sizeof(char*)*(nTag+2)); |
| 2203 | sCiInfo.azTag[nTag++] = zTag; |
| @@ -2441,21 +2490,19 @@ | |
| 2441 | blob_append(&comment, zComment, -1); |
| 2442 | }else if( zComFile ){ |
| 2443 | blob_zero(&comment); |
| 2444 | blob_read_from_file(&comment, zComFile, ExtFILE); |
| 2445 | blob_to_utf8_no_bom(&comment, 1); |
| 2446 | }else if( dryRunFlag ){ |
| 2447 | blob_zero(&comment); |
| 2448 | }else if( !noPrompt ){ |
| 2449 | char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'"); |
| 2450 | prepare_commit_comment(&comment, zInit, &sCiInfo, vid); |
| 2451 | if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){ |
| 2452 | prompt_user("unchanged check-in comment. continue (y/N)? ", &ans); |
| 2453 | cReply = blob_str(&ans)[0]; |
| 2454 | blob_reset(&ans); |
| 2455 | if( cReply!='y' && cReply!='Y' ){ |
| 2456 | fossil_exit(1); |
| 2457 | } |
| 2458 | } |
| 2459 | free(zInit); |
| 2460 | db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment); |
| 2461 | db_end_transaction(0); |
| @@ -2464,14 +2511,16 @@ | |
| 2464 | /* Do another auto-pull, renewing the check-in lock. Then set |
| 2465 | ** bRecheck so that we loop back above to verify that the check-in |
| 2466 | ** is still not against a closed branch and still won't fork. */ |
| 2467 | int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK; |
| 2468 | if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){ |
| 2469 | fossil_exit(1); |
| 2470 | } |
| 2471 | bRecheck = 1; |
| 2472 | } |
| 2473 | } |
| 2474 | }while( bRecheck ); |
| 2475 | |
| 2476 | if( blob_size(&comment)==0 ){ |
| 2477 | if( !dryRunFlag ){ |
| @@ -2478,15 +2527,14 @@ | |
| 2478 | if( !noPrompt ){ |
| 2479 | prompt_user("empty check-in comment. continue (y/N)? ", &ans); |
| 2480 | cReply = blob_str(&ans)[0]; |
| 2481 | blob_reset(&ans); |
| 2482 | }else{ |
| 2483 | fossil_print("Abandoning commit due to empty check-in comment\n"); |
| 2484 | cReply = 'N'; |
| 2485 | } |
| 2486 | if( cReply!='y' && cReply!='Y' ){ |
| 2487 | fossil_exit(1); |
| 2488 | } |
| 2489 | } |
| 2490 | } |
| 2491 | |
| 2492 | if( !noVerify && hook_exists("before-commit") ){ |
| @@ -2631,15 +2679,14 @@ | |
| 2631 | if( !noPrompt ){ |
| 2632 | prompt_user("unable to sign manifest. continue (y/N)? ", &ans); |
| 2633 | cReply = blob_str(&ans)[0]; |
| 2634 | blob_reset(&ans); |
| 2635 | }else{ |
| 2636 | fossil_print("Abandoning commit due to manifest signing failure\n"); |
| 2637 | cReply = 'N'; |
| 2638 | } |
| 2639 | if( cReply!='y' && cReply!='Y' ){ |
| 2640 | fossil_exit(1); |
| 2641 | } |
| 2642 | } |
| 2643 | |
| 2644 | /* If the -n|--dry-run option is specified, output the manifest file |
| 2645 | ** and rollback the transaction. |
| @@ -2757,11 +2804,11 @@ | |
| 2757 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2758 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2759 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2760 | if( dryRunFlag ){ |
| 2761 | db_end_transaction(1); |
| 2762 | exit(1); |
| 2763 | } |
| 2764 | db_end_transaction(0); |
| 2765 | |
| 2766 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2767 | Blob tagslist; |
| 2768 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1209,17 +1209,24 @@ | |
| 1209 | #if defined(_WIN32) |
| 1210 | blob_add_cr(pPrompt); |
| 1211 | #endif |
| 1212 | if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile); |
| 1213 | if( zEditor ){ |
| 1214 | char *z, *zEnd; |
| 1215 | zCmd = mprintf("%s %$", zEditor, zFile); |
| 1216 | fossil_print("%s\n", zCmd); |
| 1217 | if( fossil_system(zCmd) ){ |
| 1218 | fossil_fatal("editor aborted: \"%s\"", zCmd); |
| 1219 | } |
| 1220 | blob_read_from_file(&reply, zFile, ExtFILE); |
| 1221 | z = blob_str(&reply); |
| 1222 | zEnd = strstr(z, "##########"); |
| 1223 | if( zEnd ){ |
| 1224 | /* Truncate the reply at any sequence of 10 or more # characters. |
| 1225 | ** The diff for the -v option occurs after such a sequence. */ |
| 1226 | blob_resize(&reply, (int)(zEnd - z)); |
| 1227 | } |
| 1228 | }else{ |
| 1229 | char zIn[300]; |
| 1230 | blob_zero(&reply); |
| 1231 | while( fgets(zIn, sizeof(zIn), stdin)!=0 ){ |
| 1232 | if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){ |
| @@ -1270,11 +1277,12 @@ | |
| 1277 | */ |
| 1278 | static void prepare_commit_comment( |
| 1279 | Blob *pComment, |
| 1280 | char *zInit, |
| 1281 | CheckinInfo *p, |
| 1282 | int parent_rid, |
| 1283 | int dryRunFlag |
| 1284 | ){ |
| 1285 | Blob prompt; |
| 1286 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 1287 | int bomSize; |
| 1288 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| @@ -1289,10 +1297,14 @@ | |
| 1297 | "\n" |
| 1298 | "# Enter a commit message for this check-in." |
| 1299 | " Lines beginning with # are ignored.\n" |
| 1300 | "#\n", -1 |
| 1301 | ); |
| 1302 | if( dryRunFlag ){ |
| 1303 | blob_appendf(&prompt, "# DRY-RUN: This is a test commit. No changes " |
| 1304 | "will be made to the repository\n#\n"); |
| 1305 | } |
| 1306 | blob_appendf(&prompt, "# user: %s\n", |
| 1307 | p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 1308 | if( p->zBranch && p->zBranch[0] ){ |
| 1309 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 1310 | }else{ |
| @@ -1324,10 +1336,44 @@ | |
| 1336 | blob_append(&prompt, |
| 1337 | "#\n" |
| 1338 | "# All merged-in branches will be closed due to the --integrate flag\n" |
| 1339 | "#\n", -1 |
| 1340 | ); |
| 1341 | } |
| 1342 | if( p->verboseFlag ){ |
| 1343 | blob_appendf(&prompt, |
| 1344 | "#\n%.78c\n" |
| 1345 | "# The following diff is excluded from the commit message:\n#\n", |
| 1346 | '#' |
| 1347 | ); |
| 1348 | if( g.aCommitFile ){ |
| 1349 | FileDirList *diffFiles; |
| 1350 | int i; |
| 1351 | diffFiles = fossil_malloc_zero((g.argc-1) * sizeof(*diffFiles)); |
| 1352 | for( i=0; g.aCommitFile[i]!=0; ++i ){ |
| 1353 | diffFiles[i].zName = db_text(0, |
| 1354 | "SELECT pathname FROM vfile WHERE id=%d", g.aCommitFile[i]); |
| 1355 | if( fossil_strcmp(diffFiles[i].zName, "." )==0 ){ |
| 1356 | diffFiles[0].zName[0] = '.'; |
| 1357 | diffFiles[0].zName[1] = 0; |
| 1358 | break; |
| 1359 | } |
| 1360 | diffFiles[i].nName = strlen(diffFiles[i].zName); |
| 1361 | diffFiles[i].nUsed = 0; |
| 1362 | } |
| 1363 | diff_against_disk(0, 0, diff_get_binary_glob(), |
| 1364 | db_get_boolean("diff-binary", 1), |
| 1365 | DIFF_VERBOSE, diffFiles, &prompt); |
| 1366 | for( i=0; diffFiles[i].zName; ++i ){ |
| 1367 | fossil_free(diffFiles[i].zName); |
| 1368 | } |
| 1369 | fossil_free(diffFiles); |
| 1370 | }else{ |
| 1371 | diff_against_disk(0, 0, diff_get_binary_glob(), |
| 1372 | db_get_boolean("diff-binary", 1), |
| 1373 | DIFF_VERBOSE, 0, &prompt); |
| 1374 | } |
| 1375 | } |
| 1376 | prompt_for_user_comment(pComment, &prompt); |
| 1377 | blob_reset(&prompt); |
| 1378 | } |
| 1379 | |
| @@ -1543,10 +1589,11 @@ | |
| 1589 | Blob *pComment; /* Check-in comment text */ |
| 1590 | const char *zMimetype; /* Mimetype of check-in command. May be NULL */ |
| 1591 | int verifyDate; /* Verify that child is younger */ |
| 1592 | int closeFlag; /* Close the branch being committed */ |
| 1593 | int integrateFlag; /* Close merged-in branches */ |
| 1594 | int verboseFlag; /* Show diff in editor for check-in comment */ |
| 1595 | Blob *pCksum; /* Repository checksum. May be 0 */ |
| 1596 | const char *zDateOvrd; /* Date override. If 0 then use 'now' */ |
| 1597 | const char *zUserOvrd; /* User override. If 0 then use login_name() */ |
| 1598 | const char *zBranch; /* Branch name. May be 0 */ |
| 1599 | const char *zColor; /* One-time background color. May be 0 */ |
| @@ -2090,10 +2137,11 @@ | |
| 2137 | ** --integrate close all merged-in branches |
| 2138 | ** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment |
| 2139 | ** -M|--message-file FILE read the commit comment from given file |
| 2140 | ** --mimetype MIMETYPE mimetype of check-in comment |
| 2141 | ** -n|--dry-run If given, display instead of run actions |
| 2142 | ** -v|--verbose Show a diff in the commit message prompt |
| 2143 | ** --no-prompt This option disables prompting the user for |
| 2144 | ** input and assumes an answer of 'No' for every |
| 2145 | ** question. |
| 2146 | ** --no-warnings omit all warnings about file contents |
| 2147 | ** --no-verify do not run before-commit hooks |
| @@ -2194,10 +2242,11 @@ | |
| 2242 | sCiInfo.zColor = find_option("bgcolor",0,1); |
| 2243 | sCiInfo.zBrClr = find_option("branchcolor",0,1); |
| 2244 | sCiInfo.closeFlag = find_option("close",0,0)!=0; |
| 2245 | sCiInfo.integrateFlag = find_option("integrate",0,0)!=0; |
| 2246 | sCiInfo.zMimetype = find_option("mimetype",0,1); |
| 2247 | sCiInfo.verboseFlag = find_option("verbose", "v", 0)!=0; |
| 2248 | while( (zTag = find_option("tag",0,1))!=0 ){ |
| 2249 | if( zTag[0]==0 ) continue; |
| 2250 | sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag, |
| 2251 | sizeof(char*)*(nTag+2)); |
| 2252 | sCiInfo.azTag[nTag++] = zTag; |
| @@ -2441,21 +2490,19 @@ | |
| 2490 | blob_append(&comment, zComment, -1); |
| 2491 | }else if( zComFile ){ |
| 2492 | blob_zero(&comment); |
| 2493 | blob_read_from_file(&comment, zComFile, ExtFILE); |
| 2494 | blob_to_utf8_no_bom(&comment, 1); |
| 2495 | }else if( !noPrompt ){ |
| 2496 | char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'"); |
| 2497 | prepare_commit_comment(&comment, zInit, &sCiInfo, vid, dryRunFlag); |
| 2498 | if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){ |
| 2499 | prompt_user("unchanged check-in comment. continue (y/N)? ", &ans); |
| 2500 | cReply = blob_str(&ans)[0]; |
| 2501 | blob_reset(&ans); |
| 2502 | if( cReply!='y' && cReply!='Y' ){ |
| 2503 | fossil_fatal("Commit aborted."); |
| 2504 | } |
| 2505 | } |
| 2506 | free(zInit); |
| 2507 | db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment); |
| 2508 | db_end_transaction(0); |
| @@ -2464,14 +2511,16 @@ | |
| 2511 | /* Do another auto-pull, renewing the check-in lock. Then set |
| 2512 | ** bRecheck so that we loop back above to verify that the check-in |
| 2513 | ** is still not against a closed branch and still won't fork. */ |
| 2514 | int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK; |
| 2515 | if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){ |
| 2516 | fossil_fatal("Auto-pull failed. Commit aborted."); |
| 2517 | } |
| 2518 | bRecheck = 1; |
| 2519 | } |
| 2520 | }else{ |
| 2521 | blob_zero(&comment); |
| 2522 | } |
| 2523 | }while( bRecheck ); |
| 2524 | |
| 2525 | if( blob_size(&comment)==0 ){ |
| 2526 | if( !dryRunFlag ){ |
| @@ -2478,15 +2527,14 @@ | |
| 2527 | if( !noPrompt ){ |
| 2528 | prompt_user("empty check-in comment. continue (y/N)? ", &ans); |
| 2529 | cReply = blob_str(&ans)[0]; |
| 2530 | blob_reset(&ans); |
| 2531 | }else{ |
| 2532 | cReply = 'N'; |
| 2533 | } |
| 2534 | if( cReply!='y' && cReply!='Y' ){ |
| 2535 | fossil_fatal("Abandoning commit due to empty check-in comment\n"); |
| 2536 | } |
| 2537 | } |
| 2538 | } |
| 2539 | |
| 2540 | if( !noVerify && hook_exists("before-commit") ){ |
| @@ -2631,15 +2679,14 @@ | |
| 2679 | if( !noPrompt ){ |
| 2680 | prompt_user("unable to sign manifest. continue (y/N)? ", &ans); |
| 2681 | cReply = blob_str(&ans)[0]; |
| 2682 | blob_reset(&ans); |
| 2683 | }else{ |
| 2684 | cReply = 'N'; |
| 2685 | } |
| 2686 | if( cReply!='y' && cReply!='Y' ){ |
| 2687 | fossil_fatal("Abandoning commit due to manifest signing failure\n"); |
| 2688 | } |
| 2689 | } |
| 2690 | |
| 2691 | /* If the -n|--dry-run option is specified, output the manifest file |
| 2692 | ** and rollback the transaction. |
| @@ -2757,11 +2804,11 @@ | |
| 2804 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2805 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2806 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2807 | if( dryRunFlag ){ |
| 2808 | db_end_transaction(1); |
| 2809 | return; |
| 2810 | } |
| 2811 | db_end_transaction(0); |
| 2812 | |
| 2813 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2814 | Blob tagslist; |
| 2815 |
+1
-1
| --- src/checkout.c | ||
| +++ src/checkout.c | ||
| @@ -397,11 +397,11 @@ | ||
| 397 | 397 | ** The opposite of "[[open]]". Close the current database connection. |
| 398 | 398 | ** Require a -f or --force flag if there are unsaved changes in the |
| 399 | 399 | ** current check-out or if there is non-empty stash. |
| 400 | 400 | ** |
| 401 | 401 | ** Options: |
| 402 | -** --force|-f necessary to close a check out with uncommitted changes | |
| 402 | +** -f|--force necessary to close a check out with uncommitted changes | |
| 403 | 403 | ** |
| 404 | 404 | ** See also: [[open]] |
| 405 | 405 | */ |
| 406 | 406 | void close_cmd(void){ |
| 407 | 407 | int forceFlag = find_option("force","f",0)!=0; |
| 408 | 408 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -397,11 +397,11 @@ | |
| 397 | ** The opposite of "[[open]]". Close the current database connection. |
| 398 | ** Require a -f or --force flag if there are unsaved changes in the |
| 399 | ** current check-out or if there is non-empty stash. |
| 400 | ** |
| 401 | ** Options: |
| 402 | ** --force|-f necessary to close a check out with uncommitted changes |
| 403 | ** |
| 404 | ** See also: [[open]] |
| 405 | */ |
| 406 | void close_cmd(void){ |
| 407 | int forceFlag = find_option("force","f",0)!=0; |
| 408 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -397,11 +397,11 @@ | |
| 397 | ** The opposite of "[[open]]". Close the current database connection. |
| 398 | ** Require a -f or --force flag if there are unsaved changes in the |
| 399 | ** current check-out or if there is non-empty stash. |
| 400 | ** |
| 401 | ** Options: |
| 402 | ** -f|--force necessary to close a check out with uncommitted changes |
| 403 | ** |
| 404 | ** See also: [[open]] |
| 405 | */ |
| 406 | void close_cmd(void){ |
| 407 | int forceFlag = find_option("force","f",0)!=0; |
| 408 |
+2
-2
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -121,12 +121,12 @@ | ||
| 121 | 121 | ** By default, the current login name is used to create the default |
| 122 | 122 | ** admin user for the new clone. This can be overridden using |
| 123 | 123 | ** the -A|--admin-user parameter. |
| 124 | 124 | ** |
| 125 | 125 | ** Options: |
| 126 | -** --admin-user|-A USERNAME Make USERNAME the administrator | |
| 127 | -** --httpauth|-B USER:PASS Add HTTP Basic Authorization to requests | |
| 126 | +** -A|--admin-user USERNAME Make USERNAME the administrator | |
| 127 | +** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests | |
| 128 | 128 | ** --nested Allow opening a repository inside an opened |
| 129 | 129 | ** checkout |
| 130 | 130 | ** --nocompress Omit extra delta compression |
| 131 | 131 | ** --no-open Clone only. Do not open a check-out. |
| 132 | 132 | ** --once Don't remember the URI. |
| 133 | 133 | |
| 134 | 134 | ADDED src/color.c |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -121,12 +121,12 @@ | |
| 121 | ** By default, the current login name is used to create the default |
| 122 | ** admin user for the new clone. This can be overridden using |
| 123 | ** the -A|--admin-user parameter. |
| 124 | ** |
| 125 | ** Options: |
| 126 | ** --admin-user|-A USERNAME Make USERNAME the administrator |
| 127 | ** --httpauth|-B USER:PASS Add HTTP Basic Authorization to requests |
| 128 | ** --nested Allow opening a repository inside an opened |
| 129 | ** checkout |
| 130 | ** --nocompress Omit extra delta compression |
| 131 | ** --no-open Clone only. Do not open a check-out. |
| 132 | ** --once Don't remember the URI. |
| 133 | |
| 134 | DDED src/color.c |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -121,12 +121,12 @@ | |
| 121 | ** By default, the current login name is used to create the default |
| 122 | ** admin user for the new clone. This can be overridden using |
| 123 | ** the -A|--admin-user parameter. |
| 124 | ** |
| 125 | ** Options: |
| 126 | ** -A|--admin-user USERNAME Make USERNAME the administrator |
| 127 | ** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests |
| 128 | ** --nested Allow opening a repository inside an opened |
| 129 | ** checkout |
| 130 | ** --nocompress Omit extra delta compression |
| 131 | ** --no-open Clone only. Do not open a check-out. |
| 132 | ** --once Don't remember the URI. |
| 133 | |
| 134 | DDED src/color.c |
+24
| --- a/src/color.c | ||
| +++ b/src/color.c | ||
| @@ -0,0 +1,24 @@ | ||
| 1 | +/* | |
| 2 | +** Copyright (c) 2007 D. Richard Hipp | |
| 3 | +** | |
| 4 | +** This program is free software; you can redistribute it and/or | |
| 5 | +** modify it under the terms of the Simplified BSD License (also | |
| 6 | +** known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | + | |
| 8 | +** This program is distributed in the hope that it will be useful, | |
| 9 | +** but without any warranty; without even the implied warranty of | |
| 10 | +** merchantability or fitness for a particular purpose. | |
| 11 | +** | |
| 12 | +** Author contact information: | |
| 13 | +** [email protected] | |
| 14 | +** http://www.hwaci.com/drh/ | |
| 15 | +** | |
| 16 | +******************************************************************************* | |
| 17 | +** | |
| 18 | +** This file contains code used to select colors based on branch and | |
| 19 | +** user names. | |
| 20 | +** | |
| 21 | +*/ | |
| 22 | +#include "config.h" | |
| 23 | +#include <string.h>int i; /* Loop counter */ /label>Branch %s(zNm): | |
| 24 | + @ </label><br /test-hash-color |
| --- a/src/color.c | |
| +++ b/src/color.c | |
| @@ -0,0 +1,24 @@ | |
| --- a/src/color.c | |
| +++ b/src/color.c | |
| @@ -0,0 +1,24 @@ | |
| 1 | /* |
| 2 | ** Copyright (c) 2007 D. Richard Hipp |
| 3 | ** |
| 4 | ** This program is free software; you can redistribute it and/or |
| 5 | ** modify it under the terms of the Simplified BSD License (also |
| 6 | ** known as the "2-Clause License" or "FreeBSD License".) |
| 7 | |
| 8 | ** This program is distributed in the hope that it will be useful, |
| 9 | ** but without any warranty; without even the implied warranty of |
| 10 | ** merchantability or fitness for a particular purpose. |
| 11 | ** |
| 12 | ** Author contact information: |
| 13 | ** [email protected] |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** This file contains code used to select colors based on branch and |
| 19 | ** user names. |
| 20 | ** |
| 21 | */ |
| 22 | #include "config.h" |
| 23 | #include <string.h>int i; /* Loop counter */ /label>Branch %s(zNm): |
| 24 | @ </label><br /test-hash-color |
+3
-4
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -89,10 +89,11 @@ | ||
| 89 | 89 | const char *zName; /* Name of the configuration parameter */ |
| 90 | 90 | int groupMask; /* Which config groups is it part of */ |
| 91 | 91 | } aConfig[] = { |
| 92 | 92 | { "css", CONFIGSET_CSS }, |
| 93 | 93 | { "header", CONFIGSET_SKIN }, |
| 94 | + { "mainmenu", CONFIGSET_SKIN }, | |
| 94 | 95 | { "footer", CONFIGSET_SKIN }, |
| 95 | 96 | { "details", CONFIGSET_SKIN }, |
| 96 | 97 | { "js", CONFIGSET_SKIN }, |
| 97 | 98 | { "logo-mimetype", CONFIGSET_SKIN }, |
| 98 | 99 | { "logo-image", CONFIGSET_SKIN }, |
| @@ -112,14 +113,11 @@ | ||
| 112 | 113 | { "timeline-utc", CONFIGSET_SKIN }, |
| 113 | 114 | { "adunit", CONFIGSET_SKIN }, |
| 114 | 115 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 115 | 116 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 116 | 117 | { "default-csp", CONFIGSET_SKIN }, |
| 117 | - { "sitemap-docidx", CONFIGSET_SKIN }, | |
| 118 | - { "sitemap-download", CONFIGSET_SKIN }, | |
| 119 | - { "sitemap-license", CONFIGSET_SKIN }, | |
| 120 | - { "sitemap-contact", CONFIGSET_SKIN }, | |
| 118 | + { "sitemap-extra", CONFIGSET_SKIN }, | |
| 121 | 119 | { "safe-html", CONFIGSET_SKIN }, |
| 122 | 120 | |
| 123 | 121 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 124 | 122 | { "th1-docs", CONFIGSET_TH1 }, |
| 125 | 123 | #endif |
| @@ -167,10 +165,11 @@ | ||
| 167 | 165 | { "ticket-title-expr", CONFIGSET_TKT }, |
| 168 | 166 | { "ticket-closed-expr", CONFIGSET_TKT }, |
| 169 | 167 | { "@reportfmt", CONFIGSET_TKT }, |
| 170 | 168 | |
| 171 | 169 | { "@user", CONFIGSET_USER }, |
| 170 | + { "user-color-map", CONFIGSET_USER }, | |
| 172 | 171 | |
| 173 | 172 | { "@concealed", CONFIGSET_ADDR }, |
| 174 | 173 | |
| 175 | 174 | { "@shun", CONFIGSET_SHUN }, |
| 176 | 175 | |
| 177 | 176 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -89,10 +89,11 @@ | |
| 89 | const char *zName; /* Name of the configuration parameter */ |
| 90 | int groupMask; /* Which config groups is it part of */ |
| 91 | } aConfig[] = { |
| 92 | { "css", CONFIGSET_CSS }, |
| 93 | { "header", CONFIGSET_SKIN }, |
| 94 | { "footer", CONFIGSET_SKIN }, |
| 95 | { "details", CONFIGSET_SKIN }, |
| 96 | { "js", CONFIGSET_SKIN }, |
| 97 | { "logo-mimetype", CONFIGSET_SKIN }, |
| 98 | { "logo-image", CONFIGSET_SKIN }, |
| @@ -112,14 +113,11 @@ | |
| 112 | { "timeline-utc", CONFIGSET_SKIN }, |
| 113 | { "adunit", CONFIGSET_SKIN }, |
| 114 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 115 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 116 | { "default-csp", CONFIGSET_SKIN }, |
| 117 | { "sitemap-docidx", CONFIGSET_SKIN }, |
| 118 | { "sitemap-download", CONFIGSET_SKIN }, |
| 119 | { "sitemap-license", CONFIGSET_SKIN }, |
| 120 | { "sitemap-contact", CONFIGSET_SKIN }, |
| 121 | { "safe-html", CONFIGSET_SKIN }, |
| 122 | |
| 123 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 124 | { "th1-docs", CONFIGSET_TH1 }, |
| 125 | #endif |
| @@ -167,10 +165,11 @@ | |
| 167 | { "ticket-title-expr", CONFIGSET_TKT }, |
| 168 | { "ticket-closed-expr", CONFIGSET_TKT }, |
| 169 | { "@reportfmt", CONFIGSET_TKT }, |
| 170 | |
| 171 | { "@user", CONFIGSET_USER }, |
| 172 | |
| 173 | { "@concealed", CONFIGSET_ADDR }, |
| 174 | |
| 175 | { "@shun", CONFIGSET_SHUN }, |
| 176 | |
| 177 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -89,10 +89,11 @@ | |
| 89 | const char *zName; /* Name of the configuration parameter */ |
| 90 | int groupMask; /* Which config groups is it part of */ |
| 91 | } aConfig[] = { |
| 92 | { "css", CONFIGSET_CSS }, |
| 93 | { "header", CONFIGSET_SKIN }, |
| 94 | { "mainmenu", CONFIGSET_SKIN }, |
| 95 | { "footer", CONFIGSET_SKIN }, |
| 96 | { "details", CONFIGSET_SKIN }, |
| 97 | { "js", CONFIGSET_SKIN }, |
| 98 | { "logo-mimetype", CONFIGSET_SKIN }, |
| 99 | { "logo-image", CONFIGSET_SKIN }, |
| @@ -112,14 +113,11 @@ | |
| 113 | { "timeline-utc", CONFIGSET_SKIN }, |
| 114 | { "adunit", CONFIGSET_SKIN }, |
| 115 | { "adunit-omit-if-admin", CONFIGSET_SKIN }, |
| 116 | { "adunit-omit-if-user", CONFIGSET_SKIN }, |
| 117 | { "default-csp", CONFIGSET_SKIN }, |
| 118 | { "sitemap-extra", CONFIGSET_SKIN }, |
| 119 | { "safe-html", CONFIGSET_SKIN }, |
| 120 | |
| 121 | #ifdef FOSSIL_ENABLE_TH1_DOCS |
| 122 | { "th1-docs", CONFIGSET_TH1 }, |
| 123 | #endif |
| @@ -167,10 +165,11 @@ | |
| 165 | { "ticket-title-expr", CONFIGSET_TKT }, |
| 166 | { "ticket-closed-expr", CONFIGSET_TKT }, |
| 167 | { "@reportfmt", CONFIGSET_TKT }, |
| 168 | |
| 169 | { "@user", CONFIGSET_USER }, |
| 170 | { "user-color-map", CONFIGSET_USER }, |
| 171 | |
| 172 | { "@concealed", CONFIGSET_ADDR }, |
| 173 | |
| 174 | { "@shun", CONFIGSET_SHUN }, |
| 175 | |
| 176 |
+17
-4
| --- src/content.c | ||
| +++ src/content.c | ||
| @@ -555,14 +555,13 @@ | ||
| 555 | 555 | ** or not the entry is a phantom |
| 556 | 556 | */ |
| 557 | 557 | db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash); |
| 558 | 558 | if( db_step(&s1)==SQLITE_ROW ){ |
| 559 | 559 | rid = db_column_int(&s1, 0); |
| 560 | - if( db_column_int(&s1, 1)>=0 || pBlob==0 ){ | |
| 561 | - /* Either the entry is not a phantom or it is a phantom but we | |
| 562 | - ** have no data with which to dephantomize it. In either case, | |
| 563 | - ** there is nothing for us to do other than return the RID. */ | |
| 560 | + if( db_column_int(&s1, 1)>=0 ){ | |
| 561 | + /* The entry is not a phantom. There is nothing for us to do | |
| 562 | + ** other than return the RID. */ | |
| 564 | 563 | db_finalize(&s1); |
| 565 | 564 | db_end_transaction(0); |
| 566 | 565 | return rid; |
| 567 | 566 | } |
| 568 | 567 | }else{ |
| @@ -798,10 +797,12 @@ | ||
| 798 | 797 | ** gives the smallest delta is choosen. |
| 799 | 798 | ** |
| 800 | 799 | ** If rid is already a delta from some other place then no |
| 801 | 800 | ** conversion occurs and this is a no-op unless force==1. If force==1, |
| 802 | 801 | ** then nSrc must also be 1. |
| 802 | +** | |
| 803 | +** If rid refers to a phantom, no delta is created. | |
| 803 | 804 | ** |
| 804 | 805 | ** Never generate a delta that carries a private artifact into a public |
| 805 | 806 | ** artifact. Otherwise, when we go to send the public artifact on a |
| 806 | 807 | ** sync operation, the other end of the sync will never be able to receive |
| 807 | 808 | ** the source of the delta. It is OK to delta private->private and |
| @@ -825,14 +826,26 @@ | ||
| 825 | 826 | Blob bestDelta; /* Best delta seen so far */ |
| 826 | 827 | int bestSrc = 0; /* Which aSrc is the source of the best delta */ |
| 827 | 828 | int rc = 0; /* Value to return */ |
| 828 | 829 | int i; /* Loop variable for aSrc[] */ |
| 829 | 830 | |
| 831 | + /* | |
| 832 | + ** Historically this routine gracefully ignored the rid 0, but the | |
| 833 | + ** addition of a call to content_is_available() in [188ffef2] caused | |
| 834 | + ** rid 0 to trigger an assert via bag_find(). Rather than track down | |
| 835 | + ** all such calls (e.g. the one via /technoteedit), we'll continue | |
| 836 | + ** to gracefully ignore rid 0 here. | |
| 837 | + */ | |
| 838 | + if( 0==rid ) return 0; | |
| 839 | + | |
| 830 | 840 | /* If rid is already a child (a delta) of some other artifact, return |
| 831 | 841 | ** immediately if the force flags is false |
| 832 | 842 | */ |
| 833 | 843 | if( !force && delta_source_rid(rid)>0 ) return 0; |
| 844 | + | |
| 845 | + /* If rid refers to a phantom, skip deltification. */ | |
| 846 | + if( 0==content_is_available(rid) ) return 0; | |
| 834 | 847 | |
| 835 | 848 | /* Get the complete content of the object to be delta-ed. If the size |
| 836 | 849 | ** is less than 50 bytes, then there really is no point in trying to do |
| 837 | 850 | ** a delta, so return immediately |
| 838 | 851 | */ |
| 839 | 852 |
| --- src/content.c | |
| +++ src/content.c | |
| @@ -555,14 +555,13 @@ | |
| 555 | ** or not the entry is a phantom |
| 556 | */ |
| 557 | db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash); |
| 558 | if( db_step(&s1)==SQLITE_ROW ){ |
| 559 | rid = db_column_int(&s1, 0); |
| 560 | if( db_column_int(&s1, 1)>=0 || pBlob==0 ){ |
| 561 | /* Either the entry is not a phantom or it is a phantom but we |
| 562 | ** have no data with which to dephantomize it. In either case, |
| 563 | ** there is nothing for us to do other than return the RID. */ |
| 564 | db_finalize(&s1); |
| 565 | db_end_transaction(0); |
| 566 | return rid; |
| 567 | } |
| 568 | }else{ |
| @@ -798,10 +797,12 @@ | |
| 798 | ** gives the smallest delta is choosen. |
| 799 | ** |
| 800 | ** If rid is already a delta from some other place then no |
| 801 | ** conversion occurs and this is a no-op unless force==1. If force==1, |
| 802 | ** then nSrc must also be 1. |
| 803 | ** |
| 804 | ** Never generate a delta that carries a private artifact into a public |
| 805 | ** artifact. Otherwise, when we go to send the public artifact on a |
| 806 | ** sync operation, the other end of the sync will never be able to receive |
| 807 | ** the source of the delta. It is OK to delta private->private and |
| @@ -825,14 +826,26 @@ | |
| 825 | Blob bestDelta; /* Best delta seen so far */ |
| 826 | int bestSrc = 0; /* Which aSrc is the source of the best delta */ |
| 827 | int rc = 0; /* Value to return */ |
| 828 | int i; /* Loop variable for aSrc[] */ |
| 829 | |
| 830 | /* If rid is already a child (a delta) of some other artifact, return |
| 831 | ** immediately if the force flags is false |
| 832 | */ |
| 833 | if( !force && delta_source_rid(rid)>0 ) return 0; |
| 834 | |
| 835 | /* Get the complete content of the object to be delta-ed. If the size |
| 836 | ** is less than 50 bytes, then there really is no point in trying to do |
| 837 | ** a delta, so return immediately |
| 838 | */ |
| 839 |
| --- src/content.c | |
| +++ src/content.c | |
| @@ -555,14 +555,13 @@ | |
| 555 | ** or not the entry is a phantom |
| 556 | */ |
| 557 | db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash); |
| 558 | if( db_step(&s1)==SQLITE_ROW ){ |
| 559 | rid = db_column_int(&s1, 0); |
| 560 | if( db_column_int(&s1, 1)>=0 ){ |
| 561 | /* The entry is not a phantom. There is nothing for us to do |
| 562 | ** other than return the RID. */ |
| 563 | db_finalize(&s1); |
| 564 | db_end_transaction(0); |
| 565 | return rid; |
| 566 | } |
| 567 | }else{ |
| @@ -798,10 +797,12 @@ | |
| 797 | ** gives the smallest delta is choosen. |
| 798 | ** |
| 799 | ** If rid is already a delta from some other place then no |
| 800 | ** conversion occurs and this is a no-op unless force==1. If force==1, |
| 801 | ** then nSrc must also be 1. |
| 802 | ** |
| 803 | ** If rid refers to a phantom, no delta is created. |
| 804 | ** |
| 805 | ** Never generate a delta that carries a private artifact into a public |
| 806 | ** artifact. Otherwise, when we go to send the public artifact on a |
| 807 | ** sync operation, the other end of the sync will never be able to receive |
| 808 | ** the source of the delta. It is OK to delta private->private and |
| @@ -825,14 +826,26 @@ | |
| 826 | Blob bestDelta; /* Best delta seen so far */ |
| 827 | int bestSrc = 0; /* Which aSrc is the source of the best delta */ |
| 828 | int rc = 0; /* Value to return */ |
| 829 | int i; /* Loop variable for aSrc[] */ |
| 830 | |
| 831 | /* |
| 832 | ** Historically this routine gracefully ignored the rid 0, but the |
| 833 | ** addition of a call to content_is_available() in [188ffef2] caused |
| 834 | ** rid 0 to trigger an assert via bag_find(). Rather than track down |
| 835 | ** all such calls (e.g. the one via /technoteedit), we'll continue |
| 836 | ** to gracefully ignore rid 0 here. |
| 837 | */ |
| 838 | if( 0==rid ) return 0; |
| 839 | |
| 840 | /* If rid is already a child (a delta) of some other artifact, return |
| 841 | ** immediately if the force flags is false |
| 842 | */ |
| 843 | if( !force && delta_source_rid(rid)>0 ) return 0; |
| 844 | |
| 845 | /* If rid refers to a phantom, skip deltification. */ |
| 846 | if( 0==content_is_available(rid) ) return 0; |
| 847 | |
| 848 | /* Get the complete content of the object to be delta-ed. If the size |
| 849 | ** is less than 50 bytes, then there really is no point in trying to do |
| 850 | ** a delta, so return immediately |
| 851 | */ |
| 852 |
+35
-16
| --- src/cookies.c | ||
| +++ src/cookies.c | ||
| @@ -52,10 +52,11 @@ | ||
| 52 | 52 | ** char *cookie_value(zPName, zDefault); |
| 53 | 53 | ** |
| 54 | 54 | ** Look up the value of a cookie parameter zPName. Return zDefault if |
| 55 | 55 | ** there is no display preferences cookie or if zPName does not exist. |
| 56 | 56 | */ |
| 57 | +#include "config.h" | |
| 57 | 58 | #include "cookies.h" |
| 58 | 59 | #include <assert.h> |
| 59 | 60 | #include <string.h> |
| 60 | 61 | |
| 61 | 62 | #if INTERFACE |
| @@ -208,24 +209,42 @@ | ||
| 208 | 209 | ** Show the current display settings contained in the |
| 209 | 210 | ** "fossil_display_settings" cookie. |
| 210 | 211 | */ |
| 211 | 212 | void cookie_page(void){ |
| 212 | 213 | int i; |
| 213 | - if( PB("clear") ){ | |
| 214 | - cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1); | |
| 215 | - cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, ""); | |
| 216 | - } | |
| 214 | + int nCookie = 0; | |
| 215 | + const char *zName = 0; | |
| 216 | + const char *zValue = 0; | |
| 217 | + int isQP = 0; | |
| 217 | 218 | cookie_parse(); |
| 218 | - style_header("User Preference Cookie Values"); | |
| 219 | - if( cookies.nParam ){ | |
| 220 | - style_submenu_element("Clear", "%R/cookies?clear"); | |
| 221 | - } | |
| 222 | - @ <p>The following are user preference settings held in the | |
| 223 | - @ "fossil_display_settings" cookie. | |
| 224 | - @ <ul> | |
| 225 | - @ <li>Raw cookie value: "%h(PD("fossil_display_settings",""))" | |
| 226 | - for(i=0; i<cookies.nParam; i++){ | |
| 227 | - @ <li>%h(cookies.aParam[i].zPName): "%h(cookies.aParam[i].zPValue)" | |
| 228 | - } | |
| 229 | - @ </ul> | |
| 219 | + style_header("Cookies"); | |
| 220 | + @ <form method="POST"> | |
| 221 | + @ <ol> | |
| 222 | + for(i=0; cgi_param_info(i, &zName, &zValue, &isQP); i++){ | |
| 223 | + char *zDel; | |
| 224 | + if( isQP ) continue; | |
| 225 | + if( fossil_isupper(zName[0]) ) continue; | |
| 226 | + zDel = mprintf("del%s",zName); | |
| 227 | + if( P(zDel)!=0 ){ | |
| 228 | + cgi_set_cookie(zName, "", 0, -1); | |
| 229 | + cgi_redirect("cookies"); | |
| 230 | + } | |
| 231 | + nCookie++; | |
| 232 | + @ <li><p><b>%h(zName)</b>: %h(zValue) | |
| 233 | + @ <input type="submit" name="%h(zDel)" value="Delete"> | |
| 234 | + if( fossil_strcmp(zName, DISPLAY_SETTINGS_COOKIE)==0 && cookies.nParam>0 ){ | |
| 235 | + int j; | |
| 236 | + @ <ul> | |
| 237 | + for(j=0; j<cookies.nParam; j++){ | |
| 238 | + @ <li>%h(cookies.aParam[j].zPName): "%h(cookies.aParam[j].zPValue)" | |
| 239 | + } | |
| 240 | + @ </ul> | |
| 241 | + } | |
| 242 | + fossil_free(zDel); | |
| 243 | + } | |
| 244 | + @ </ol> | |
| 245 | + @ </form> | |
| 246 | + if( nCookie==0 ){ | |
| 247 | + @ <p><i>No cookies for this website</i></p> | |
| 248 | + } | |
| 230 | 249 | style_finish_page(); |
| 231 | 250 | } |
| 232 | 251 |
| --- src/cookies.c | |
| +++ src/cookies.c | |
| @@ -52,10 +52,11 @@ | |
| 52 | ** char *cookie_value(zPName, zDefault); |
| 53 | ** |
| 54 | ** Look up the value of a cookie parameter zPName. Return zDefault if |
| 55 | ** there is no display preferences cookie or if zPName does not exist. |
| 56 | */ |
| 57 | #include "cookies.h" |
| 58 | #include <assert.h> |
| 59 | #include <string.h> |
| 60 | |
| 61 | #if INTERFACE |
| @@ -208,24 +209,42 @@ | |
| 208 | ** Show the current display settings contained in the |
| 209 | ** "fossil_display_settings" cookie. |
| 210 | */ |
| 211 | void cookie_page(void){ |
| 212 | int i; |
| 213 | if( PB("clear") ){ |
| 214 | cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1); |
| 215 | cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, ""); |
| 216 | } |
| 217 | cookie_parse(); |
| 218 | style_header("User Preference Cookie Values"); |
| 219 | if( cookies.nParam ){ |
| 220 | style_submenu_element("Clear", "%R/cookies?clear"); |
| 221 | } |
| 222 | @ <p>The following are user preference settings held in the |
| 223 | @ "fossil_display_settings" cookie. |
| 224 | @ <ul> |
| 225 | @ <li>Raw cookie value: "%h(PD("fossil_display_settings",""))" |
| 226 | for(i=0; i<cookies.nParam; i++){ |
| 227 | @ <li>%h(cookies.aParam[i].zPName): "%h(cookies.aParam[i].zPValue)" |
| 228 | } |
| 229 | @ </ul> |
| 230 | style_finish_page(); |
| 231 | } |
| 232 |
| --- src/cookies.c | |
| +++ src/cookies.c | |
| @@ -52,10 +52,11 @@ | |
| 52 | ** char *cookie_value(zPName, zDefault); |
| 53 | ** |
| 54 | ** Look up the value of a cookie parameter zPName. Return zDefault if |
| 55 | ** there is no display preferences cookie or if zPName does not exist. |
| 56 | */ |
| 57 | #include "config.h" |
| 58 | #include "cookies.h" |
| 59 | #include <assert.h> |
| 60 | #include <string.h> |
| 61 | |
| 62 | #if INTERFACE |
| @@ -208,24 +209,42 @@ | |
| 209 | ** Show the current display settings contained in the |
| 210 | ** "fossil_display_settings" cookie. |
| 211 | */ |
| 212 | void cookie_page(void){ |
| 213 | int i; |
| 214 | int nCookie = 0; |
| 215 | const char *zName = 0; |
| 216 | const char *zValue = 0; |
| 217 | int isQP = 0; |
| 218 | cookie_parse(); |
| 219 | style_header("Cookies"); |
| 220 | @ <form method="POST"> |
| 221 | @ <ol> |
| 222 | for(i=0; cgi_param_info(i, &zName, &zValue, &isQP); i++){ |
| 223 | char *zDel; |
| 224 | if( isQP ) continue; |
| 225 | if( fossil_isupper(zName[0]) ) continue; |
| 226 | zDel = mprintf("del%s",zName); |
| 227 | if( P(zDel)!=0 ){ |
| 228 | cgi_set_cookie(zName, "", 0, -1); |
| 229 | cgi_redirect("cookies"); |
| 230 | } |
| 231 | nCookie++; |
| 232 | @ <li><p><b>%h(zName)</b>: %h(zValue) |
| 233 | @ <input type="submit" name="%h(zDel)" value="Delete"> |
| 234 | if( fossil_strcmp(zName, DISPLAY_SETTINGS_COOKIE)==0 && cookies.nParam>0 ){ |
| 235 | int j; |
| 236 | @ <ul> |
| 237 | for(j=0; j<cookies.nParam; j++){ |
| 238 | @ <li>%h(cookies.aParam[j].zPName): "%h(cookies.aParam[j].zPValue)" |
| 239 | } |
| 240 | @ </ul> |
| 241 | } |
| 242 | fossil_free(zDel); |
| 243 | } |
| 244 | @ </ol> |
| 245 | @ </form> |
| 246 | if( nCookie==0 ){ |
| 247 | @ <p><i>No cookies for this website</i></p> |
| 248 | } |
| 249 | style_finish_page(); |
| 250 | } |
| 251 |
M
src/db.c
+2
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1618,10 +1618,11 @@ | ||
| 1618 | 1618 | if( rc!=SQLITE_OK ){ |
| 1619 | 1619 | db_err("[%s]: %s", zDbName, sqlite3_errmsg(db)); |
| 1620 | 1620 | } |
| 1621 | 1621 | db_maybe_set_encryption_key(db, zDbName); |
| 1622 | 1622 | sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc); |
| 1623 | + sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_TRIGGER, 0, &rc); | |
| 1623 | 1624 | sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc); |
| 1624 | 1625 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc); |
| 1625 | 1626 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc); |
| 1626 | 1627 | sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc); |
| 1627 | 1628 | sqlite3_busy_timeout(db, 15000); |
| @@ -2684,11 +2685,11 @@ | ||
| 2684 | 2685 | ** default users "anonymous", "nobody", "reader", "developer", and their |
| 2685 | 2686 | ** associated permissions will be copied. |
| 2686 | 2687 | ** |
| 2687 | 2688 | ** Options: |
| 2688 | 2689 | ** --template FILE Copy settings from repository file |
| 2689 | -** --admin-user|-A USERNAME Select given USERNAME as admin user | |
| 2690 | +** -A|--admin-user USERNAME Select given USERNAME as admin user | |
| 2690 | 2691 | ** --date-override DATETIME Use DATETIME as time of the initial check-in |
| 2691 | 2692 | ** --sha1 Use an initial hash policy of "sha1" |
| 2692 | 2693 | ** |
| 2693 | 2694 | ** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in |
| 2694 | 2695 | ** year-month-day form, it may be truncated, the "T" may be replaced by |
| 2695 | 2696 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1618,10 +1618,11 @@ | |
| 1618 | if( rc!=SQLITE_OK ){ |
| 1619 | db_err("[%s]: %s", zDbName, sqlite3_errmsg(db)); |
| 1620 | } |
| 1621 | db_maybe_set_encryption_key(db, zDbName); |
| 1622 | sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc); |
| 1623 | sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc); |
| 1624 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc); |
| 1625 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc); |
| 1626 | sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc); |
| 1627 | sqlite3_busy_timeout(db, 15000); |
| @@ -2684,11 +2685,11 @@ | |
| 2684 | ** default users "anonymous", "nobody", "reader", "developer", and their |
| 2685 | ** associated permissions will be copied. |
| 2686 | ** |
| 2687 | ** Options: |
| 2688 | ** --template FILE Copy settings from repository file |
| 2689 | ** --admin-user|-A USERNAME Select given USERNAME as admin user |
| 2690 | ** --date-override DATETIME Use DATETIME as time of the initial check-in |
| 2691 | ** --sha1 Use an initial hash policy of "sha1" |
| 2692 | ** |
| 2693 | ** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in |
| 2694 | ** year-month-day form, it may be truncated, the "T" may be replaced by |
| 2695 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1618,10 +1618,11 @@ | |
| 1618 | if( rc!=SQLITE_OK ){ |
| 1619 | db_err("[%s]: %s", zDbName, sqlite3_errmsg(db)); |
| 1620 | } |
| 1621 | db_maybe_set_encryption_key(db, zDbName); |
| 1622 | sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc); |
| 1623 | sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_TRIGGER, 0, &rc); |
| 1624 | sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc); |
| 1625 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc); |
| 1626 | sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc); |
| 1627 | sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc); |
| 1628 | sqlite3_busy_timeout(db, 15000); |
| @@ -2684,11 +2685,11 @@ | |
| 2685 | ** default users "anonymous", "nobody", "reader", "developer", and their |
| 2686 | ** associated permissions will be copied. |
| 2687 | ** |
| 2688 | ** Options: |
| 2689 | ** --template FILE Copy settings from repository file |
| 2690 | ** -A|--admin-user USERNAME Select given USERNAME as admin user |
| 2691 | ** --date-override DATETIME Use DATETIME as time of the initial check-in |
| 2692 | ** --sha1 Use an initial hash policy of "sha1" |
| 2693 | ** |
| 2694 | ** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in |
| 2695 | ** year-month-day form, it may be truncated, the "T" may be replaced by |
| 2696 |
+13
| --- src/default.css | ||
| +++ src/default.css | ||
| @@ -1762,5 +1762,18 @@ | ||
| 1762 | 1762 | |
| 1763 | 1763 | body.chat #chat-drop-details img { |
| 1764 | 1764 | max-width: 45%; |
| 1765 | 1765 | max-height: 45%; |
| 1766 | 1766 | } |
| 1767 | + | |
| 1768 | +/* Objects in the "desktoponly" class are invisible on mobile */ | |
| 1769 | +@media screen and (max-width: 600px) { | |
| 1770 | + .desktoponly { | |
| 1771 | + display: none; | |
| 1772 | + } | |
| 1773 | +} | |
| 1774 | +/* Objects in the "wideonly" class are invisible only on wide-screen desktops */ | |
| 1775 | +@media screen and (max-width: 1200px) { | |
| 1776 | + .wideonly { | |
| 1777 | + display: none; | |
| 1778 | + } | |
| 1779 | +} | |
| 1767 | 1780 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -1762,5 +1762,18 @@ | |
| 1762 | |
| 1763 | body.chat #chat-drop-details img { |
| 1764 | max-width: 45%; |
| 1765 | max-height: 45%; |
| 1766 | } |
| 1767 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -1762,5 +1762,18 @@ | |
| 1762 | |
| 1763 | body.chat #chat-drop-details img { |
| 1764 | max-width: 45%; |
| 1765 | max-height: 45%; |
| 1766 | } |
| 1767 | |
| 1768 | /* Objects in the "desktoponly" class are invisible on mobile */ |
| 1769 | @media screen and (max-width: 600px) { |
| 1770 | .desktoponly { |
| 1771 | display: none; |
| 1772 | } |
| 1773 | } |
| 1774 | /* Objects in the "wideonly" class are invisible only on wide-screen desktops */ |
| 1775 | @media screen and (max-width: 1200px) { |
| 1776 | .wideonly { |
| 1777 | display: none; |
| 1778 | } |
| 1779 | } |
| 1780 |
+1
-1
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -2090,11 +2090,11 @@ | ||
| 2090 | 2090 | if( zErr ) fossil_fatal("regex error: %s", zErr); |
| 2091 | 2091 | } |
| 2092 | 2092 | diffFlag = diff_options(); |
| 2093 | 2093 | verify_all_options(); |
| 2094 | 2094 | if( g.argc!=4 ) usage("FILE1 FILE2"); |
| 2095 | - diff_print_filenames(g.argv[2], g.argv[3], diffFlag); | |
| 2095 | + diff_print_filenames(g.argv[2], g.argv[3], diffFlag, 0); | |
| 2096 | 2096 | blob_read_from_file(&a, g.argv[2], ExtFILE); |
| 2097 | 2097 | blob_read_from_file(&b, g.argv[3], ExtFILE); |
| 2098 | 2098 | blob_zero(&out); |
| 2099 | 2099 | text_diff(&a, &b, &out, pRe, diffFlag); |
| 2100 | 2100 | blob_write_to_file(&out, "-"); |
| 2101 | 2101 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -2090,11 +2090,11 @@ | |
| 2090 | if( zErr ) fossil_fatal("regex error: %s", zErr); |
| 2091 | } |
| 2092 | diffFlag = diff_options(); |
| 2093 | verify_all_options(); |
| 2094 | if( g.argc!=4 ) usage("FILE1 FILE2"); |
| 2095 | diff_print_filenames(g.argv[2], g.argv[3], diffFlag); |
| 2096 | blob_read_from_file(&a, g.argv[2], ExtFILE); |
| 2097 | blob_read_from_file(&b, g.argv[3], ExtFILE); |
| 2098 | blob_zero(&out); |
| 2099 | text_diff(&a, &b, &out, pRe, diffFlag); |
| 2100 | blob_write_to_file(&out, "-"); |
| 2101 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -2090,11 +2090,11 @@ | |
| 2090 | if( zErr ) fossil_fatal("regex error: %s", zErr); |
| 2091 | } |
| 2092 | diffFlag = diff_options(); |
| 2093 | verify_all_options(); |
| 2094 | if( g.argc!=4 ) usage("FILE1 FILE2"); |
| 2095 | diff_print_filenames(g.argv[2], g.argv[3], diffFlag, 0); |
| 2096 | blob_read_from_file(&a, g.argv[2], ExtFILE); |
| 2097 | blob_read_from_file(&b, g.argv[3], ExtFILE); |
| 2098 | blob_zero(&out); |
| 2099 | text_diff(&a, &b, &out, pRe, diffFlag); |
| 2100 | blob_write_to_file(&out, "-"); |
| 2101 |
+46
-25
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -106,22 +106,27 @@ | ||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /* |
| 109 | 109 | ** Print the "Index:" message that patches wants to see at the top of a diff. |
| 110 | 110 | */ |
| 111 | -void diff_print_index(const char *zFile, u64 diffFlags){ | |
| 111 | +void diff_print_index(const char *zFile, u64 diffFlags, Blob *diffBlob){ | |
| 112 | 112 | if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){ |
| 113 | 113 | char *z = mprintf("Index: %s\n%.66c\n", zFile, '='); |
| 114 | - fossil_print("%s", z); | |
| 114 | + if( !diffBlob ){ | |
| 115 | + fossil_print("%s", z); | |
| 116 | + }else{ | |
| 117 | + blob_appendf(diffBlob, "%s", z); | |
| 118 | + } | |
| 115 | 119 | fossil_free(z); |
| 116 | 120 | } |
| 117 | 121 | } |
| 118 | 122 | |
| 119 | 123 | /* |
| 120 | 124 | ** Print the +++/--- filename lines for a diff operation. |
| 121 | 125 | */ |
| 122 | -void diff_print_filenames(const char *zLeft, const char *zRight, u64 diffFlags){ | |
| 126 | +void diff_print_filenames(const char *zLeft, const char *zRight, | |
| 127 | + u64 diffFlags, Blob *diffBlob){ | |
| 123 | 128 | char *z = 0; |
| 124 | 129 | if( diffFlags & DIFF_BRIEF ){ |
| 125 | 130 | /* no-op */ |
| 126 | 131 | }else if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 127 | 132 | int w = diff_width(diffFlags); |
| @@ -142,11 +147,15 @@ | ||
| 142 | 147 | (w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '='); |
| 143 | 148 | } |
| 144 | 149 | }else{ |
| 145 | 150 | z = mprintf("--- %s\n+++ %s\n", zLeft, zRight); |
| 146 | 151 | } |
| 147 | - fossil_print("%s", z); | |
| 152 | + if( !diffBlob ){ | |
| 153 | + fossil_print("%s", z); | |
| 154 | + }else{ | |
| 155 | + blob_appendf(diffBlob, "%s", z); | |
| 156 | + } | |
| 148 | 157 | fossil_free(z); |
| 149 | 158 | } |
| 150 | 159 | |
| 151 | 160 | /* |
| 152 | 161 | ** Show the difference between two files, one in memory and one on disk. |
| @@ -171,11 +180,12 @@ | ||
| 171 | 180 | const char *zName, /* Display name of the file */ |
| 172 | 181 | const char *zDiffCmd, /* Command for comparison */ |
| 173 | 182 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 174 | 183 | int fIncludeBinary, /* Include binary files for external diff */ |
| 175 | 184 | u64 diffFlags, /* Flags to control the diff */ |
| 176 | - int fSwapDiff /* Diff from Zfile2 to Pfile1 */ | |
| 185 | + int fSwapDiff, /* Diff from Zfile2 to Pfile1 */ | |
| 186 | + Blob *diffBlob /* Blob to store diff output */ | |
| 177 | 187 | ){ |
| 178 | 188 | if( zDiffCmd==0 ){ |
| 179 | 189 | Blob out; /* Diff output text */ |
| 180 | 190 | Blob file2; /* Content of zFile2 */ |
| 181 | 191 | const char *zName2; /* Name of zFile2 for display */ |
| @@ -201,14 +211,23 @@ | ||
| 201 | 211 | }else{ |
| 202 | 212 | text_diff(pFile1, &file2, &out, 0, diffFlags); |
| 203 | 213 | } |
| 204 | 214 | if( blob_size(&out) ){ |
| 205 | 215 | if( diffFlags & DIFF_NUMSTAT ){ |
| 206 | - fossil_print("%s %s\n", blob_str(&out), zName); | |
| 216 | + if( !diffBlob ){ | |
| 217 | + fossil_print("%s %s\n", blob_str(&out), zName); | |
| 218 | + }else{ | |
| 219 | + blob_appendf(diffBlob, "%s %s\n", blob_str(&out), zName); | |
| 220 | + } | |
| 207 | 221 | }else{ |
| 208 | - diff_print_filenames(zName, zName2, diffFlags); | |
| 209 | - fossil_print("%s\n", blob_str(&out)); | |
| 222 | + if( !diffBlob ){ | |
| 223 | + diff_print_filenames(zName, zName2, diffFlags, 0); | |
| 224 | + fossil_print("%s\n", blob_str(&out)); | |
| 225 | + }else{ | |
| 226 | + diff_print_filenames(zName, zName2, diffFlags, diffBlob); | |
| 227 | + blob_appendf(diffBlob, "%s\n", blob_str(&out)); | |
| 228 | + } | |
| 210 | 229 | } |
| 211 | 230 | } |
| 212 | 231 | blob_reset(&out); |
| 213 | 232 | } |
| 214 | 233 | |
| @@ -302,11 +321,11 @@ | ||
| 302 | 321 | blob_zero(&out); |
| 303 | 322 | text_diff(pFile1, pFile2, &out, 0, diffFlags); |
| 304 | 323 | if( diffFlags & DIFF_NUMSTAT ){ |
| 305 | 324 | fossil_print("%s %s\n", blob_str(&out), zName); |
| 306 | 325 | }else{ |
| 307 | - diff_print_filenames(zName, zName, diffFlags); | |
| 326 | + diff_print_filenames(zName, zName, diffFlags, 0); | |
| 308 | 327 | fossil_print("%s\n", blob_str(&out)); |
| 309 | 328 | } |
| 310 | 329 | |
| 311 | 330 | /* Release memory resources */ |
| 312 | 331 | blob_reset(&out); |
| @@ -366,17 +385,18 @@ | ||
| 366 | 385 | ** |
| 367 | 386 | ** When using an external diff program, zBinGlob contains the GLOB patterns |
| 368 | 387 | ** for file names to treat as binary. If fIncludeBinary is zero, these files |
| 369 | 388 | ** will be skipped in addition to files that may contain binary content. |
| 370 | 389 | */ |
| 371 | -static void diff_against_disk( | |
| 390 | +void diff_against_disk( | |
| 372 | 391 | const char *zFrom, /* Version to difference from */ |
| 373 | 392 | const char *zDiffCmd, /* Use this diff command. NULL for built-in */ |
| 374 | 393 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 375 | 394 | int fIncludeBinary, /* Treat file names matching this as binary */ |
| 376 | 395 | u64 diffFlags, /* Flags controlling diff output */ |
| 377 | - FileDirList *pFileDir /* Which files to diff */ | |
| 396 | + FileDirList *pFileDir, /* Which files to diff */ | |
| 397 | + Blob *diffBlob /* Blob to output diff instead of stdout */ | |
| 378 | 398 | ){ |
| 379 | 399 | int vid; |
| 380 | 400 | Blob sql; |
| 381 | 401 | Stmt q; |
| 382 | 402 | int asNewFile; /* Treat non-existant files as empty files */ |
| @@ -467,24 +487,24 @@ | ||
| 467 | 487 | } |
| 468 | 488 | if( showDiff ){ |
| 469 | 489 | Blob content; |
| 470 | 490 | int isBin; |
| 471 | 491 | if( !isLink != !file_islink(zFullName) ){ |
| 472 | - diff_print_index(zPathname, diffFlags); | |
| 473 | - diff_print_filenames(zPathname, zPathname, diffFlags); | |
| 492 | + diff_print_index(zPathname, diffFlags, 0); | |
| 493 | + diff_print_filenames(zPathname, zPathname, diffFlags, 0); | |
| 474 | 494 | fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK); |
| 475 | 495 | continue; |
| 476 | 496 | } |
| 477 | 497 | if( srcid>0 ){ |
| 478 | 498 | content_get(srcid, &content); |
| 479 | 499 | }else{ |
| 480 | 500 | blob_zero(&content); |
| 481 | 501 | } |
| 482 | 502 | isBin = fIncludeBinary ? 0 : looks_like_binary(&content); |
| 483 | - diff_print_index(zPathname, diffFlags); | |
| 503 | + diff_print_index(zPathname, diffFlags, diffBlob); | |
| 484 | 504 | diff_file(&content, isBin, zFullName, zPathname, zDiffCmd, |
| 485 | - zBinGlob, fIncludeBinary, diffFlags, 0); | |
| 505 | + zBinGlob, fIncludeBinary, diffFlags, 0, diffBlob); | |
| 486 | 506 | blob_reset(&content); |
| 487 | 507 | } |
| 488 | 508 | blob_reset(&fname); |
| 489 | 509 | } |
| 490 | 510 | db_finalize(&q); |
| @@ -517,11 +537,11 @@ | ||
| 517 | 537 | const char *zFile = (const char*)db_column_text(&q, 0); |
| 518 | 538 | if( !file_dir_match(pFileDir, zFile) ) continue; |
| 519 | 539 | zFullName = mprintf("%s%s", g.zLocalRoot, zFile); |
| 520 | 540 | db_column_blob(&q, 1, &content); |
| 521 | 541 | diff_file(&content, 0, zFullName, zFile, |
| 522 | - zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0); | |
| 542 | + zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0, 0); | |
| 523 | 543 | fossil_free(zFullName); |
| 524 | 544 | blob_reset(&content); |
| 525 | 545 | } |
| 526 | 546 | db_finalize(&q); |
| 527 | 547 | } |
| @@ -555,11 +575,11 @@ | ||
| 555 | 575 | zName = pTo->zName; |
| 556 | 576 | }else{ |
| 557 | 577 | zName = DIFF_NO_NAME; |
| 558 | 578 | } |
| 559 | 579 | if( diffFlags & DIFF_BRIEF ) return; |
| 560 | - diff_print_index(zName, diffFlags); | |
| 580 | + diff_print_index(zName, diffFlags, 0); | |
| 561 | 581 | if( pFrom ){ |
| 562 | 582 | rid = uuid_to_rid(pFrom->zUuid, 0); |
| 563 | 583 | content_get(rid, &f1); |
| 564 | 584 | }else{ |
| 565 | 585 | blob_zero(&f1); |
| @@ -804,12 +824,13 @@ | ||
| 804 | 824 | ** The "-i" command-line option forces the use of the internal diff logic |
| 805 | 825 | ** rather than any external diff program that might be configured using |
| 806 | 826 | ** the "setting" command. If no external diff program is configured, then |
| 807 | 827 | ** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff". |
| 808 | 828 | ** |
| 809 | -** The "-N" or "--new-file" option causes the complete text of added or | |
| 810 | -** deleted files to be displayed. | |
| 829 | +** The "-v" or "--verbose" option causes the complete text of added or | |
| 830 | +** deleted files to be displayed. -N and --new-file are aliases for | |
| 831 | +** verbose mode. | |
| 811 | 832 | ** |
| 812 | 833 | ** The "--diff-binary" option enables or disables the inclusion of binary files |
| 813 | 834 | ** when using an external diff program. |
| 814 | 835 | ** |
| 815 | 836 | ** The "--binary" option causes files matching the glob PATTERN to be treated |
| @@ -821,26 +842,26 @@ | ||
| 821 | 842 | ** as binary |
| 822 | 843 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 823 | 844 | ** --brief Show filenames only |
| 824 | 845 | ** --checkin VERSION Show diff of all changes in VERSION |
| 825 | 846 | ** --command PROG External diff program. Overrides "diff-command" |
| 826 | -** --context|-c N Use N lines of context | |
| 847 | +** -c|--context N Use N lines of context | |
| 827 | 848 | ** --diff-binary BOOL Include binary files with external commands |
| 828 | 849 | ** --exec-abs-paths Force absolute path names on external commands |
| 829 | 850 | ** --exec-rel-paths Force relative path names on external commands |
| 830 | -** --from|-r VERSION Select VERSION as source for the diff | |
| 831 | -** --internal|-i Use internal diff logic | |
| 832 | -** --new-file|-N Show complete text of added and deleted files | |
| 851 | +** -r|--from VERSION Select VERSION as source for the diff | |
| 852 | +** -i|--internal Use internal diff logic | |
| 833 | 853 | ** --numstat Show only the number of lines delete and added |
| 834 | -** --side-by-side|-y Side-by-side diff | |
| 854 | +** -y|--side-by-side Side-by-side diff | |
| 835 | 855 | ** --strip-trailing-cr Strip trailing CR |
| 836 | 856 | ** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh") |
| 837 | 857 | ** --tk Launch a Tcl/Tk GUI for display |
| 838 | 858 | ** --to VERSION Select VERSION as target for the diff |
| 839 | 859 | ** --undo Diff against the "undo" buffer |
| 840 | 860 | ** --unified Unified diff |
| 841 | 861 | ** -v|--verbose Output complete text of added or deleted files |
| 862 | +** -N|--new-file Alias for --verbose | |
| 842 | 863 | ** -w|--ignore-all-space Ignore white space when comparing lines |
| 843 | 864 | ** -W|--width N Width of lines in side-by-side diff |
| 844 | 865 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 845 | 866 | */ |
| 846 | 867 | void diff_cmd(void){ |
| @@ -941,11 +962,11 @@ | ||
| 941 | 962 | } |
| 942 | 963 | diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary, |
| 943 | 964 | diffFlags, pFileDir); |
| 944 | 965 | }else if( zTo==0 ){ |
| 945 | 966 | diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary, |
| 946 | - diffFlags, pFileDir); | |
| 967 | + diffFlags, pFileDir, 0); | |
| 947 | 968 | }else{ |
| 948 | 969 | diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary, |
| 949 | 970 | diffFlags, pFileDir); |
| 950 | 971 | } |
| 951 | 972 | if( pFileDir ){ |
| 952 | 973 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -106,22 +106,27 @@ | |
| 106 | } |
| 107 | |
| 108 | /* |
| 109 | ** Print the "Index:" message that patches wants to see at the top of a diff. |
| 110 | */ |
| 111 | void diff_print_index(const char *zFile, u64 diffFlags){ |
| 112 | if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){ |
| 113 | char *z = mprintf("Index: %s\n%.66c\n", zFile, '='); |
| 114 | fossil_print("%s", z); |
| 115 | fossil_free(z); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /* |
| 120 | ** Print the +++/--- filename lines for a diff operation. |
| 121 | */ |
| 122 | void diff_print_filenames(const char *zLeft, const char *zRight, u64 diffFlags){ |
| 123 | char *z = 0; |
| 124 | if( diffFlags & DIFF_BRIEF ){ |
| 125 | /* no-op */ |
| 126 | }else if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 127 | int w = diff_width(diffFlags); |
| @@ -142,11 +147,15 @@ | |
| 142 | (w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '='); |
| 143 | } |
| 144 | }else{ |
| 145 | z = mprintf("--- %s\n+++ %s\n", zLeft, zRight); |
| 146 | } |
| 147 | fossil_print("%s", z); |
| 148 | fossil_free(z); |
| 149 | } |
| 150 | |
| 151 | /* |
| 152 | ** Show the difference between two files, one in memory and one on disk. |
| @@ -171,11 +180,12 @@ | |
| 171 | const char *zName, /* Display name of the file */ |
| 172 | const char *zDiffCmd, /* Command for comparison */ |
| 173 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 174 | int fIncludeBinary, /* Include binary files for external diff */ |
| 175 | u64 diffFlags, /* Flags to control the diff */ |
| 176 | int fSwapDiff /* Diff from Zfile2 to Pfile1 */ |
| 177 | ){ |
| 178 | if( zDiffCmd==0 ){ |
| 179 | Blob out; /* Diff output text */ |
| 180 | Blob file2; /* Content of zFile2 */ |
| 181 | const char *zName2; /* Name of zFile2 for display */ |
| @@ -201,14 +211,23 @@ | |
| 201 | }else{ |
| 202 | text_diff(pFile1, &file2, &out, 0, diffFlags); |
| 203 | } |
| 204 | if( blob_size(&out) ){ |
| 205 | if( diffFlags & DIFF_NUMSTAT ){ |
| 206 | fossil_print("%s %s\n", blob_str(&out), zName); |
| 207 | }else{ |
| 208 | diff_print_filenames(zName, zName2, diffFlags); |
| 209 | fossil_print("%s\n", blob_str(&out)); |
| 210 | } |
| 211 | } |
| 212 | blob_reset(&out); |
| 213 | } |
| 214 | |
| @@ -302,11 +321,11 @@ | |
| 302 | blob_zero(&out); |
| 303 | text_diff(pFile1, pFile2, &out, 0, diffFlags); |
| 304 | if( diffFlags & DIFF_NUMSTAT ){ |
| 305 | fossil_print("%s %s\n", blob_str(&out), zName); |
| 306 | }else{ |
| 307 | diff_print_filenames(zName, zName, diffFlags); |
| 308 | fossil_print("%s\n", blob_str(&out)); |
| 309 | } |
| 310 | |
| 311 | /* Release memory resources */ |
| 312 | blob_reset(&out); |
| @@ -366,17 +385,18 @@ | |
| 366 | ** |
| 367 | ** When using an external diff program, zBinGlob contains the GLOB patterns |
| 368 | ** for file names to treat as binary. If fIncludeBinary is zero, these files |
| 369 | ** will be skipped in addition to files that may contain binary content. |
| 370 | */ |
| 371 | static void diff_against_disk( |
| 372 | const char *zFrom, /* Version to difference from */ |
| 373 | const char *zDiffCmd, /* Use this diff command. NULL for built-in */ |
| 374 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 375 | int fIncludeBinary, /* Treat file names matching this as binary */ |
| 376 | u64 diffFlags, /* Flags controlling diff output */ |
| 377 | FileDirList *pFileDir /* Which files to diff */ |
| 378 | ){ |
| 379 | int vid; |
| 380 | Blob sql; |
| 381 | Stmt q; |
| 382 | int asNewFile; /* Treat non-existant files as empty files */ |
| @@ -467,24 +487,24 @@ | |
| 467 | } |
| 468 | if( showDiff ){ |
| 469 | Blob content; |
| 470 | int isBin; |
| 471 | if( !isLink != !file_islink(zFullName) ){ |
| 472 | diff_print_index(zPathname, diffFlags); |
| 473 | diff_print_filenames(zPathname, zPathname, diffFlags); |
| 474 | fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK); |
| 475 | continue; |
| 476 | } |
| 477 | if( srcid>0 ){ |
| 478 | content_get(srcid, &content); |
| 479 | }else{ |
| 480 | blob_zero(&content); |
| 481 | } |
| 482 | isBin = fIncludeBinary ? 0 : looks_like_binary(&content); |
| 483 | diff_print_index(zPathname, diffFlags); |
| 484 | diff_file(&content, isBin, zFullName, zPathname, zDiffCmd, |
| 485 | zBinGlob, fIncludeBinary, diffFlags, 0); |
| 486 | blob_reset(&content); |
| 487 | } |
| 488 | blob_reset(&fname); |
| 489 | } |
| 490 | db_finalize(&q); |
| @@ -517,11 +537,11 @@ | |
| 517 | const char *zFile = (const char*)db_column_text(&q, 0); |
| 518 | if( !file_dir_match(pFileDir, zFile) ) continue; |
| 519 | zFullName = mprintf("%s%s", g.zLocalRoot, zFile); |
| 520 | db_column_blob(&q, 1, &content); |
| 521 | diff_file(&content, 0, zFullName, zFile, |
| 522 | zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0); |
| 523 | fossil_free(zFullName); |
| 524 | blob_reset(&content); |
| 525 | } |
| 526 | db_finalize(&q); |
| 527 | } |
| @@ -555,11 +575,11 @@ | |
| 555 | zName = pTo->zName; |
| 556 | }else{ |
| 557 | zName = DIFF_NO_NAME; |
| 558 | } |
| 559 | if( diffFlags & DIFF_BRIEF ) return; |
| 560 | diff_print_index(zName, diffFlags); |
| 561 | if( pFrom ){ |
| 562 | rid = uuid_to_rid(pFrom->zUuid, 0); |
| 563 | content_get(rid, &f1); |
| 564 | }else{ |
| 565 | blob_zero(&f1); |
| @@ -804,12 +824,13 @@ | |
| 804 | ** The "-i" command-line option forces the use of the internal diff logic |
| 805 | ** rather than any external diff program that might be configured using |
| 806 | ** the "setting" command. If no external diff program is configured, then |
| 807 | ** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff". |
| 808 | ** |
| 809 | ** The "-N" or "--new-file" option causes the complete text of added or |
| 810 | ** deleted files to be displayed. |
| 811 | ** |
| 812 | ** The "--diff-binary" option enables or disables the inclusion of binary files |
| 813 | ** when using an external diff program. |
| 814 | ** |
| 815 | ** The "--binary" option causes files matching the glob PATTERN to be treated |
| @@ -821,26 +842,26 @@ | |
| 821 | ** as binary |
| 822 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 823 | ** --brief Show filenames only |
| 824 | ** --checkin VERSION Show diff of all changes in VERSION |
| 825 | ** --command PROG External diff program. Overrides "diff-command" |
| 826 | ** --context|-c N Use N lines of context |
| 827 | ** --diff-binary BOOL Include binary files with external commands |
| 828 | ** --exec-abs-paths Force absolute path names on external commands |
| 829 | ** --exec-rel-paths Force relative path names on external commands |
| 830 | ** --from|-r VERSION Select VERSION as source for the diff |
| 831 | ** --internal|-i Use internal diff logic |
| 832 | ** --new-file|-N Show complete text of added and deleted files |
| 833 | ** --numstat Show only the number of lines delete and added |
| 834 | ** --side-by-side|-y Side-by-side diff |
| 835 | ** --strip-trailing-cr Strip trailing CR |
| 836 | ** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh") |
| 837 | ** --tk Launch a Tcl/Tk GUI for display |
| 838 | ** --to VERSION Select VERSION as target for the diff |
| 839 | ** --undo Diff against the "undo" buffer |
| 840 | ** --unified Unified diff |
| 841 | ** -v|--verbose Output complete text of added or deleted files |
| 842 | ** -w|--ignore-all-space Ignore white space when comparing lines |
| 843 | ** -W|--width N Width of lines in side-by-side diff |
| 844 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 845 | */ |
| 846 | void diff_cmd(void){ |
| @@ -941,11 +962,11 @@ | |
| 941 | } |
| 942 | diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary, |
| 943 | diffFlags, pFileDir); |
| 944 | }else if( zTo==0 ){ |
| 945 | diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary, |
| 946 | diffFlags, pFileDir); |
| 947 | }else{ |
| 948 | diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary, |
| 949 | diffFlags, pFileDir); |
| 950 | } |
| 951 | if( pFileDir ){ |
| 952 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -106,22 +106,27 @@ | |
| 106 | } |
| 107 | |
| 108 | /* |
| 109 | ** Print the "Index:" message that patches wants to see at the top of a diff. |
| 110 | */ |
| 111 | void diff_print_index(const char *zFile, u64 diffFlags, Blob *diffBlob){ |
| 112 | if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){ |
| 113 | char *z = mprintf("Index: %s\n%.66c\n", zFile, '='); |
| 114 | if( !diffBlob ){ |
| 115 | fossil_print("%s", z); |
| 116 | }else{ |
| 117 | blob_appendf(diffBlob, "%s", z); |
| 118 | } |
| 119 | fossil_free(z); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | /* |
| 124 | ** Print the +++/--- filename lines for a diff operation. |
| 125 | */ |
| 126 | void diff_print_filenames(const char *zLeft, const char *zRight, |
| 127 | u64 diffFlags, Blob *diffBlob){ |
| 128 | char *z = 0; |
| 129 | if( diffFlags & DIFF_BRIEF ){ |
| 130 | /* no-op */ |
| 131 | }else if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 132 | int w = diff_width(diffFlags); |
| @@ -142,11 +147,15 @@ | |
| 147 | (w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '='); |
| 148 | } |
| 149 | }else{ |
| 150 | z = mprintf("--- %s\n+++ %s\n", zLeft, zRight); |
| 151 | } |
| 152 | if( !diffBlob ){ |
| 153 | fossil_print("%s", z); |
| 154 | }else{ |
| 155 | blob_appendf(diffBlob, "%s", z); |
| 156 | } |
| 157 | fossil_free(z); |
| 158 | } |
| 159 | |
| 160 | /* |
| 161 | ** Show the difference between two files, one in memory and one on disk. |
| @@ -171,11 +180,12 @@ | |
| 180 | const char *zName, /* Display name of the file */ |
| 181 | const char *zDiffCmd, /* Command for comparison */ |
| 182 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 183 | int fIncludeBinary, /* Include binary files for external diff */ |
| 184 | u64 diffFlags, /* Flags to control the diff */ |
| 185 | int fSwapDiff, /* Diff from Zfile2 to Pfile1 */ |
| 186 | Blob *diffBlob /* Blob to store diff output */ |
| 187 | ){ |
| 188 | if( zDiffCmd==0 ){ |
| 189 | Blob out; /* Diff output text */ |
| 190 | Blob file2; /* Content of zFile2 */ |
| 191 | const char *zName2; /* Name of zFile2 for display */ |
| @@ -201,14 +211,23 @@ | |
| 211 | }else{ |
| 212 | text_diff(pFile1, &file2, &out, 0, diffFlags); |
| 213 | } |
| 214 | if( blob_size(&out) ){ |
| 215 | if( diffFlags & DIFF_NUMSTAT ){ |
| 216 | if( !diffBlob ){ |
| 217 | fossil_print("%s %s\n", blob_str(&out), zName); |
| 218 | }else{ |
| 219 | blob_appendf(diffBlob, "%s %s\n", blob_str(&out), zName); |
| 220 | } |
| 221 | }else{ |
| 222 | if( !diffBlob ){ |
| 223 | diff_print_filenames(zName, zName2, diffFlags, 0); |
| 224 | fossil_print("%s\n", blob_str(&out)); |
| 225 | }else{ |
| 226 | diff_print_filenames(zName, zName2, diffFlags, diffBlob); |
| 227 | blob_appendf(diffBlob, "%s\n", blob_str(&out)); |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | blob_reset(&out); |
| 232 | } |
| 233 | |
| @@ -302,11 +321,11 @@ | |
| 321 | blob_zero(&out); |
| 322 | text_diff(pFile1, pFile2, &out, 0, diffFlags); |
| 323 | if( diffFlags & DIFF_NUMSTAT ){ |
| 324 | fossil_print("%s %s\n", blob_str(&out), zName); |
| 325 | }else{ |
| 326 | diff_print_filenames(zName, zName, diffFlags, 0); |
| 327 | fossil_print("%s\n", blob_str(&out)); |
| 328 | } |
| 329 | |
| 330 | /* Release memory resources */ |
| 331 | blob_reset(&out); |
| @@ -366,17 +385,18 @@ | |
| 385 | ** |
| 386 | ** When using an external diff program, zBinGlob contains the GLOB patterns |
| 387 | ** for file names to treat as binary. If fIncludeBinary is zero, these files |
| 388 | ** will be skipped in addition to files that may contain binary content. |
| 389 | */ |
| 390 | void diff_against_disk( |
| 391 | const char *zFrom, /* Version to difference from */ |
| 392 | const char *zDiffCmd, /* Use this diff command. NULL for built-in */ |
| 393 | const char *zBinGlob, /* Treat file names matching this as binary */ |
| 394 | int fIncludeBinary, /* Treat file names matching this as binary */ |
| 395 | u64 diffFlags, /* Flags controlling diff output */ |
| 396 | FileDirList *pFileDir, /* Which files to diff */ |
| 397 | Blob *diffBlob /* Blob to output diff instead of stdout */ |
| 398 | ){ |
| 399 | int vid; |
| 400 | Blob sql; |
| 401 | Stmt q; |
| 402 | int asNewFile; /* Treat non-existant files as empty files */ |
| @@ -467,24 +487,24 @@ | |
| 487 | } |
| 488 | if( showDiff ){ |
| 489 | Blob content; |
| 490 | int isBin; |
| 491 | if( !isLink != !file_islink(zFullName) ){ |
| 492 | diff_print_index(zPathname, diffFlags, 0); |
| 493 | diff_print_filenames(zPathname, zPathname, diffFlags, 0); |
| 494 | fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK); |
| 495 | continue; |
| 496 | } |
| 497 | if( srcid>0 ){ |
| 498 | content_get(srcid, &content); |
| 499 | }else{ |
| 500 | blob_zero(&content); |
| 501 | } |
| 502 | isBin = fIncludeBinary ? 0 : looks_like_binary(&content); |
| 503 | diff_print_index(zPathname, diffFlags, diffBlob); |
| 504 | diff_file(&content, isBin, zFullName, zPathname, zDiffCmd, |
| 505 | zBinGlob, fIncludeBinary, diffFlags, 0, diffBlob); |
| 506 | blob_reset(&content); |
| 507 | } |
| 508 | blob_reset(&fname); |
| 509 | } |
| 510 | db_finalize(&q); |
| @@ -517,11 +537,11 @@ | |
| 537 | const char *zFile = (const char*)db_column_text(&q, 0); |
| 538 | if( !file_dir_match(pFileDir, zFile) ) continue; |
| 539 | zFullName = mprintf("%s%s", g.zLocalRoot, zFile); |
| 540 | db_column_blob(&q, 1, &content); |
| 541 | diff_file(&content, 0, zFullName, zFile, |
| 542 | zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0, 0); |
| 543 | fossil_free(zFullName); |
| 544 | blob_reset(&content); |
| 545 | } |
| 546 | db_finalize(&q); |
| 547 | } |
| @@ -555,11 +575,11 @@ | |
| 575 | zName = pTo->zName; |
| 576 | }else{ |
| 577 | zName = DIFF_NO_NAME; |
| 578 | } |
| 579 | if( diffFlags & DIFF_BRIEF ) return; |
| 580 | diff_print_index(zName, diffFlags, 0); |
| 581 | if( pFrom ){ |
| 582 | rid = uuid_to_rid(pFrom->zUuid, 0); |
| 583 | content_get(rid, &f1); |
| 584 | }else{ |
| 585 | blob_zero(&f1); |
| @@ -804,12 +824,13 @@ | |
| 824 | ** The "-i" command-line option forces the use of the internal diff logic |
| 825 | ** rather than any external diff program that might be configured using |
| 826 | ** the "setting" command. If no external diff program is configured, then |
| 827 | ** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff". |
| 828 | ** |
| 829 | ** The "-v" or "--verbose" option causes the complete text of added or |
| 830 | ** deleted files to be displayed. -N and --new-file are aliases for |
| 831 | ** verbose mode. |
| 832 | ** |
| 833 | ** The "--diff-binary" option enables or disables the inclusion of binary files |
| 834 | ** when using an external diff program. |
| 835 | ** |
| 836 | ** The "--binary" option causes files matching the glob PATTERN to be treated |
| @@ -821,26 +842,26 @@ | |
| 842 | ** as binary |
| 843 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 844 | ** --brief Show filenames only |
| 845 | ** --checkin VERSION Show diff of all changes in VERSION |
| 846 | ** --command PROG External diff program. Overrides "diff-command" |
| 847 | ** -c|--context N Use N lines of context |
| 848 | ** --diff-binary BOOL Include binary files with external commands |
| 849 | ** --exec-abs-paths Force absolute path names on external commands |
| 850 | ** --exec-rel-paths Force relative path names on external commands |
| 851 | ** -r|--from VERSION Select VERSION as source for the diff |
| 852 | ** -i|--internal Use internal diff logic |
| 853 | ** --numstat Show only the number of lines delete and added |
| 854 | ** -y|--side-by-side Side-by-side diff |
| 855 | ** --strip-trailing-cr Strip trailing CR |
| 856 | ** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh") |
| 857 | ** --tk Launch a Tcl/Tk GUI for display |
| 858 | ** --to VERSION Select VERSION as target for the diff |
| 859 | ** --undo Diff against the "undo" buffer |
| 860 | ** --unified Unified diff |
| 861 | ** -v|--verbose Output complete text of added or deleted files |
| 862 | ** -N|--new-file Alias for --verbose |
| 863 | ** -w|--ignore-all-space Ignore white space when comparing lines |
| 864 | ** -W|--width N Width of lines in side-by-side diff |
| 865 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 866 | */ |
| 867 | void diff_cmd(void){ |
| @@ -941,11 +962,11 @@ | |
| 962 | } |
| 963 | diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary, |
| 964 | diffFlags, pFileDir); |
| 965 | }else if( zTo==0 ){ |
| 966 | diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary, |
| 967 | diffFlags, pFileDir, 0); |
| 968 | }else{ |
| 969 | diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary, |
| 970 | diffFlags, pFileDir); |
| 971 | } |
| 972 | if( pFileDir ){ |
| 973 |
+66
-34
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -532,45 +532,14 @@ | ||
| 532 | 532 | blob_append(pText, zHelp, i); |
| 533 | 533 | } |
| 534 | 534 | } |
| 535 | 535 | |
| 536 | 536 | /* |
| 537 | -** COMMAND: test-all-help | |
| 538 | -** | |
| 539 | -** Usage: %fossil test-all-help ?OPTIONS? | |
| 540 | -** | |
| 541 | -** Show help text for commands and pages. Useful for proof-reading. | |
| 542 | -** Defaults to just the CLI commands. Specify --www to see only the | |
| 543 | -** web pages, or --everything to see both commands and pages. | |
| 544 | -** | |
| 545 | -** Options: | |
| 546 | -** -e|--everything Show all commands and pages. | |
| 547 | -** -t|--test Include test- commands | |
| 548 | -** -w|--www Show WWW pages. | |
| 549 | -** -s|--settings Show settings. | |
| 550 | -** -h|--html Transform output to HTML. | |
| 551 | -** -r|--raw No output formatting. | |
| 537 | +** Display help for all commands based on provided flags. | |
| 552 | 538 | */ |
| 553 | -void test_all_help_cmd(void){ | |
| 539 | +static void display_all_help(int mask, int useHtml, int rawOut){ | |
| 554 | 540 | int i; |
| 555 | - int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER; | |
| 556 | - int useHtml = find_option("html","h",0)!=0; | |
| 557 | - int rawOut = find_option("raw","r",0)!=0; | |
| 558 | - | |
| 559 | - if( find_option("www","w",0) ){ | |
| 560 | - mask = CMDFLAG_WEBPAGE; | |
| 561 | - } | |
| 562 | - if( find_option("everything","e",0) ){ | |
| 563 | - mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | | |
| 564 | - CMDFLAG_SETTING | CMDFLAG_TEST; | |
| 565 | - } | |
| 566 | - if( find_option("settings","s",0) ){ | |
| 567 | - mask = CMDFLAG_SETTING; | |
| 568 | - } | |
| 569 | - if( find_option("test","t",0) ){ | |
| 570 | - mask |= CMDFLAG_TEST; | |
| 571 | - } | |
| 572 | 541 | if( useHtml ) fossil_print("<!--\n"); |
| 573 | 542 | fossil_print("Help text for:\n"); |
| 574 | 543 | if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n"); |
| 575 | 544 | if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n"); |
| 576 | 545 | if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n"); |
| @@ -608,10 +577,48 @@ | ||
| 608 | 577 | }else{ |
| 609 | 578 | fossil_print("---\n"); |
| 610 | 579 | } |
| 611 | 580 | version_cmd(); |
| 612 | 581 | } |
| 582 | + | |
| 583 | +/* | |
| 584 | +** COMMAND: test-all-help | |
| 585 | +** | |
| 586 | +** Usage: %fossil test-all-help ?OPTIONS? | |
| 587 | +** | |
| 588 | +** Show help text for commands and pages. Useful for proof-reading. | |
| 589 | +** Defaults to just the CLI commands. Specify --www to see only the | |
| 590 | +** web pages, or --everything to see both commands and pages. | |
| 591 | +** | |
| 592 | +** Options: | |
| 593 | +** -e|--everything Show all commands and pages. | |
| 594 | +** -t|--test Include test- commands | |
| 595 | +** -w|--www Show WWW pages. | |
| 596 | +** -s|--settings Show settings. | |
| 597 | +** -h|--html Transform output to HTML. | |
| 598 | +** -r|--raw No output formatting. | |
| 599 | +*/ | |
| 600 | +void test_all_help_cmd(void){ | |
| 601 | + int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER; | |
| 602 | + int useHtml = find_option("html","h",0)!=0; | |
| 603 | + int rawOut = find_option("raw","r",0)!=0; | |
| 604 | + | |
| 605 | + if( find_option("www","w",0) ){ | |
| 606 | + mask = CMDFLAG_WEBPAGE; | |
| 607 | + } | |
| 608 | + if( find_option("everything","e",0) ){ | |
| 609 | + mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | | |
| 610 | + CMDFLAG_SETTING | CMDFLAG_TEST; | |
| 611 | + } | |
| 612 | + if( find_option("settings","s",0) ){ | |
| 613 | + mask = CMDFLAG_SETTING; | |
| 614 | + } | |
| 615 | + if( find_option("test","t",0) ){ | |
| 616 | + mask |= CMDFLAG_TEST; | |
| 617 | + } | |
| 618 | + display_all_help(mask, useHtml, rawOut); | |
| 619 | +} | |
| 613 | 620 | |
| 614 | 621 | /* |
| 615 | 622 | ** Count the number of entries in the aCommand[] table that match |
| 616 | 623 | ** the given flag. |
| 617 | 624 | */ |
| @@ -1025,10 +1032,14 @@ | ||
| 1025 | 1032 | ** -o|--options List command-line options common to all commands |
| 1026 | 1033 | ** -s|--setting List setting names |
| 1027 | 1034 | ** -t|--test List unsupported "test" commands |
| 1028 | 1035 | ** -x|--aux List only auxiliary commands |
| 1029 | 1036 | ** -w|--www List all web pages |
| 1037 | +** -f|--full List full set of commands (including auxiliary | |
| 1038 | +** and unsupported "test" commands), options, | |
| 1039 | +** settings, and web pages | |
| 1040 | +** -e|--everything List all help on all topics | |
| 1030 | 1041 | ** |
| 1031 | 1042 | ** These options can be used when TOPIC is present: |
| 1032 | 1043 | ** |
| 1033 | 1044 | ** -h|--html Format output as HTML rather than plain text |
| 1034 | 1045 | ** -c|--commands Restrict TOPIC search to commands |
| @@ -1055,11 +1066,11 @@ | ||
| 1055 | 1066 | } |
| 1056 | 1067 | if( find_option("options","o",0) ){ |
| 1057 | 1068 | fossil_print("%s", zOptions); |
| 1058 | 1069 | return; |
| 1059 | 1070 | } |
| 1060 | - if( find_option("all","a",0) ){ | |
| 1071 | + else if( find_option("all","a",0) ){ | |
| 1061 | 1072 | command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER); |
| 1062 | 1073 | return; |
| 1063 | 1074 | } |
| 1064 | 1075 | else if( find_option("www","w",0) ){ |
| 1065 | 1076 | command_list(0, CMDFLAG_WEBPAGE); |
| @@ -1074,10 +1085,31 @@ | ||
| 1074 | 1085 | return; |
| 1075 | 1086 | } |
| 1076 | 1087 | else if( find_option("setting","s",0) ){ |
| 1077 | 1088 | command_list(0, CMDFLAG_SETTING); |
| 1078 | 1089 | return; |
| 1090 | + } | |
| 1091 | + else if( find_option("full","f",0) ){ | |
| 1092 | + fossil_print("fossil commands:\n\n"); | |
| 1093 | + command_list(0, CMDFLAG_1ST_TIER); | |
| 1094 | + fossil_print("\nfossil auxiliary commands:\n\n"); | |
| 1095 | + command_list(0, CMDFLAG_2ND_TIER); | |
| 1096 | + fossil_print("\n%s", zOptions); | |
| 1097 | + fossil_print("\nfossil settings:\n\n"); | |
| 1098 | + command_list(0, CMDFLAG_SETTING); | |
| 1099 | + fossil_print("\nfossil web pages:\n\n"); | |
| 1100 | + command_list(0, CMDFLAG_WEBPAGE); | |
| 1101 | + fossil_print("\nfossil test commands (unsupported):\n\n"); | |
| 1102 | + command_list(0, CMDFLAG_TEST); | |
| 1103 | + fossil_print("\n"); | |
| 1104 | + version_cmd(); | |
| 1105 | + return; | |
| 1106 | + } | |
| 1107 | + else if( find_option("everything","e",0) ){ | |
| 1108 | + display_all_help(CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | | |
| 1109 | + CMDFLAG_SETTING | CMDFLAG_TEST, 0, 0); | |
| 1110 | + return; | |
| 1079 | 1111 | } |
| 1080 | 1112 | useHtml = find_option("html","h",0)!=0; |
| 1081 | 1113 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1082 | 1114 | if(isPage){ |
| 1083 | 1115 | zCmdOrPage = "page"; |
| 1084 | 1116 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -532,45 +532,14 @@ | |
| 532 | blob_append(pText, zHelp, i); |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | /* |
| 537 | ** COMMAND: test-all-help |
| 538 | ** |
| 539 | ** Usage: %fossil test-all-help ?OPTIONS? |
| 540 | ** |
| 541 | ** Show help text for commands and pages. Useful for proof-reading. |
| 542 | ** Defaults to just the CLI commands. Specify --www to see only the |
| 543 | ** web pages, or --everything to see both commands and pages. |
| 544 | ** |
| 545 | ** Options: |
| 546 | ** -e|--everything Show all commands and pages. |
| 547 | ** -t|--test Include test- commands |
| 548 | ** -w|--www Show WWW pages. |
| 549 | ** -s|--settings Show settings. |
| 550 | ** -h|--html Transform output to HTML. |
| 551 | ** -r|--raw No output formatting. |
| 552 | */ |
| 553 | void test_all_help_cmd(void){ |
| 554 | int i; |
| 555 | int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER; |
| 556 | int useHtml = find_option("html","h",0)!=0; |
| 557 | int rawOut = find_option("raw","r",0)!=0; |
| 558 | |
| 559 | if( find_option("www","w",0) ){ |
| 560 | mask = CMDFLAG_WEBPAGE; |
| 561 | } |
| 562 | if( find_option("everything","e",0) ){ |
| 563 | mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | |
| 564 | CMDFLAG_SETTING | CMDFLAG_TEST; |
| 565 | } |
| 566 | if( find_option("settings","s",0) ){ |
| 567 | mask = CMDFLAG_SETTING; |
| 568 | } |
| 569 | if( find_option("test","t",0) ){ |
| 570 | mask |= CMDFLAG_TEST; |
| 571 | } |
| 572 | if( useHtml ) fossil_print("<!--\n"); |
| 573 | fossil_print("Help text for:\n"); |
| 574 | if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n"); |
| 575 | if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n"); |
| 576 | if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n"); |
| @@ -608,10 +577,48 @@ | |
| 608 | }else{ |
| 609 | fossil_print("---\n"); |
| 610 | } |
| 611 | version_cmd(); |
| 612 | } |
| 613 | |
| 614 | /* |
| 615 | ** Count the number of entries in the aCommand[] table that match |
| 616 | ** the given flag. |
| 617 | */ |
| @@ -1025,10 +1032,14 @@ | |
| 1025 | ** -o|--options List command-line options common to all commands |
| 1026 | ** -s|--setting List setting names |
| 1027 | ** -t|--test List unsupported "test" commands |
| 1028 | ** -x|--aux List only auxiliary commands |
| 1029 | ** -w|--www List all web pages |
| 1030 | ** |
| 1031 | ** These options can be used when TOPIC is present: |
| 1032 | ** |
| 1033 | ** -h|--html Format output as HTML rather than plain text |
| 1034 | ** -c|--commands Restrict TOPIC search to commands |
| @@ -1055,11 +1066,11 @@ | |
| 1055 | } |
| 1056 | if( find_option("options","o",0) ){ |
| 1057 | fossil_print("%s", zOptions); |
| 1058 | return; |
| 1059 | } |
| 1060 | if( find_option("all","a",0) ){ |
| 1061 | command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER); |
| 1062 | return; |
| 1063 | } |
| 1064 | else if( find_option("www","w",0) ){ |
| 1065 | command_list(0, CMDFLAG_WEBPAGE); |
| @@ -1074,10 +1085,31 @@ | |
| 1074 | return; |
| 1075 | } |
| 1076 | else if( find_option("setting","s",0) ){ |
| 1077 | command_list(0, CMDFLAG_SETTING); |
| 1078 | return; |
| 1079 | } |
| 1080 | useHtml = find_option("html","h",0)!=0; |
| 1081 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1082 | if(isPage){ |
| 1083 | zCmdOrPage = "page"; |
| 1084 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -532,45 +532,14 @@ | |
| 532 | blob_append(pText, zHelp, i); |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | /* |
| 537 | ** Display help for all commands based on provided flags. |
| 538 | */ |
| 539 | static void display_all_help(int mask, int useHtml, int rawOut){ |
| 540 | int i; |
| 541 | if( useHtml ) fossil_print("<!--\n"); |
| 542 | fossil_print("Help text for:\n"); |
| 543 | if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n"); |
| 544 | if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n"); |
| 545 | if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n"); |
| @@ -608,10 +577,48 @@ | |
| 577 | }else{ |
| 578 | fossil_print("---\n"); |
| 579 | } |
| 580 | version_cmd(); |
| 581 | } |
| 582 | |
| 583 | /* |
| 584 | ** COMMAND: test-all-help |
| 585 | ** |
| 586 | ** Usage: %fossil test-all-help ?OPTIONS? |
| 587 | ** |
| 588 | ** Show help text for commands and pages. Useful for proof-reading. |
| 589 | ** Defaults to just the CLI commands. Specify --www to see only the |
| 590 | ** web pages, or --everything to see both commands and pages. |
| 591 | ** |
| 592 | ** Options: |
| 593 | ** -e|--everything Show all commands and pages. |
| 594 | ** -t|--test Include test- commands |
| 595 | ** -w|--www Show WWW pages. |
| 596 | ** -s|--settings Show settings. |
| 597 | ** -h|--html Transform output to HTML. |
| 598 | ** -r|--raw No output formatting. |
| 599 | */ |
| 600 | void test_all_help_cmd(void){ |
| 601 | int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER; |
| 602 | int useHtml = find_option("html","h",0)!=0; |
| 603 | int rawOut = find_option("raw","r",0)!=0; |
| 604 | |
| 605 | if( find_option("www","w",0) ){ |
| 606 | mask = CMDFLAG_WEBPAGE; |
| 607 | } |
| 608 | if( find_option("everything","e",0) ){ |
| 609 | mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | |
| 610 | CMDFLAG_SETTING | CMDFLAG_TEST; |
| 611 | } |
| 612 | if( find_option("settings","s",0) ){ |
| 613 | mask = CMDFLAG_SETTING; |
| 614 | } |
| 615 | if( find_option("test","t",0) ){ |
| 616 | mask |= CMDFLAG_TEST; |
| 617 | } |
| 618 | display_all_help(mask, useHtml, rawOut); |
| 619 | } |
| 620 | |
| 621 | /* |
| 622 | ** Count the number of entries in the aCommand[] table that match |
| 623 | ** the given flag. |
| 624 | */ |
| @@ -1025,10 +1032,14 @@ | |
| 1032 | ** -o|--options List command-line options common to all commands |
| 1033 | ** -s|--setting List setting names |
| 1034 | ** -t|--test List unsupported "test" commands |
| 1035 | ** -x|--aux List only auxiliary commands |
| 1036 | ** -w|--www List all web pages |
| 1037 | ** -f|--full List full set of commands (including auxiliary |
| 1038 | ** and unsupported "test" commands), options, |
| 1039 | ** settings, and web pages |
| 1040 | ** -e|--everything List all help on all topics |
| 1041 | ** |
| 1042 | ** These options can be used when TOPIC is present: |
| 1043 | ** |
| 1044 | ** -h|--html Format output as HTML rather than plain text |
| 1045 | ** -c|--commands Restrict TOPIC search to commands |
| @@ -1055,11 +1066,11 @@ | |
| 1066 | } |
| 1067 | if( find_option("options","o",0) ){ |
| 1068 | fossil_print("%s", zOptions); |
| 1069 | return; |
| 1070 | } |
| 1071 | else if( find_option("all","a",0) ){ |
| 1072 | command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER); |
| 1073 | return; |
| 1074 | } |
| 1075 | else if( find_option("www","w",0) ){ |
| 1076 | command_list(0, CMDFLAG_WEBPAGE); |
| @@ -1074,10 +1085,31 @@ | |
| 1085 | return; |
| 1086 | } |
| 1087 | else if( find_option("setting","s",0) ){ |
| 1088 | command_list(0, CMDFLAG_SETTING); |
| 1089 | return; |
| 1090 | } |
| 1091 | else if( find_option("full","f",0) ){ |
| 1092 | fossil_print("fossil commands:\n\n"); |
| 1093 | command_list(0, CMDFLAG_1ST_TIER); |
| 1094 | fossil_print("\nfossil auxiliary commands:\n\n"); |
| 1095 | command_list(0, CMDFLAG_2ND_TIER); |
| 1096 | fossil_print("\n%s", zOptions); |
| 1097 | fossil_print("\nfossil settings:\n\n"); |
| 1098 | command_list(0, CMDFLAG_SETTING); |
| 1099 | fossil_print("\nfossil web pages:\n\n"); |
| 1100 | command_list(0, CMDFLAG_WEBPAGE); |
| 1101 | fossil_print("\nfossil test commands (unsupported):\n\n"); |
| 1102 | command_list(0, CMDFLAG_TEST); |
| 1103 | fossil_print("\n"); |
| 1104 | version_cmd(); |
| 1105 | return; |
| 1106 | } |
| 1107 | else if( find_option("everything","e",0) ){ |
| 1108 | display_all_help(CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE | |
| 1109 | CMDFLAG_SETTING | CMDFLAG_TEST, 0, 0); |
| 1110 | return; |
| 1111 | } |
| 1112 | useHtml = find_option("html","h",0)!=0; |
| 1113 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1114 | if(isPage){ |
| 1115 | zCmdOrPage = "page"; |
| 1116 |
+31
-15
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -767,34 +767,41 @@ | ||
| 767 | 767 | const char *zMime, /* MIME-type */ |
| 768 | 768 | const char *zDefaultTitle, /* Default title */ |
| 769 | 769 | const char *zFilename /* Name of the file being rendered */ |
| 770 | 770 | ){ |
| 771 | 771 | Blob title; |
| 772 | + int isPopup = P("popup")!=0; | |
| 772 | 773 | blob_init(&title,0,0); |
| 773 | 774 | if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){ |
| 774 | 775 | Blob tail; |
| 775 | 776 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 776 | 777 | if( wiki_find_title(pBody, &title, &tail) ){ |
| 777 | - style_header("%s", blob_str(&title)); | |
| 778 | + if( !isPopup ) style_header("%s", blob_str(&title)); | |
| 778 | 779 | wiki_convert(&tail, 0, WIKI_BUTTONS); |
| 779 | 780 | }else{ |
| 780 | - style_header("%s", zDefaultTitle); | |
| 781 | + if( !isPopup ) style_header("%s", zDefaultTitle); | |
| 781 | 782 | wiki_convert(pBody, 0, WIKI_BUTTONS); |
| 782 | 783 | } |
| 783 | - document_emit_js(); | |
| 784 | - style_finish_page(); | |
| 784 | + if( !isPopup ){ | |
| 785 | + document_emit_js(); | |
| 786 | + style_finish_page(); | |
| 787 | + } | |
| 785 | 788 | }else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){ |
| 786 | 789 | Blob tail = BLOB_INITIALIZER; |
| 787 | 790 | markdown_to_html(pBody, &title, &tail); |
| 788 | - if( blob_size(&title)>0 ){ | |
| 789 | - style_header("%s", blob_str(&title)); | |
| 790 | - }else{ | |
| 791 | - style_header("%s", zDefaultTitle); | |
| 791 | + if( !isPopup ){ | |
| 792 | + if( blob_size(&title)>0 ){ | |
| 793 | + style_header("%s", blob_str(&title)); | |
| 794 | + }else{ | |
| 795 | + style_header("%s", zDefaultTitle); | |
| 796 | + } | |
| 792 | 797 | } |
| 793 | 798 | convert_href_and_output(&tail); |
| 794 | - document_emit_js(); | |
| 795 | - style_finish_page(); | |
| 799 | + if( !isPopup ){ | |
| 800 | + document_emit_js(); | |
| 801 | + style_finish_page(); | |
| 802 | + } | |
| 796 | 803 | }else if( fossil_strcmp(zMime, "text/plain")==0 ){ |
| 797 | 804 | style_header("%s", zDefaultTitle); |
| 798 | 805 | @ <blockquote><pre> |
| 799 | 806 | @ %h(blob_str(pBody)) |
| 800 | 807 | @ </pre></blockquote> |
| @@ -801,14 +808,16 @@ | ||
| 801 | 808 | document_emit_js(); |
| 802 | 809 | style_finish_page(); |
| 803 | 810 | }else if( fossil_strcmp(zMime, "text/html")==0 |
| 804 | 811 | && doc_is_embedded_html(pBody, &title) ){ |
| 805 | 812 | if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1); |
| 806 | - style_header("%s", blob_str(&title)); | |
| 813 | + if( !isPopup ) style_header("%s", blob_str(&title)); | |
| 807 | 814 | convert_href_and_output(pBody); |
| 808 | - document_emit_js(); | |
| 809 | - style_finish_page(); | |
| 815 | + if( !isPopup ){ | |
| 816 | + document_emit_js(); | |
| 817 | + style_finish_page(); | |
| 818 | + } | |
| 810 | 819 | }else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){ |
| 811 | 820 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 812 | 821 | style_header("%s", zDefaultTitle); |
| 813 | 822 | wiki_render_by_mimetype(pBody, zMime); |
| 814 | 823 | style_finish_page(); |
| @@ -867,11 +876,16 @@ | ||
| 867 | 876 | ** directly from disk and need not be a managed file. For /uv, FILE |
| 868 | 877 | ** can also be the hash of the unversioned file. |
| 869 | 878 | ** |
| 870 | 879 | ** The "ckout" CHECKIN is intended for development - to provide a mechanism |
| 871 | 880 | ** for looking at what a file will look like using the /doc webpage after |
| 872 | -** it gets checked in. | |
| 881 | +** it gets checked in. Some commands like "fossil ui", "fossil server", | |
| 882 | +** and "fossil http" accept an argument "--ckout-alias NAME" when allows | |
| 883 | +** NAME to be understood as an alias for "ckout". On a site with many | |
| 884 | +** embedded hyperlinks to /doc/trunk/... one can run with "--ckout-alias trunk" | |
| 885 | +** to simulate what the pending changes will look like after they are | |
| 886 | +** checked in. The NAME alias is stored in g.zCkoutAlias. | |
| 873 | 887 | ** |
| 874 | 888 | ** The file extension is used to decide how to render the file. |
| 875 | 889 | ** |
| 876 | 890 | ** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki", |
| 877 | 891 | ** and "FILE/index.md" are tried in that order. If the binary was compiled |
| @@ -988,11 +1002,13 @@ | ||
| 988 | 1002 | "SELECT name FROM unversioned WHERE hash=%Q", zName); |
| 989 | 1003 | g.isConst = 1; |
| 990 | 1004 | } |
| 991 | 1005 | zDfltTitle = zName; |
| 992 | 1006 | } |
| 993 | - }else if( fossil_strcmp(zCheckin,"ckout")==0 ){ | |
| 1007 | + }else if( fossil_strcmp(zCheckin,"ckout")==0 | |
| 1008 | + || fossil_strcmp(zCheckin,g.zCkoutAlias)==0 | |
| 1009 | + ){ | |
| 994 | 1010 | /* Read from the local checkout */ |
| 995 | 1011 | char *zFullpath; |
| 996 | 1012 | db_must_be_within_tree(); |
| 997 | 1013 | zFullpath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 998 | 1014 | if( file_isfile(zFullpath, RepoFILE) |
| 999 | 1015 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -767,34 +767,41 @@ | |
| 767 | const char *zMime, /* MIME-type */ |
| 768 | const char *zDefaultTitle, /* Default title */ |
| 769 | const char *zFilename /* Name of the file being rendered */ |
| 770 | ){ |
| 771 | Blob title; |
| 772 | blob_init(&title,0,0); |
| 773 | if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){ |
| 774 | Blob tail; |
| 775 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 776 | if( wiki_find_title(pBody, &title, &tail) ){ |
| 777 | style_header("%s", blob_str(&title)); |
| 778 | wiki_convert(&tail, 0, WIKI_BUTTONS); |
| 779 | }else{ |
| 780 | style_header("%s", zDefaultTitle); |
| 781 | wiki_convert(pBody, 0, WIKI_BUTTONS); |
| 782 | } |
| 783 | document_emit_js(); |
| 784 | style_finish_page(); |
| 785 | }else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){ |
| 786 | Blob tail = BLOB_INITIALIZER; |
| 787 | markdown_to_html(pBody, &title, &tail); |
| 788 | if( blob_size(&title)>0 ){ |
| 789 | style_header("%s", blob_str(&title)); |
| 790 | }else{ |
| 791 | style_header("%s", zDefaultTitle); |
| 792 | } |
| 793 | convert_href_and_output(&tail); |
| 794 | document_emit_js(); |
| 795 | style_finish_page(); |
| 796 | }else if( fossil_strcmp(zMime, "text/plain")==0 ){ |
| 797 | style_header("%s", zDefaultTitle); |
| 798 | @ <blockquote><pre> |
| 799 | @ %h(blob_str(pBody)) |
| 800 | @ </pre></blockquote> |
| @@ -801,14 +808,16 @@ | |
| 801 | document_emit_js(); |
| 802 | style_finish_page(); |
| 803 | }else if( fossil_strcmp(zMime, "text/html")==0 |
| 804 | && doc_is_embedded_html(pBody, &title) ){ |
| 805 | if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1); |
| 806 | style_header("%s", blob_str(&title)); |
| 807 | convert_href_and_output(pBody); |
| 808 | document_emit_js(); |
| 809 | style_finish_page(); |
| 810 | }else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){ |
| 811 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 812 | style_header("%s", zDefaultTitle); |
| 813 | wiki_render_by_mimetype(pBody, zMime); |
| 814 | style_finish_page(); |
| @@ -867,11 +876,16 @@ | |
| 867 | ** directly from disk and need not be a managed file. For /uv, FILE |
| 868 | ** can also be the hash of the unversioned file. |
| 869 | ** |
| 870 | ** The "ckout" CHECKIN is intended for development - to provide a mechanism |
| 871 | ** for looking at what a file will look like using the /doc webpage after |
| 872 | ** it gets checked in. |
| 873 | ** |
| 874 | ** The file extension is used to decide how to render the file. |
| 875 | ** |
| 876 | ** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki", |
| 877 | ** and "FILE/index.md" are tried in that order. If the binary was compiled |
| @@ -988,11 +1002,13 @@ | |
| 988 | "SELECT name FROM unversioned WHERE hash=%Q", zName); |
| 989 | g.isConst = 1; |
| 990 | } |
| 991 | zDfltTitle = zName; |
| 992 | } |
| 993 | }else if( fossil_strcmp(zCheckin,"ckout")==0 ){ |
| 994 | /* Read from the local checkout */ |
| 995 | char *zFullpath; |
| 996 | db_must_be_within_tree(); |
| 997 | zFullpath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 998 | if( file_isfile(zFullpath, RepoFILE) |
| 999 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -767,34 +767,41 @@ | |
| 767 | const char *zMime, /* MIME-type */ |
| 768 | const char *zDefaultTitle, /* Default title */ |
| 769 | const char *zFilename /* Name of the file being rendered */ |
| 770 | ){ |
| 771 | Blob title; |
| 772 | int isPopup = P("popup")!=0; |
| 773 | blob_init(&title,0,0); |
| 774 | if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){ |
| 775 | Blob tail; |
| 776 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 777 | if( wiki_find_title(pBody, &title, &tail) ){ |
| 778 | if( !isPopup ) style_header("%s", blob_str(&title)); |
| 779 | wiki_convert(&tail, 0, WIKI_BUTTONS); |
| 780 | }else{ |
| 781 | if( !isPopup ) style_header("%s", zDefaultTitle); |
| 782 | wiki_convert(pBody, 0, WIKI_BUTTONS); |
| 783 | } |
| 784 | if( !isPopup ){ |
| 785 | document_emit_js(); |
| 786 | style_finish_page(); |
| 787 | } |
| 788 | }else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){ |
| 789 | Blob tail = BLOB_INITIALIZER; |
| 790 | markdown_to_html(pBody, &title, &tail); |
| 791 | if( !isPopup ){ |
| 792 | if( blob_size(&title)>0 ){ |
| 793 | style_header("%s", blob_str(&title)); |
| 794 | }else{ |
| 795 | style_header("%s", zDefaultTitle); |
| 796 | } |
| 797 | } |
| 798 | convert_href_and_output(&tail); |
| 799 | if( !isPopup ){ |
| 800 | document_emit_js(); |
| 801 | style_finish_page(); |
| 802 | } |
| 803 | }else if( fossil_strcmp(zMime, "text/plain")==0 ){ |
| 804 | style_header("%s", zDefaultTitle); |
| 805 | @ <blockquote><pre> |
| 806 | @ %h(blob_str(pBody)) |
| 807 | @ </pre></blockquote> |
| @@ -801,14 +808,16 @@ | |
| 808 | document_emit_js(); |
| 809 | style_finish_page(); |
| 810 | }else if( fossil_strcmp(zMime, "text/html")==0 |
| 811 | && doc_is_embedded_html(pBody, &title) ){ |
| 812 | if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1); |
| 813 | if( !isPopup ) style_header("%s", blob_str(&title)); |
| 814 | convert_href_and_output(pBody); |
| 815 | if( !isPopup ){ |
| 816 | document_emit_js(); |
| 817 | style_finish_page(); |
| 818 | } |
| 819 | }else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){ |
| 820 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 821 | style_header("%s", zDefaultTitle); |
| 822 | wiki_render_by_mimetype(pBody, zMime); |
| 823 | style_finish_page(); |
| @@ -867,11 +876,16 @@ | |
| 876 | ** directly from disk and need not be a managed file. For /uv, FILE |
| 877 | ** can also be the hash of the unversioned file. |
| 878 | ** |
| 879 | ** The "ckout" CHECKIN is intended for development - to provide a mechanism |
| 880 | ** for looking at what a file will look like using the /doc webpage after |
| 881 | ** it gets checked in. Some commands like "fossil ui", "fossil server", |
| 882 | ** and "fossil http" accept an argument "--ckout-alias NAME" when allows |
| 883 | ** NAME to be understood as an alias for "ckout". On a site with many |
| 884 | ** embedded hyperlinks to /doc/trunk/... one can run with "--ckout-alias trunk" |
| 885 | ** to simulate what the pending changes will look like after they are |
| 886 | ** checked in. The NAME alias is stored in g.zCkoutAlias. |
| 887 | ** |
| 888 | ** The file extension is used to decide how to render the file. |
| 889 | ** |
| 890 | ** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki", |
| 891 | ** and "FILE/index.md" are tried in that order. If the binary was compiled |
| @@ -988,11 +1002,13 @@ | |
| 1002 | "SELECT name FROM unversioned WHERE hash=%Q", zName); |
| 1003 | g.isConst = 1; |
| 1004 | } |
| 1005 | zDfltTitle = zName; |
| 1006 | } |
| 1007 | }else if( fossil_strcmp(zCheckin,"ckout")==0 |
| 1008 | || fossil_strcmp(zCheckin,g.zCkoutAlias)==0 |
| 1009 | ){ |
| 1010 | /* Read from the local checkout */ |
| 1011 | char *zFullpath; |
| 1012 | db_must_be_within_tree(); |
| 1013 | zFullpath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 1014 | if( file_isfile(zFullpath, RepoFILE) |
| 1015 |
+3
-3
| --- src/event.c | ||
| +++ src/event.c | ||
| @@ -271,18 +271,18 @@ | ||
| 271 | 271 | free(zDate); |
| 272 | 272 | |
| 273 | 273 | zETime[10] = 'T'; |
| 274 | 274 | blob_appendf(&event, "E %s %s\n", zETime, zId); |
| 275 | 275 | zETime[10] = ' '; |
| 276 | + if( zMimetype && zMimetype[0] ){ | |
| 277 | + blob_appendf(&event, "N %s\n", zMimetype); | |
| 278 | + } | |
| 276 | 279 | if( rid ){ |
| 277 | 280 | char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 278 | 281 | blob_appendf(&event, "P %s\n", zUuid); |
| 279 | 282 | free(zUuid); |
| 280 | 283 | } |
| 281 | - if( zMimetype && zMimetype[0] ){ | |
| 282 | - blob_appendf(&event, "N %s\n", zMimetype); | |
| 283 | - } | |
| 284 | 284 | if( zClr && zClr[0] ){ |
| 285 | 285 | blob_appendf(&event, "T +bgcolor * %F\n", zClr); |
| 286 | 286 | } |
| 287 | 287 | if( zTags && zTags[0] ){ |
| 288 | 288 | Blob tags, one; |
| 289 | 289 |
| --- src/event.c | |
| +++ src/event.c | |
| @@ -271,18 +271,18 @@ | |
| 271 | free(zDate); |
| 272 | |
| 273 | zETime[10] = 'T'; |
| 274 | blob_appendf(&event, "E %s %s\n", zETime, zId); |
| 275 | zETime[10] = ' '; |
| 276 | if( rid ){ |
| 277 | char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 278 | blob_appendf(&event, "P %s\n", zUuid); |
| 279 | free(zUuid); |
| 280 | } |
| 281 | if( zMimetype && zMimetype[0] ){ |
| 282 | blob_appendf(&event, "N %s\n", zMimetype); |
| 283 | } |
| 284 | if( zClr && zClr[0] ){ |
| 285 | blob_appendf(&event, "T +bgcolor * %F\n", zClr); |
| 286 | } |
| 287 | if( zTags && zTags[0] ){ |
| 288 | Blob tags, one; |
| 289 |
| --- src/event.c | |
| +++ src/event.c | |
| @@ -271,18 +271,18 @@ | |
| 271 | free(zDate); |
| 272 | |
| 273 | zETime[10] = 'T'; |
| 274 | blob_appendf(&event, "E %s %s\n", zETime, zId); |
| 275 | zETime[10] = ' '; |
| 276 | if( zMimetype && zMimetype[0] ){ |
| 277 | blob_appendf(&event, "N %s\n", zMimetype); |
| 278 | } |
| 279 | if( rid ){ |
| 280 | char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 281 | blob_appendf(&event, "P %s\n", zUuid); |
| 282 | free(zUuid); |
| 283 | } |
| 284 | if( zClr && zClr[0] ){ |
| 285 | blob_appendf(&event, "T +bgcolor * %F\n", zClr); |
| 286 | } |
| 287 | if( zTags && zTags[0] ){ |
| 288 | Blob tags, one; |
| 289 |
+9
-6
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -481,11 +481,11 @@ | ||
| 481 | 481 | ** |
| 482 | 482 | ** Options: |
| 483 | 483 | ** --export-marks FILE export rids of exported data to FILE |
| 484 | 484 | ** --import-marks FILE read rids of data to ignore from FILE |
| 485 | 485 | ** --rename-trunk NAME use NAME as name of exported trunk branch |
| 486 | -** --repository|-R REPOSITORY export the given REPOSITORY | |
| 486 | +** -R|--repository REPOSITORY export the given REPOSITORY | |
| 487 | 487 | ** |
| 488 | 488 | ** See also: import |
| 489 | 489 | */ |
| 490 | 490 | /* |
| 491 | 491 | ** COMMAND: export* |
| @@ -1324,11 +1324,11 @@ | ||
| 1324 | 1324 | /* Create a new Git repository at zMirror */ |
| 1325 | 1325 | zCmd = mprintf("git init %$", zMirror); |
| 1326 | 1326 | gitmirror_message(VERB_NORMAL, "%s\n", zCmd); |
| 1327 | 1327 | rc = fossil_system(zCmd); |
| 1328 | 1328 | if( rc ){ |
| 1329 | - fossil_fatal("cannot initialize git repository using: %s\n", zCmd); | |
| 1329 | + fossil_fatal("cannot initialize git repository using: %s", zCmd); | |
| 1330 | 1330 | } |
| 1331 | 1331 | fossil_free(zCmd); |
| 1332 | 1332 | |
| 1333 | 1333 | /* Must be in the new Git repository directory for subsequent commands */ |
| 1334 | 1334 | rc = file_chdir(zMirror, 0); |
| @@ -1718,11 +1718,14 @@ | ||
| 1718 | 1718 | zPushCmd = mprintf("git push --mirror %s", zPushUrl); |
| 1719 | 1719 | } |
| 1720 | 1720 | gitmirror_message(VERB_NORMAL, "%s\n", zPushCmd); |
| 1721 | 1721 | fossil_free(zPushCmd); |
| 1722 | 1722 | zPushCmd = mprintf("git push --mirror %$", zPushUrl); |
| 1723 | - fossil_system(zPushCmd); | |
| 1723 | + rc = fossil_system(zPushCmd); | |
| 1724 | + if( rc ){ | |
| 1725 | + fossil_fatal("cannot push content using: %s", zPushCmd); | |
| 1726 | + } | |
| 1724 | 1727 | fossil_free(zPushCmd); |
| 1725 | 1728 | } |
| 1726 | 1729 | } |
| 1727 | 1730 | |
| 1728 | 1731 | /* |
| @@ -1812,20 +1815,20 @@ | ||
| 1812 | 1815 | ** URL is remembered and used on subsequent exports |
| 1813 | 1816 | ** to the same repository. Or if URL is "off" the |
| 1814 | 1817 | ** auto-push mechanism is disabled |
| 1815 | 1818 | ** --debug FILE Write fast-export text to FILE rather than |
| 1816 | 1819 | ** piping it into "git fast-import". |
| 1817 | -** --force|-f Do the export even if nothing has changed | |
| 1820 | +** -f|--force Do the export even if nothing has changed | |
| 1818 | 1821 | ** --if-mirrored No-op if the mirror does not already exist. |
| 1819 | 1822 | ** --limit N Add no more than N new check-ins to MIRROR. |
| 1820 | 1823 | ** Useful for debugging |
| 1821 | 1824 | ** --mainbranch NAME Use NAME as the name of the main branch in Git. |
| 1822 | 1825 | ** The "trunk" branch of the Fossil repository is |
| 1823 | 1826 | ** mapped into this name. "master" is used if |
| 1824 | 1827 | ** this option is omitted. |
| 1825 | -** --quiet|-q Reduce output. Repeat for even less output. | |
| 1826 | -** --verbose|-v More output. | |
| 1828 | +** -q|--quiet Reduce output. Repeat for even less output. | |
| 1829 | +** -v|--verbose More output. | |
| 1827 | 1830 | ** |
| 1828 | 1831 | ** > fossil git import MIRROR |
| 1829 | 1832 | ** |
| 1830 | 1833 | ** TBD... |
| 1831 | 1834 | ** |
| 1832 | 1835 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -481,11 +481,11 @@ | |
| 481 | ** |
| 482 | ** Options: |
| 483 | ** --export-marks FILE export rids of exported data to FILE |
| 484 | ** --import-marks FILE read rids of data to ignore from FILE |
| 485 | ** --rename-trunk NAME use NAME as name of exported trunk branch |
| 486 | ** --repository|-R REPOSITORY export the given REPOSITORY |
| 487 | ** |
| 488 | ** See also: import |
| 489 | */ |
| 490 | /* |
| 491 | ** COMMAND: export* |
| @@ -1324,11 +1324,11 @@ | |
| 1324 | /* Create a new Git repository at zMirror */ |
| 1325 | zCmd = mprintf("git init %$", zMirror); |
| 1326 | gitmirror_message(VERB_NORMAL, "%s\n", zCmd); |
| 1327 | rc = fossil_system(zCmd); |
| 1328 | if( rc ){ |
| 1329 | fossil_fatal("cannot initialize git repository using: %s\n", zCmd); |
| 1330 | } |
| 1331 | fossil_free(zCmd); |
| 1332 | |
| 1333 | /* Must be in the new Git repository directory for subsequent commands */ |
| 1334 | rc = file_chdir(zMirror, 0); |
| @@ -1718,11 +1718,14 @@ | |
| 1718 | zPushCmd = mprintf("git push --mirror %s", zPushUrl); |
| 1719 | } |
| 1720 | gitmirror_message(VERB_NORMAL, "%s\n", zPushCmd); |
| 1721 | fossil_free(zPushCmd); |
| 1722 | zPushCmd = mprintf("git push --mirror %$", zPushUrl); |
| 1723 | fossil_system(zPushCmd); |