Fossil SCM
Brought graham's ui-local-diff branch up to date with respect to trunk. This is not a simple merge, because it had to accommodate several conflicting changes, so it needs to be re-checked for sanity before being merged down to trunk. Also, some of the changes I made simply reduce the size of the resulting diff relative to trunk and need to be reverted; these are primarily 2-line splits of "else/if" so the branch-specific change doesn't repeat the following "if" condition, which is now the "else if" condition. I think this sort of thing aids understanding of the diff, even though it breaks the style guidelines.
Commit
0516f4d3c85d8e37f65aacca0db1e036791178e4d283310ee453ccd4ec9729dc
Parent
a955c80b43c358f…
396 files changed
+1
+1
-1
+3
+1
-1
+1
-1
-3
-1
+1
-1
+27
-14
+1
-1
+17
-22
+49
-49
-3
+38
-19
+1
+1
-1
+16
-41
+2
-2
+11
-31
+14
-5
+19
-47
-13
-391
-3
-8
-71
-115
+20
-70
+146
+4
+6
+22
+219
-198
-3
+11
-35
-228
+65
-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
+8
-2
+1
-1
+15
-41
+62
-67
+9
+91
-51
+88
+56
-45
+24
-32
+7
-4
+189
-24
+174
-80
+73
-4
+21
-18
+19
-17
+780
-11
+11
-25
+4
-2
+11
-1
+7
-4
+119
-46
+9
+1054
+248
-113
+248
-113
+15
-10
+114
-42
-1
+24
+1
-1
+3
+59
-30
+1
-1
+36
-17
+1
-1
+645
-153
+116
-35
+118
-37
+74
-28
+28
-22
+72
-45
+838
-91
+98
-38
+28
-22
+18
-3
+11
-7
+199
-30
+7
-2
+210
-24
+304
-473
+206
-117
+546
-530
+1
-1
+45
-127
+54
-10
+68
+515
-45
+40
-21
+3
+222
-143
+3
+41
+34
+39
+438
+84
-14
+55
-8
+441
+1
-1
+1
-1
+1
-1
+33
+118
-15
+17
-3
+37
-10
+255
+1
+10
-1
+1
-1
+11
-9
+4
-4
+122
-23
+339
-152
+339
-152
+11
+75
-23
+1
-1
+2
-1
+3
-3
+8
-2
+3
-2
+37
-11
+2
+2
-1
+134
-53
+1
-1
+310
-127
+111
-37
+2
-1
+1
-1
+230
-223
+226
-70
+54
-19
+26
-4
+94
-7
+2
-2
+63
-6
+214
-15
-168
+11
-1
+43
-1
+3
-1
+114
-42
+27
-13
+6
-2
+2735
+265
+69
-19
+2
-2
+17
-28
+28
-13
+3
-3
+4
-1
+36
-23
+15
-21
+9
-1
+2
-2
+27
-10
+23
-7
+311
-62
+61
-14
+2
+2
+1933
-252
+6
-6
+207
-50
+98
-75
+8
-3
+9
-8
+103
-11
+2
-2
+17289
-13502
+778
-693
+56
-67
+66
-23
+1
-1
+291
-402
+60
-193
+125
+199
-36
+11
-11
+58
-26
+1
-1
+53
-62
+7
-3
+105
+327
-89
+479
-196
+140
-40
+9
-6
+29
-18
+13
-8
+7
-4
+86
-33
+81
-8
+52
-23
+258
-9
+3
+9
-5
+858
-342
+16
-4
+362
-123
+16
-2
-325
+43
-7
+5
-4
+64
-26
+12
-15
+23
-5
+7
-17
+4
-4
+2
-2
+1
-1
+72
+51
-22
+79
+6
-6
+1
-1
+5
-5
+32
-2
+12
-2
+121
+164
+9
-6
+63
-32
+3
-2
+22
-10
+8
-5
+288
-288
+6
+72
+184
+1
-1
-257
+78
+1
-4
+48
-19
+113
-54
+97
-35
+1883
-1691
+69
-13
-4
+24
-7
+2
-13
+38
-2
+238
+477
-32
-95
-228
-95
-247
-126
-303
-252
-569
-320
-730
-458
-239
+284
-117
+6
-6
+173
+31
-29
+1
-1
+58
-36
+25
-1
+14
-4
+213
-7
+134
+3
-3
+53
-47
+3
-2
+3
+4
+36
-3
+14
+71
-30
+1
-1
+104
-37
+157
-60
+28
-1
+80
-18
+17
-8
+2
-2
+1
-1
+1
-1
+73
-24
+44
-3
+54
-99
+422
+198
-127
+1164
-146
+4
-4
+4
-4
+1
-1
+2
-2
+3
-3
+11
-11
+122
+461
-383
+54
-42
+339
-293
+27
-25
+10
+81
+474
-136
+28
-56
+29
-3
+5
-5
+29
-2
+17
-6
+43
-12
+133
+2
-2
+545
-395
+7
-18
-148
-71
-137
-69
-200
-92
-242
-108
-231
-101
+193
-93
+15
-15
+2
-3
+2
-2
+4
-2
+11
+3
+6
+471
-25
+1
-1
+26
-4
+5
+237
+5
+3
-2
+39
-4
+19
-2
+10
-4
+2
-2
+199
-109
+1
-427
+1
-1
+1
-1
+13
-9
+15
-5
+253
-245
~
.fossil-settings/binary-glob
~
.fossil-settings/clean-glob
~
.fossil-settings/ignore-glob
~
BUILD.txt
~
Dockerfile
~
Makefile.classic
~
Makefile.osx-jaguar
~
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/css.txt
~
skins/xekri/details.txt
~
skins/xekri/header.txt
~
src/add.c
~
src/ajax.c
~
src/alerts.c
~
src/alerts/bflat2.wav
~
src/alerts/bflat3.wav
~
src/alerts/bloop.wav
~
src/alerts/mkwav.c
~
src/alerts/plunk.wav
~
src/allrepo.c
~
src/attach.c
~
src/backlink.c
~
src/backoffice.c
~
src/bisect.c
~
src/blob.c
~
src/branch.c
~
src/browse.c
~
src/builtin.c
~
src/bundle.c
~
src/cache.c
~
src/capabilities.c
~
src/captcha.c
~
src/cgi.c
~
src/chat.c
~
src/chat.js
~
src/checkin.c
~
src/checkin.c
~
src/checkout.c
~
src/clone.c
~
src/codecheck1.c
~
src/color.c
~
src/comformat.c
~
src/config.h
~
src/configure.c
~
src/content.c
~
src/cookies.c
~
src/copybtn.js
~
src/db.c
~
src/default.css
+
src/default.css
-
src/default_css.txt
~
src/descendants.c
~
src/diff.c
~
src/diffcmd.c
~
src/dispatch.c
~
src/doc.c
~
src/encode.c
~
src/etag.c
~
src/event.c
~
src/export.c
~
src/extcgi.c
~
src/file.c
~
src/fileedit.c
~
src/finfo.c
~
src/forum.c
~
src/forum.js
~
src/fossil.bootstrap.js
~
src/fossil.confirmer.js
~
src/fossil.copybutton.js
~
src/fossil.dom.js
~
src/fossil.fetch.js
~
src/fossil.numbered-lines.js
~
src/fossil.page.fileedit.js
~
src/fossil.page.forumpost.js
~
src/fossil.page.pikchrshow.js
~
src/fossil.page.wikiedit.js
~
src/fossil.pikchr.js
~
src/fossil.popupwidget.js
~
src/fossil.storage.js
~
src/fossil.tabs.js
~
src/fossil.wikiedit-wysiwyg.js
~
src/fshell.c
~
src/fusefs.c
~
src/fuzz.c
~
src/glob.c
~
src/graph.c
~
src/graph.js
~
src/hbmenu.js
+
src/hbmenu.js
~
src/hook.c
~
src/http.c
~
src/http_socket.c
~
src/http_ssl.c
~
src/http_transport.c
~
src/import.c
~
src/info.c
~
src/info.c
~
src/interwiki.c
~
src/json.c
~
src/json_branch.c
~
src/json_config.c
~
src/json_login.c
~
src/json_user.c
~
src/json_wiki.c
~
src/linenoise.c
~
src/linenoise.h
~
src/loadctrl.c
~
src/login.c
~
src/lookslike.c
~
src/main.c
~
src/main.mk
~
src/makeheaders.c
~
src/makeheaders.html
~
src/makemake.tcl
~
src/manifest.c
~
src/markdown.c
~
src/markdown.md
~
src/markdown_html.c
~
src/merge.c
~
src/merge3.c
~
src/mkbuiltin.c
-
src/mkcss.c
~
src/mkindex.c
~
src/mkversion.c
~
src/moderate.c
~
src/name.c
~
src/path.c
~
src/piechart.c
~
src/pikchr.c
~
src/pikchrshow.c
~
src/printf.c
~
src/publish.c
~
src/purge.c
~
src/rebuild.c
~
src/regexp.c
~
src/repolist.c
~
src/report.c
~
src/rss.c
~
src/sbsdiff.js
~
src/scroll.js
~
src/search.c
~
src/security_audit.c
~
src/setup.c
~
src/setupuser.c
~
src/sha1.c
~
src/sha3.c
~
src/shell.c
~
src/shun.c
~
src/sitemap.c
~
src/skins.c
~
src/smtp.c
~
src/sounds/README.md
~
src/sqlcmd.c
~
src/sqlcompattest.c
~
src/sqlite3.c
~
src/sqlite3.h
~
src/stash.c
~
src/stat.c
~
src/statrep.c
~
src/style.c
~
src/style.fileedit.css
~
src/style.wikiedit.css
~
src/sync.c
~
src/tag.c
~
src/tar.c
~
src/terminal.c
~
src/th.c
~
src/th.h
~
src/th_lang.c
~
src/th_main.c
~
src/timeline.c
~
src/tkt.c
~
src/tktsetup.c
~
src/translate.c
~
src/undo.c
~
src/unversioned.c
~
src/update.c
~
src/url.c
~
src/user.c
~
src/util.c
~
src/vfile.c
~
src/webmail.c
~
src/wiki.c
~
src/wiki.wiki
~
src/wikiformat.c
~
src/winhttp.c
-
src/wysiwyg.c
~
src/xfer.c
~
src/xfersetup.c
~
src/zip.c
~
test/amend.test
~
test/cmdline.test
~
test/commit-warning.test
~
test/diff.test
~
test/fake-editor.tcl
~
test/fileStat.th1
~
test/graph-test-2.md
~
test/json.test
~
test/markdown-test2.md
~
test/merge1.test
~
test/merge3.test
~
test/merge4.test
~
test/mv-rm.test
~
test/release-checklist.wiki
~
test/reserved-names.test
~
test/revert.test
~
test/set-manifest.test
~
test/tester.tcl
~
test/th1-hooks.test
~
test/th1.test
~
test/unversioned.test
~
test/utf.test
~
test/wiki.test
~
tools/co-rsync.tcl
~
tools/fossil-autocomplete.zsh
~
tools/fossil-stress.tcl
-
tools/fossil_chat.tcl
~
tools/skintxt2config.c
~
win/Makefile.PellesCGMake
~
win/Makefile.dmc
~
win/Makefile.mingw
~
win/Makefile.mingw.mistachkin
~
win/Makefile.msc
~
win/buildmsvc.bat
~
win/fossil.rc
-
www/CollRev1.gif
-
www/CollRev2.gif
-
www/CollRev3.gif
-
www/CollRev4.gif
~
www/aboutcgi.wiki
~
www/alerts.md
~
www/backoffice.md
~
www/backup.md
~
www/blockchain.md
-
www/branch01.graphml
-
www/branch01.svg
-
www/branch02.graphml
-
www/branch02.svg
-
www/branch03.graphml
-
www/branch03.svg
-
www/branch04.graphml
-
www/branch04.svg
-
www/branch05.graphml
-
www/branch05.svg
-
www/branch06.graphml
-
www/branch06.svg
~
www/branching.wiki
~
www/build.wiki
~
www/cap-theorem.md
~
www/caps/admin-v-setup.md
~
www/caps/impl.md
~
www/caps/index.md
~
www/caps/ref.html
~
www/cgi.wiki
~
www/changes.wiki
~
www/chat.md
~
www/checkin.wiki
~
www/checkin_names.wiki
~
www/chroot.md
~
www/ckout-workflows.md
~
www/co-vs-up.md
-
www/concept1.gif
-
www/concept2.gif
~
www/concepts.wiki
~
www/contact.md
~
www/contribute.wiki
~
www/css-tricks.md
~
www/customskin.md
~
www/defcsp.md
-
www/delta1.gif
-
www/delta2.gif
-
www/delta3.gif
-
www/delta4.gif
-
www/delta5.gif
-
www/delta6.gif
~
www/delta_encoder_algorithm.wiki
~
www/delta_format.wiki
~
www/embeddeddoc.wiki
-
www/encode10.gif
~
www/env-opts.md
~
www/faq.tcl
~
www/faq.wiki
~
www/fileedit-page.md
~
www/fileformat.wiki
~
www/forum.wiki
~
www/fossil-is-not-relational.md
~
www/fossil-v-git.wiki
~
www/fossil3.gif
~
www/gitusers.md
~
www/globs.md
~
www/grep.md
~
www/hashes.md
~
www/hashpolicy.wiki
~
www/hints.wiki
~
www/history.md
~
www/hooks.md
~
www/image-format-vs-repo-size.ipynb
~
www/image-format-vs-repo-size.md
~
www/image-format-vs-repo-size.svg
~
www/index.wiki
~
www/inout.wiki
~
www/interwiki.md
~
www/javascript.md
~
www/json-api/intro.md
~
www/makefile.wiki
~
www/mirrorlimitations.md
~
www/mirrortogithub.md
~
www/mkindex.tcl
~
www/permutedindex.html
~
www/pikchr.md
~
www/qandc.wiki
~
www/quickstart.wiki
~
www/quotes.wiki
-
www/rebase01.graphml
-
www/rebase01.svg
-
www/rebase02.graphml
-
www/rebase02.svg
-
www/rebase03.graphml
-
www/rebase03.svg
-
www/rebase04.graphml
-
www/rebase04.svg
-
www/rebase05.graphml
-
www/rebase05.svg
~
www/rebaseharm.md
~
www/selfcheck.wiki
~
www/selfhost.wiki
~
www/server/any/althttpd.md
~
www/server/any/cgi.md
~
www/server/any/index.md
~
www/server/any/scgi.md
~
www/server/debian/index.md
~
www/server/debian/nginx.md
~
www/server/debian/service.md
~
www/server/index.html
~
www/server/macos/index.md
~
www/server/openbsd/fastcgi.md
~
www/server/openbsd/index.md
~
www/server/whyuseaserver.wiki
~
www/serverext.wiki
~
www/shunning.wiki
~
www/ssl.wiki
~
www/sync.wiki
~
www/th1.md
~
www/tls-nginx.md
~
www/uitest.html
~
www/unvers.wiki
~
www/webpage-ex.md
~
www/webui.wiki
~
www/whyusefossil.wiki
| --- .fossil-settings/binary-glob | ||
| +++ .fossil-settings/binary-glob | ||
| @@ -3,9 +3,10 @@ | ||
| 3 | 3 | *.jpg |
| 4 | 4 | *.odp |
| 5 | 5 | *.dia |
| 6 | 6 | |
| 7 | 7 | *.png |
| 8 | +*.wav | |
| 8 | 9 | compat/zlib/contrib/blast/test.pk |
| 9 | 10 | compat/zlib/contrib/dotzlib/DotZLib.chm |
| 10 | 11 | compat/zlib/contrib/puff/zeros.raw |
| 11 | 12 | compat/zlib/zlib.3.pdf |
| 12 | 13 |
| --- .fossil-settings/binary-glob | |
| +++ .fossil-settings/binary-glob | |
| @@ -3,9 +3,10 @@ | |
| 3 | *.jpg |
| 4 | *.odp |
| 5 | *.dia |
| 6 | |
| 7 | *.png |
| 8 | compat/zlib/contrib/blast/test.pk |
| 9 | compat/zlib/contrib/dotzlib/DotZLib.chm |
| 10 | compat/zlib/contrib/puff/zeros.raw |
| 11 | compat/zlib/zlib.3.pdf |
| 12 |
| --- .fossil-settings/binary-glob | |
| +++ .fossil-settings/binary-glob | |
| @@ -3,9 +3,10 @@ | |
| 3 | *.jpg |
| 4 | *.odp |
| 5 | *.dia |
| 6 | |
| 7 | *.png |
| 8 | *.wav |
| 9 | compat/zlib/contrib/blast/test.pk |
| 10 | compat/zlib/contrib/dotzlib/DotZLib.chm |
| 11 | compat/zlib/contrib/puff/zeros.raw |
| 12 | compat/zlib/zlib.3.pdf |
| 13 |
+1
-1
| --- .fossil-settings/clean-glob | ||
| +++ .fossil-settings/clean-glob | ||
| @@ -7,11 +7,11 @@ | ||
| 7 | 7 | *.res |
| 8 | 8 | Makefile |
| 9 | 9 | autosetup/jimsh0 |
| 10 | 10 | autosetup/jimsh0.exe |
| 11 | 11 | bld/* |
| 12 | -wbld/* | |
| 12 | +msvcbld/* | |
| 13 | 13 | win/*.c |
| 14 | 14 | win/*.h |
| 15 | 15 | win/*.exe |
| 16 | 16 | win/headers |
| 17 | 17 | win/linkopts |
| 18 | 18 |
| --- .fossil-settings/clean-glob | |
| +++ .fossil-settings/clean-glob | |
| @@ -7,11 +7,11 @@ | |
| 7 | *.res |
| 8 | Makefile |
| 9 | autosetup/jimsh0 |
| 10 | autosetup/jimsh0.exe |
| 11 | bld/* |
| 12 | wbld/* |
| 13 | win/*.c |
| 14 | win/*.h |
| 15 | win/*.exe |
| 16 | win/headers |
| 17 | win/linkopts |
| 18 |
| --- .fossil-settings/clean-glob | |
| +++ .fossil-settings/clean-glob | |
| @@ -7,11 +7,11 @@ | |
| 7 | *.res |
| 8 | Makefile |
| 9 | autosetup/jimsh0 |
| 10 | autosetup/jimsh0.exe |
| 11 | bld/* |
| 12 | msvcbld/* |
| 13 | win/*.c |
| 14 | win/*.h |
| 15 | win/*.exe |
| 16 | win/headers |
| 17 | win/linkopts |
| 18 |
| --- .fossil-settings/ignore-glob | ||
| +++ .fossil-settings/ignore-glob | ||
| @@ -1,7 +1,10 @@ | ||
| 1 | 1 | compat/openssl* |
| 2 | 2 | compat/tcl* |
| 3 | +compat/zlib* | |
| 3 | 4 | fossil |
| 4 | 5 | fossil.exe |
| 5 | 6 | win/fossil.exe |
| 6 | 7 | *shell-see.* |
| 7 | 8 | *sqlite3-see.* |
| 9 | +bld/* | |
| 10 | +msvcbld/* | |
| 8 | 11 |
| --- .fossil-settings/ignore-glob | |
| +++ .fossil-settings/ignore-glob | |
| @@ -1,7 +1,10 @@ | |
| 1 | compat/openssl* |
| 2 | compat/tcl* |
| 3 | fossil |
| 4 | fossil.exe |
| 5 | win/fossil.exe |
| 6 | *shell-see.* |
| 7 | *sqlite3-see.* |
| 8 |
| --- .fossil-settings/ignore-glob | |
| +++ .fossil-settings/ignore-glob | |
| @@ -1,7 +1,10 @@ | |
| 1 | compat/openssl* |
| 2 | compat/tcl* |
| 3 | compat/zlib* |
| 4 | fossil |
| 5 | fossil.exe |
| 6 | win/fossil.exe |
| 7 | *shell-see.* |
| 8 | *sqlite3-see.* |
| 9 | bld/* |
| 10 | msvcbld/* |
| 11 |
+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 |
-3
| --- Makefile.classic | ||
| +++ Makefile.classic | ||
| @@ -43,13 +43,10 @@ | ||
| 43 | 43 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 44 | 44 | |
| 45 | 45 | # To add support for HTTPS |
| 46 | 46 | TCC += -DFOSSIL_ENABLE_SSL |
| 47 | 47 | |
| 48 | -# To enable legacy mv/rm support | |
| 49 | -TCC += -DFOSSIL_ENABLE_LEGACY_MV_RM=1 | |
| 50 | - | |
| 51 | 48 | #### We sometimes add the -static option here so that we can build a |
| 52 | 49 | # static executable that will run in a chroot jail. |
| 53 | 50 | #LIB = -static |
| 54 | 51 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 55 | 52 | |
| 56 | 53 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -43,13 +43,10 @@ | |
| 43 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 44 | |
| 45 | # To add support for HTTPS |
| 46 | TCC += -DFOSSIL_ENABLE_SSL |
| 47 | |
| 48 | # To enable legacy mv/rm support |
| 49 | TCC += -DFOSSIL_ENABLE_LEGACY_MV_RM=1 |
| 50 | |
| 51 | #### We sometimes add the -static option here so that we can build a |
| 52 | # static executable that will run in a chroot jail. |
| 53 | #LIB = -static |
| 54 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 55 | |
| 56 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -43,13 +43,10 @@ | |
| 43 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 44 | |
| 45 | # To add support for HTTPS |
| 46 | TCC += -DFOSSIL_ENABLE_SSL |
| 47 | |
| 48 | #### We sometimes add the -static option here so that we can build a |
| 49 | # static executable that will run in a chroot jail. |
| 50 | #LIB = -static |
| 51 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 52 | |
| 53 |
-1
| --- Makefile.osx-jaguar | ||
| +++ Makefile.osx-jaguar | ||
| @@ -57,11 +57,10 @@ | ||
| 57 | 57 | TCC += -DSQLITE_WITHOUT_ZONEMALLOC |
| 58 | 58 | TCC += -D_BSD_SOURCE=1 |
| 59 | 59 | TCC += -DWITHOUT_ICONV |
| 60 | 60 | TCC += -Dsocklen_t=int |
| 61 | 61 | TCC += -DSQLITE_MAX_MMAP_SIZE=0 |
| 62 | -TCC += -DFOSSIL_ENABLE_LEGACY_MV_RM=1 | |
| 63 | 62 | INSTALLDIR = $(DESTDIR)/usr/local/bin |
| 64 | 63 | USE_SYSTEM_SQLITE = |
| 65 | 64 | USE_LINENOISE = 1 |
| 66 | 65 | # FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 67 | 66 | FOSSIL_ENABLE_TCL = 0 |
| 68 | 67 |
| --- Makefile.osx-jaguar | |
| +++ Makefile.osx-jaguar | |
| @@ -57,11 +57,10 @@ | |
| 57 | TCC += -DSQLITE_WITHOUT_ZONEMALLOC |
| 58 | TCC += -D_BSD_SOURCE=1 |
| 59 | TCC += -DWITHOUT_ICONV |
| 60 | TCC += -Dsocklen_t=int |
| 61 | TCC += -DSQLITE_MAX_MMAP_SIZE=0 |
| 62 | TCC += -DFOSSIL_ENABLE_LEGACY_MV_RM=1 |
| 63 | INSTALLDIR = $(DESTDIR)/usr/local/bin |
| 64 | USE_SYSTEM_SQLITE = |
| 65 | USE_LINENOISE = 1 |
| 66 | # FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 67 | FOSSIL_ENABLE_TCL = 0 |
| 68 |
| --- Makefile.osx-jaguar | |
| +++ Makefile.osx-jaguar | |
| @@ -57,11 +57,10 @@ | |
| 57 | TCC += -DSQLITE_WITHOUT_ZONEMALLOC |
| 58 | TCC += -D_BSD_SOURCE=1 |
| 59 | TCC += -DWITHOUT_ICONV |
| 60 | TCC += -Dsocklen_t=int |
| 61 | TCC += -DSQLITE_MAX_MMAP_SIZE=0 |
| 62 | INSTALLDIR = $(DESTDIR)/usr/local/bin |
| 63 | USE_SYSTEM_SQLITE = |
| 64 | USE_LINENOISE = 1 |
| 65 | # FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@ |
| 66 | FOSSIL_ENABLE_TCL = 0 |
| 67 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.12 | |
| 1 | +2.15 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.12 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.15 |
| 2 |
M
auto.def
+27
-14
| --- auto.def | ||
| +++ auto.def | ||
| @@ -8,11 +8,10 @@ | ||
| 8 | 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | 9 | with-zlib:path|auto|tree |
| 10 | 10 | => {Look for zlib in the given path, automatically, or in the source tree} |
| 11 | 11 | with-exec-rel-paths=0 |
| 12 | 12 | => {Enable relative paths for external diff/gdiff} |
| 13 | - with-legacy-mv-rm=1 => {Enable legacy behavior for mv/rm (skip checkout files)} | |
| 14 | 13 | with-sanitizer: => {Build with C compiler's -fsanitize=LIST; e.g. address,enum,null,undefined} |
| 15 | 14 | with-th1-docs=0 => {Enable TH1 for embedded documentation pages} |
| 16 | 15 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 17 | 16 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 18 | 17 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| @@ -177,17 +176,20 @@ | ||
| 177 | 176 | } |
| 178 | 177 | if {!$ok} { |
| 179 | 178 | user-error "unable to compile SQLite compatibility test program" |
| 180 | 179 | } |
| 181 | 180 | set err [catch {exec-with-stderr ./conftest__} result errinfo] |
| 182 | - if {$err} { | |
| 183 | - user-error $result | |
| 181 | + if {[get-define build] eq [get-define host]} { | |
| 182 | + set err [catch {exec-with-stderr ./conftest__} result errinfo] | |
| 183 | + if {$err} { | |
| 184 | + user-error $result | |
| 185 | + } | |
| 184 | 186 | } |
| 185 | 187 | file delete ./conftest__ |
| 186 | 188 | } |
| 187 | 189 | test_system_sqlite |
| 188 | - | |
| 190 | + | |
| 189 | 191 | } |
| 190 | 192 | |
| 191 | 193 | proc is_mingw {} { |
| 192 | 194 | return [string match *mingw* [get-define host]] |
| 193 | 195 | } |
| @@ -238,16 +240,10 @@ | ||
| 238 | 240 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 239 | 241 | define FOSSIL_ENABLE_JSON |
| 240 | 242 | msg-result "JSON support enabled" |
| 241 | 243 | } |
| 242 | 244 | |
| 243 | -if {[opt-bool with-legacy-mv-rm]} { | |
| 244 | - define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_LEGACY_MV_RM=1 | |
| 245 | - define FOSSIL_ENABLE_LEGACY_MV_RM | |
| 246 | - msg-result "Legacy mv/rm support enabled" | |
| 247 | -} | |
| 248 | - | |
| 249 | 245 | if {[opt-bool with-exec-rel-paths]} { |
| 250 | 246 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_EXEC_REL_PATHS |
| 251 | 247 | define FOSSIL_ENABLE_EXEC_REL_PATHS |
| 252 | 248 | msg-result "Relative paths in external diff/gdiff enabled" |
| 253 | 249 | } |
| @@ -369,11 +365,12 @@ | ||
| 369 | 365 | set ldflags [exec pkg-config openssl --libs-only-L] |
| 370 | 366 | set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"] |
| 371 | 367 | } msg |
| 372 | 368 | if {!$found} { |
| 373 | 369 | set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \ |
| 374 | - /usr/pkg /usr/local /usr /usr/local/opt/openssl" | |
| 370 | + /usr/pkg /usr/local /usr /usr/local/opt/openssl \ | |
| 371 | + /opt/homebrew/opt/openssl" | |
| 375 | 372 | } |
| 376 | 373 | } |
| 377 | 374 | if {!$found} { |
| 378 | 375 | foreach dir $ssldirs { |
| 379 | 376 | if {$dir eq ""} { |
| @@ -574,10 +571,18 @@ | ||
| 574 | 571 | cc-check-functions utime |
| 575 | 572 | cc-check-functions usleep |
| 576 | 573 | cc-check-functions strchrnul |
| 577 | 574 | cc-check-functions pledge |
| 578 | 575 | cc-check-functions backtrace |
| 576 | + | |
| 577 | +# Termux on Android adds "getpass(char *)" to unistd.h, so check this so we | |
| 578 | +# guard against including it again; use cctest as cc-check-functions and | |
| 579 | +# cctest_function check for "getpass()" with no args and fail | |
| 580 | +if {[cctest -link 1 -includes {unistd.h} -code "getpass(0);"]} { | |
| 581 | + define FOSSIL_HAVE_GETPASS 1 | |
| 582 | + msg-result "Found getpass() with unistd.h" | |
| 583 | +} | |
| 579 | 584 | |
| 580 | 585 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 581 | 586 | if {![cc-check-functions getloadavg]} { |
| 582 | 587 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 583 | 588 | msg-result "Load average support unavailable" |
| @@ -590,11 +595,13 @@ | ||
| 590 | 595 | } |
| 591 | 596 | cc-check-function-in-lib sin m |
| 592 | 597 | |
| 593 | 598 | # Check for the FuseFS library |
| 594 | 599 | if {[opt-bool fusefs]} { |
| 595 | - if {[cc-check-function-in-lib fuse_mount fuse]} { | |
| 600 | + if {[opt-bool static]} { | |
| 601 | + msg-result "FuseFS support disabled due to -static" | |
| 602 | + } elseif {[cc-check-function-in-lib fuse_mount fuse]} { | |
| 596 | 603 | define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS |
| 597 | 604 | define FOSSIL_HAVE_FUSEFS 1 |
| 598 | 605 | define-append LIBS -lfuse |
| 599 | 606 | msg-result "FuseFS support enabled" |
| 600 | 607 | } |
| @@ -612,15 +619,21 @@ | ||
| 612 | 619 | # GCC with -fsanitize=undefined. |
| 613 | 620 | cc-check-function-in-lib __ubsan_handle_add_overflow ubsan |
| 614 | 621 | } |
| 615 | 622 | } |
| 616 | 623 | |
| 617 | -# Finally, append -ldl to make sure it's the last in the list. | |
| 618 | -# The library order matters in case of static linking. | |
| 624 | +# Finally, append libraries that must be last. This matters more on some | |
| 625 | +# OSes than others, but is most broadly required for static linking. | |
| 619 | 626 | if {[check-function-in-lib dlopen dl]} { |
| 620 | 627 | # Some platforms (*BSD) have the dl functions already in libc and no libdl. |
| 621 | 628 | # In such case we can link directly without -ldl. |
| 622 | 629 | define-append LIBS [get-define lib_dlopen] |
| 623 | 630 | } |
| 631 | +if {[opt-bool static]} { | |
| 632 | + # Linux can only infer the dependency on pthread from OpenSSL when | |
| 633 | + # doing dynamic linkage. | |
| 634 | + define-append LIBS -lpthread | |
| 635 | +} | |
| 636 | + | |
| 624 | 637 | |
| 625 | 638 | make-template Makefile.in |
| 626 | 639 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 627 | 640 |
| --- auto.def | |
| +++ auto.def | |
| @@ -8,11 +8,10 @@ | |
| 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | with-zlib:path|auto|tree |
| 10 | => {Look for zlib in the given path, automatically, or in the source tree} |
| 11 | with-exec-rel-paths=0 |
| 12 | => {Enable relative paths for external diff/gdiff} |
| 13 | with-legacy-mv-rm=1 => {Enable legacy behavior for mv/rm (skip checkout files)} |
| 14 | with-sanitizer: => {Build with C compiler's -fsanitize=LIST; e.g. address,enum,null,undefined} |
| 15 | with-th1-docs=0 => {Enable TH1 for embedded documentation pages} |
| 16 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 17 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 18 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| @@ -177,17 +176,20 @@ | |
| 177 | } |
| 178 | if {!$ok} { |
| 179 | user-error "unable to compile SQLite compatibility test program" |
| 180 | } |
| 181 | set err [catch {exec-with-stderr ./conftest__} result errinfo] |
| 182 | if {$err} { |
| 183 | user-error $result |
| 184 | } |
| 185 | file delete ./conftest__ |
| 186 | } |
| 187 | test_system_sqlite |
| 188 | |
| 189 | } |
| 190 | |
| 191 | proc is_mingw {} { |
| 192 | return [string match *mingw* [get-define host]] |
| 193 | } |
| @@ -238,16 +240,10 @@ | |
| 238 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 239 | define FOSSIL_ENABLE_JSON |
| 240 | msg-result "JSON support enabled" |
| 241 | } |
| 242 | |
| 243 | if {[opt-bool with-legacy-mv-rm]} { |
| 244 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_LEGACY_MV_RM=1 |
| 245 | define FOSSIL_ENABLE_LEGACY_MV_RM |
| 246 | msg-result "Legacy mv/rm support enabled" |
| 247 | } |
| 248 | |
| 249 | if {[opt-bool with-exec-rel-paths]} { |
| 250 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_EXEC_REL_PATHS |
| 251 | define FOSSIL_ENABLE_EXEC_REL_PATHS |
| 252 | msg-result "Relative paths in external diff/gdiff enabled" |
| 253 | } |
| @@ -369,11 +365,12 @@ | |
| 369 | set ldflags [exec pkg-config openssl --libs-only-L] |
| 370 | set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"] |
| 371 | } msg |
| 372 | if {!$found} { |
| 373 | set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \ |
| 374 | /usr/pkg /usr/local /usr /usr/local/opt/openssl" |
| 375 | } |
| 376 | } |
| 377 | if {!$found} { |
| 378 | foreach dir $ssldirs { |
| 379 | if {$dir eq ""} { |
| @@ -574,10 +571,18 @@ | |
| 574 | cc-check-functions utime |
| 575 | cc-check-functions usleep |
| 576 | cc-check-functions strchrnul |
| 577 | cc-check-functions pledge |
| 578 | cc-check-functions backtrace |
| 579 | |
| 580 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 581 | if {![cc-check-functions getloadavg]} { |
| 582 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 583 | msg-result "Load average support unavailable" |
| @@ -590,11 +595,13 @@ | |
| 590 | } |
| 591 | cc-check-function-in-lib sin m |
| 592 | |
| 593 | # Check for the FuseFS library |
| 594 | if {[opt-bool fusefs]} { |
| 595 | if {[cc-check-function-in-lib fuse_mount fuse]} { |
| 596 | define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS |
| 597 | define FOSSIL_HAVE_FUSEFS 1 |
| 598 | define-append LIBS -lfuse |
| 599 | msg-result "FuseFS support enabled" |
| 600 | } |
| @@ -612,15 +619,21 @@ | |
| 612 | # GCC with -fsanitize=undefined. |
| 613 | cc-check-function-in-lib __ubsan_handle_add_overflow ubsan |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | # Finally, append -ldl to make sure it's the last in the list. |
| 618 | # The library order matters in case of static linking. |
| 619 | if {[check-function-in-lib dlopen dl]} { |
| 620 | # Some platforms (*BSD) have the dl functions already in libc and no libdl. |
| 621 | # In such case we can link directly without -ldl. |
| 622 | define-append LIBS [get-define lib_dlopen] |
| 623 | } |
| 624 | |
| 625 | make-template Makefile.in |
| 626 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 627 |
| --- auto.def | |
| +++ auto.def | |
| @@ -8,11 +8,10 @@ | |
| 8 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | with-zlib:path|auto|tree |
| 10 | => {Look for zlib in the given path, automatically, or in the source tree} |
| 11 | with-exec-rel-paths=0 |
| 12 | => {Enable relative paths for external diff/gdiff} |
| 13 | with-sanitizer: => {Build with C compiler's -fsanitize=LIST; e.g. address,enum,null,undefined} |
| 14 | with-th1-docs=0 => {Enable TH1 for embedded documentation pages} |
| 15 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 16 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 17 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| @@ -177,17 +176,20 @@ | |
| 176 | } |
| 177 | if {!$ok} { |
| 178 | user-error "unable to compile SQLite compatibility test program" |
| 179 | } |
| 180 | set err [catch {exec-with-stderr ./conftest__} result errinfo] |
| 181 | if {[get-define build] eq [get-define host]} { |
| 182 | set err [catch {exec-with-stderr ./conftest__} result errinfo] |
| 183 | if {$err} { |
| 184 | user-error $result |
| 185 | } |
| 186 | } |
| 187 | file delete ./conftest__ |
| 188 | } |
| 189 | test_system_sqlite |
| 190 | |
| 191 | } |
| 192 | |
| 193 | proc is_mingw {} { |
| 194 | return [string match *mingw* [get-define host]] |
| 195 | } |
| @@ -238,16 +240,10 @@ | |
| 240 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_JSON |
| 241 | define FOSSIL_ENABLE_JSON |
| 242 | msg-result "JSON support enabled" |
| 243 | } |
| 244 | |
| 245 | if {[opt-bool with-exec-rel-paths]} { |
| 246 | define-append EXTRA_CFLAGS -DFOSSIL_ENABLE_EXEC_REL_PATHS |
| 247 | define FOSSIL_ENABLE_EXEC_REL_PATHS |
| 248 | msg-result "Relative paths in external diff/gdiff enabled" |
| 249 | } |
| @@ -369,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 ""} { |
| @@ -574,10 +571,18 @@ | |
| 571 | cc-check-functions utime |
| 572 | cc-check-functions usleep |
| 573 | cc-check-functions strchrnul |
| 574 | cc-check-functions pledge |
| 575 | cc-check-functions backtrace |
| 576 | |
| 577 | # Termux on Android adds "getpass(char *)" to unistd.h, so check this so we |
| 578 | # guard against including it again; use cctest as cc-check-functions and |
| 579 | # cctest_function check for "getpass()" with no args and fail |
| 580 | if {[cctest -link 1 -includes {unistd.h} -code "getpass(0);"]} { |
| 581 | define FOSSIL_HAVE_GETPASS 1 |
| 582 | msg-result "Found getpass() with unistd.h" |
| 583 | } |
| 584 | |
| 585 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 586 | if {![cc-check-functions getloadavg]} { |
| 587 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 588 | msg-result "Load average support unavailable" |
| @@ -590,11 +595,13 @@ | |
| 595 | } |
| 596 | cc-check-function-in-lib sin m |
| 597 | |
| 598 | # Check for the FuseFS library |
| 599 | if {[opt-bool fusefs]} { |
| 600 | if {[opt-bool static]} { |
| 601 | msg-result "FuseFS support disabled due to -static" |
| 602 | } elseif {[cc-check-function-in-lib fuse_mount fuse]} { |
| 603 | define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS |
| 604 | define FOSSIL_HAVE_FUSEFS 1 |
| 605 | define-append LIBS -lfuse |
| 606 | msg-result "FuseFS support enabled" |
| 607 | } |
| @@ -612,15 +619,21 @@ | |
| 619 | # GCC with -fsanitize=undefined. |
| 620 | cc-check-function-in-lib __ubsan_handle_add_overflow ubsan |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | # Finally, append libraries that must be last. This matters more on some |
| 625 | # OSes than others, but is most broadly required for static linking. |
| 626 | if {[check-function-in-lib dlopen dl]} { |
| 627 | # Some platforms (*BSD) have the dl functions already in libc and no libdl. |
| 628 | # In such case we can link directly without -ldl. |
| 629 | define-append LIBS [get-define lib_dlopen] |
| 630 | } |
| 631 | if {[opt-bool static]} { |
| 632 | # Linux can only infer the dependency on pthread from OpenSSL when |
| 633 | # doing dynamic linkage. |
| 634 | define-append LIBS -lpthread |
| 635 | } |
| 636 | |
| 637 | |
| 638 | make-template Makefile.in |
| 639 | make-config-header autoconfig.h -auto {USE_* FOSSIL_*} |
| 640 |
+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
+17
-22
| --- fossil.1 | ||
| +++ fossil.1 | ||
| @@ -14,31 +14,26 @@ | ||
| 14 | 14 | Fossil is a distributed version control system (DVCS) with built-in |
| 15 | 15 | forum, wiki, ticket tracker, CGI/HTTP interface, and HTTP server. |
| 16 | 16 | |
| 17 | 17 | .SH Common COMMANDs: |
| 18 | 18 | |
| 19 | -add clean help push timeline | |
| 20 | -.br | |
| 21 | -addremove clone import rebuild ui | |
| 22 | -.br | |
| 23 | -all commit info remote-url undo | |
| 24 | -.br | |
| 25 | -amend delete init revert unpublished | |
| 26 | -.br | |
| 27 | -annotate diff ls rm unversioned | |
| 28 | -.br | |
| 29 | -bisect export merge settings update | |
| 30 | -.br | |
| 31 | -blame extras mv sql version | |
| 32 | -.br | |
| 33 | -branch finfo open stash | |
| 34 | -.br | |
| 35 | -bundle fusefs praise status | |
| 36 | -.br | |
| 37 | -cat gdiff publish sync | |
| 38 | -.br | |
| 39 | -changes grep pull tag | |
| 19 | +add cat diff ls revert timeline | |
| 20 | +.br | |
| 21 | +addremove changes extras merge rm ui | |
| 22 | +.br | |
| 23 | +all chat finfo mv settings undo | |
| 24 | +.br | |
| 25 | +amend clean gdiff open sql unversioned | |
| 26 | +.br | |
| 27 | +annotate clone grep pull stash update | |
| 28 | +.br | |
| 29 | +bisect commit help push status version | |
| 30 | +.br | |
| 31 | +blame dbstat info rebuild sync | |
| 32 | +.br | |
| 33 | +branch delete init remote tag | |
| 34 | +.br | |
| 40 | 35 | |
| 41 | 36 | .SH FEATURES |
| 42 | 37 | |
| 43 | 38 | Features as described on the fossil home page. |
| 44 | 39 | |
| @@ -99,9 +94,9 @@ | ||
| 99 | 94 | 8. |
| 100 | 95 | .B Free and Open-Source |
| 101 | 96 | - Uses the 2-clause BSD license. |
| 102 | 97 | |
| 103 | 98 | .SH DOCUMENTATION |
| 104 | -http://www.fossil-scm.org/ | |
| 99 | +http://fossil-scm.org/ | |
| 105 | 100 | .br |
| 106 | 101 | .B fossil |
| 107 | 102 | \fIui\fR |
| 108 | 103 |
| --- fossil.1 | |
| +++ fossil.1 | |
| @@ -14,31 +14,26 @@ | |
| 14 | Fossil is a distributed version control system (DVCS) with built-in |
| 15 | forum, wiki, ticket tracker, CGI/HTTP interface, and HTTP server. |
| 16 | |
| 17 | .SH Common COMMANDs: |
| 18 | |
| 19 | add clean help push timeline |
| 20 | .br |
| 21 | addremove clone import rebuild ui |
| 22 | .br |
| 23 | all commit info remote-url undo |
| 24 | .br |
| 25 | amend delete init revert unpublished |
| 26 | .br |
| 27 | annotate diff ls rm unversioned |
| 28 | .br |
| 29 | bisect export merge settings update |
| 30 | .br |
| 31 | blame extras mv sql version |
| 32 | .br |
| 33 | branch finfo open stash |
| 34 | .br |
| 35 | bundle fusefs praise status |
| 36 | .br |
| 37 | cat gdiff publish sync |
| 38 | .br |
| 39 | changes grep pull tag |
| 40 | |
| 41 | .SH FEATURES |
| 42 | |
| 43 | Features as described on the fossil home page. |
| 44 | |
| @@ -99,9 +94,9 @@ | |
| 99 | 8. |
| 100 | .B Free and Open-Source |
| 101 | - Uses the 2-clause BSD license. |
| 102 | |
| 103 | .SH DOCUMENTATION |
| 104 | http://www.fossil-scm.org/ |
| 105 | .br |
| 106 | .B fossil |
| 107 | \fIui\fR |
| 108 |
| --- fossil.1 | |
| +++ fossil.1 | |
| @@ -14,31 +14,26 @@ | |
| 14 | Fossil is a distributed version control system (DVCS) with built-in |
| 15 | forum, wiki, ticket tracker, CGI/HTTP interface, and HTTP server. |
| 16 | |
| 17 | .SH Common COMMANDs: |
| 18 | |
| 19 | add cat diff ls revert timeline |
| 20 | .br |
| 21 | addremove changes extras merge rm ui |
| 22 | .br |
| 23 | all chat finfo mv settings undo |
| 24 | .br |
| 25 | amend clean gdiff open sql unversioned |
| 26 | .br |
| 27 | annotate clone grep pull stash update |
| 28 | .br |
| 29 | bisect commit help push status version |
| 30 | .br |
| 31 | blame dbstat info rebuild sync |
| 32 | .br |
| 33 | branch delete init remote tag |
| 34 | .br |
| 35 | |
| 36 | .SH FEATURES |
| 37 | |
| 38 | Features as described on the fossil home page. |
| 39 | |
| @@ -99,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 @@ | |
+38
-19
| --- skins/ardoise/css.txt | ||
| +++ skins/ardoise/css.txt | ||
| @@ -9,10 +9,11 @@ | ||
| 9 | 9 | table.login_out, |
| 10 | 10 | table.login_out td, |
| 11 | 11 | tr.timelineCurrent, |
| 12 | 12 | tr.timelineCurrent td.timelineTableCell, |
| 13 | 13 | tr.timelineSelected { |
| 14 | + background-color: initial; | |
| 14 | 15 | border: 0 |
| 15 | 16 | } |
| 16 | 17 | ol, |
| 17 | 18 | p, |
| 18 | 19 | ul { |
| @@ -57,12 +58,10 @@ | ||
| 57 | 58 | span.modpending { |
| 58 | 59 | font-style: italic |
| 59 | 60 | } |
| 60 | 61 | html { |
| 61 | 62 | font-family: sans-serif; |
| 62 | - -ms-text-size-adjust: 100%; | |
| 63 | - -webkit-text-size-adjust: 100% | |
| 64 | 63 | } |
| 65 | 64 | audio, |
| 66 | 65 | canvas, |
| 67 | 66 | progress, |
| 68 | 67 | video { |
| @@ -162,11 +161,10 @@ | ||
| 162 | 161 | } |
| 163 | 162 | button, |
| 164 | 163 | html input[type=button], |
| 165 | 164 | input[type=reset], |
| 166 | 165 | input[type=submit] { |
| 167 | - -webkit-appearance: button; | |
| 168 | 166 | cursor: pointer |
| 169 | 167 | } |
| 170 | 168 | button[disabled], |
| 171 | 169 | html input[disabled] { |
| 172 | 170 | cursor: default |
| @@ -187,17 +185,11 @@ | ||
| 187 | 185 | } |
| 188 | 186 | input[type=number]::-webkit-inner-spin-button, |
| 189 | 187 | input[type=number]::-webkit-outer-spin-button { |
| 190 | 188 | height: auto |
| 191 | 189 | } |
| 192 | -input[type=search] { | |
| 193 | - -webkit-appearance: textfield | |
| 194 | -} | |
| 195 | 190 | input[type=search]::-webkit-search-cancel-button, |
| 196 | -input[type=search]::-webkit-search-decoration { | |
| 197 | - -webkit-appearance: none | |
| 198 | -} | |
| 199 | 191 | fieldset { |
| 200 | 192 | border: 1px solid silver; |
| 201 | 193 | margin: 0 2px |
| 202 | 194 | } |
| 203 | 195 | legend { |
| @@ -487,13 +479,10 @@ | ||
| 487 | 479 | input[type=tel], |
| 488 | 480 | input[type=text], |
| 489 | 481 | input[type=url] { |
| 490 | 482 | box-shadow: none; |
| 491 | 483 | box-sizing: border-box; |
| 492 | - -webkit-appearance: none; | |
| 493 | - -moz-appearance: none; | |
| 494 | - appearance: none | |
| 495 | 484 | } |
| 496 | 485 | input[type=email], |
| 497 | 486 | input[type=number], |
| 498 | 487 | input[type=password], |
| 499 | 488 | input[type=search], |
| @@ -508,10 +497,13 @@ | ||
| 508 | 497 | background-color: #303536; |
| 509 | 498 | border: 0; |
| 510 | 499 | border-radius: 5px; |
| 511 | 500 | box-shadow: none; |
| 512 | 501 | box-sizing: border-box |
| 502 | +} | |
| 503 | +textarea, select { | |
| 504 | + height: initial; | |
| 513 | 505 | } |
| 514 | 506 | input[type=email]:hover, |
| 515 | 507 | input[type=number]:hover, |
| 516 | 508 | input[type=password]:hover, |
| 517 | 509 | input[type=search]:hover, |
| @@ -523,13 +515,10 @@ | ||
| 523 | 515 | color: #eef8ff; |
| 524 | 516 | background-color: #555 |
| 525 | 517 | } |
| 526 | 518 | textarea { |
| 527 | 519 | overflow: auto; |
| 528 | - -webkit-appearance: none; | |
| 529 | - -moz-appearance: none; | |
| 530 | - appearance: none; | |
| 531 | 520 | min-height: 65px; |
| 532 | 521 | padding-top: 6px; |
| 533 | 522 | padding-bottom: 6px |
| 534 | 523 | } |
| 535 | 524 | input[type=email]:focus, |
| @@ -584,10 +573,13 @@ | ||
| 584 | 573 | white-space: nowrap; |
| 585 | 574 | background: #000; |
| 586 | 575 | border: 2px solid #bbb; |
| 587 | 576 | border-radius: 5px |
| 588 | 577 | } |
| 578 | +table.numbered-lines td.file-content > pre { | |
| 579 | + margin-top: -2px/*offset CODE tag border*/; | |
| 580 | +} | |
| 589 | 581 | pre > code { |
| 590 | 582 | padding: 1rem 1.5rem; |
| 591 | 583 | white-space: pre |
| 592 | 584 | } |
| 593 | 585 | td, |
| @@ -665,13 +657,15 @@ | ||
| 665 | 657 | .content { |
| 666 | 658 | padding-top: 8px; |
| 667 | 659 | padding-left: 8px; |
| 668 | 660 | padding-right: 8px |
| 669 | 661 | } |
| 662 | +#hbdrop a, | |
| 670 | 663 | .content a { |
| 671 | 664 | color: #8cf |
| 672 | 665 | } |
| 666 | +#hbdrop a:hover, | |
| 673 | 667 | .content a:hover, |
| 674 | 668 | .submenu a:hover, |
| 675 | 669 | .submenu label:hover { |
| 676 | 670 | color: #fff |
| 677 | 671 | } |
| @@ -701,20 +695,19 @@ | ||
| 701 | 695 | .mainmenu { |
| 702 | 696 | background-color: #161819; |
| 703 | 697 | border-top-right-radius: 15px; |
| 704 | 698 | border-top-left-radius: 15px; |
| 705 | 699 | clear: both |
| 700 | + z-index: 21; | |
| 706 | 701 | } |
| 707 | 702 | .mainmenu ul { |
| 708 | 703 | list-style: none; |
| 709 | - display: block; | |
| 710 | 704 | border-top: 1px solid transparent; |
| 711 | 705 | padding: 0 |
| 712 | 706 | } |
| 713 | 707 | .mainmenu li { |
| 714 | 708 | outline: 0; |
| 715 | - display: block; | |
| 716 | 709 | float: left; |
| 717 | 710 | margin: 0 |
| 718 | 711 | } |
| 719 | 712 | .mainmenu li.active { |
| 720 | 713 | background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=); |
| @@ -721,11 +714,10 @@ | ||
| 721 | 714 | background-repeat: no-repeat; |
| 722 | 715 | background-position: center bottom |
| 723 | 716 | } |
| 724 | 717 | .mainmenu li a { |
| 725 | 718 | color: #66a8c7; |
| 726 | - display: block; | |
| 727 | 719 | padding: 10px 15px |
| 728 | 720 | } |
| 729 | 721 | .mainmenu li.active a { |
| 730 | 722 | text-shadow: 0 0 1px #b1d2e2 |
| 731 | 723 | } |
| @@ -734,10 +726,18 @@ | ||
| 734 | 726 | border-radius: 5px |
| 735 | 727 | } |
| 736 | 728 | .mainmenu li:hover a { |
| 737 | 729 | color: #000 |
| 738 | 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 | 739 | .submenu { |
| 740 | 740 | padding: 4px 0; |
| 741 | 741 | background-color: #000; |
| 742 | 742 | border-bottom-right-radius: 15px; |
| 743 | 743 | border-bottom-left-radius: 15px; |
| @@ -961,11 +961,13 @@ | ||
| 961 | 961 | border: solid #ff8000; |
| 962 | 962 | vertical-align: top; |
| 963 | 963 | text-align: left; |
| 964 | 964 | background: #442800 |
| 965 | 965 | } |
| 966 | -.timelineSelected {} | |
| 966 | +.timelineSelected { | |
| 967 | + box-shadow: none; | |
| 968 | +} | |
| 967 | 969 | .timelineSecondary {} |
| 968 | 970 | .timelineSecondary > .timelineColumnarCell, |
| 969 | 971 | .timelineSecondary > .timelineCompactCell, |
| 970 | 972 | .timelineSecondary > .timelineDetailCell, |
| 971 | 973 | .timelineSecondary > .timelineModernCell, |
| @@ -1392,5 +1394,22 @@ | ||
| 1392 | 1394 | .u-cf { |
| 1393 | 1395 | content: ""; |
| 1394 | 1396 | display: table; |
| 1395 | 1397 | clear: both |
| 1396 | 1398 | } |
| 1399 | +div.forumSel { | |
| 1400 | + background-color: #3a3a3a; | |
| 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 | +} | |
| 1397 | 1416 |
| --- skins/ardoise/css.txt | |
| +++ skins/ardoise/css.txt | |
| @@ -9,10 +9,11 @@ | |
| 9 | table.login_out, |
| 10 | table.login_out td, |
| 11 | tr.timelineCurrent, |
| 12 | tr.timelineCurrent td.timelineTableCell, |
| 13 | tr.timelineSelected { |
| 14 | border: 0 |
| 15 | } |
| 16 | ol, |
| 17 | p, |
| 18 | ul { |
| @@ -57,12 +58,10 @@ | |
| 57 | span.modpending { |
| 58 | font-style: italic |
| 59 | } |
| 60 | html { |
| 61 | font-family: sans-serif; |
| 62 | -ms-text-size-adjust: 100%; |
| 63 | -webkit-text-size-adjust: 100% |
| 64 | } |
| 65 | audio, |
| 66 | canvas, |
| 67 | progress, |
| 68 | video { |
| @@ -162,11 +161,10 @@ | |
| 162 | } |
| 163 | button, |
| 164 | html input[type=button], |
| 165 | input[type=reset], |
| 166 | input[type=submit] { |
| 167 | -webkit-appearance: button; |
| 168 | cursor: pointer |
| 169 | } |
| 170 | button[disabled], |
| 171 | html input[disabled] { |
| 172 | cursor: default |
| @@ -187,17 +185,11 @@ | |
| 187 | } |
| 188 | input[type=number]::-webkit-inner-spin-button, |
| 189 | input[type=number]::-webkit-outer-spin-button { |
| 190 | height: auto |
| 191 | } |
| 192 | input[type=search] { |
| 193 | -webkit-appearance: textfield |
| 194 | } |
| 195 | input[type=search]::-webkit-search-cancel-button, |
| 196 | input[type=search]::-webkit-search-decoration { |
| 197 | -webkit-appearance: none |
| 198 | } |
| 199 | fieldset { |
| 200 | border: 1px solid silver; |
| 201 | margin: 0 2px |
| 202 | } |
| 203 | legend { |
| @@ -487,13 +479,10 @@ | |
| 487 | input[type=tel], |
| 488 | input[type=text], |
| 489 | input[type=url] { |
| 490 | box-shadow: none; |
| 491 | box-sizing: border-box; |
| 492 | -webkit-appearance: none; |
| 493 | -moz-appearance: none; |
| 494 | appearance: none |
| 495 | } |
| 496 | input[type=email], |
| 497 | input[type=number], |
| 498 | input[type=password], |
| 499 | input[type=search], |
| @@ -508,10 +497,13 @@ | |
| 508 | background-color: #303536; |
| 509 | border: 0; |
| 510 | border-radius: 5px; |
| 511 | box-shadow: none; |
| 512 | box-sizing: border-box |
| 513 | } |
| 514 | input[type=email]:hover, |
| 515 | input[type=number]:hover, |
| 516 | input[type=password]:hover, |
| 517 | input[type=search]:hover, |
| @@ -523,13 +515,10 @@ | |
| 523 | color: #eef8ff; |
| 524 | background-color: #555 |
| 525 | } |
| 526 | textarea { |
| 527 | overflow: auto; |
| 528 | -webkit-appearance: none; |
| 529 | -moz-appearance: none; |
| 530 | appearance: none; |
| 531 | min-height: 65px; |
| 532 | padding-top: 6px; |
| 533 | padding-bottom: 6px |
| 534 | } |
| 535 | input[type=email]:focus, |
| @@ -584,10 +573,13 @@ | |
| 584 | white-space: nowrap; |
| 585 | background: #000; |
| 586 | border: 2px solid #bbb; |
| 587 | border-radius: 5px |
| 588 | } |
| 589 | pre > code { |
| 590 | padding: 1rem 1.5rem; |
| 591 | white-space: pre |
| 592 | } |
| 593 | td, |
| @@ -665,13 +657,15 @@ | |
| 665 | .content { |
| 666 | padding-top: 8px; |
| 667 | padding-left: 8px; |
| 668 | padding-right: 8px |
| 669 | } |
| 670 | .content a { |
| 671 | color: #8cf |
| 672 | } |
| 673 | .content a:hover, |
| 674 | .submenu a:hover, |
| 675 | .submenu label:hover { |
| 676 | color: #fff |
| 677 | } |
| @@ -701,20 +695,19 @@ | |
| 701 | .mainmenu { |
| 702 | background-color: #161819; |
| 703 | border-top-right-radius: 15px; |
| 704 | border-top-left-radius: 15px; |
| 705 | clear: both |
| 706 | } |
| 707 | .mainmenu ul { |
| 708 | list-style: none; |
| 709 | display: block; |
| 710 | border-top: 1px solid transparent; |
| 711 | padding: 0 |
| 712 | } |
| 713 | .mainmenu li { |
| 714 | outline: 0; |
| 715 | display: block; |
| 716 | float: left; |
| 717 | margin: 0 |
| 718 | } |
| 719 | .mainmenu li.active { |
| 720 | background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=); |
| @@ -721,11 +714,10 @@ | |
| 721 | background-repeat: no-repeat; |
| 722 | background-position: center bottom |
| 723 | } |
| 724 | .mainmenu li a { |
| 725 | color: #66a8c7; |
| 726 | display: block; |
| 727 | padding: 10px 15px |
| 728 | } |
| 729 | .mainmenu li.active a { |
| 730 | text-shadow: 0 0 1px #b1d2e2 |
| 731 | } |
| @@ -734,10 +726,18 @@ | |
| 734 | border-radius: 5px |
| 735 | } |
| 736 | .mainmenu li:hover a { |
| 737 | color: #000 |
| 738 | } |
| 739 | .submenu { |
| 740 | padding: 4px 0; |
| 741 | background-color: #000; |
| 742 | border-bottom-right-radius: 15px; |
| 743 | border-bottom-left-radius: 15px; |
| @@ -961,11 +961,13 @@ | |
| 961 | border: solid #ff8000; |
| 962 | vertical-align: top; |
| 963 | text-align: left; |
| 964 | background: #442800 |
| 965 | } |
| 966 | .timelineSelected {} |
| 967 | .timelineSecondary {} |
| 968 | .timelineSecondary > .timelineColumnarCell, |
| 969 | .timelineSecondary > .timelineCompactCell, |
| 970 | .timelineSecondary > .timelineDetailCell, |
| 971 | .timelineSecondary > .timelineModernCell, |
| @@ -1392,5 +1394,22 @@ | |
| 1392 | .u-cf { |
| 1393 | content: ""; |
| 1394 | display: table; |
| 1395 | clear: both |
| 1396 | } |
| 1397 |
| --- skins/ardoise/css.txt | |
| +++ skins/ardoise/css.txt | |
| @@ -9,10 +9,11 @@ | |
| 9 | table.login_out, |
| 10 | table.login_out td, |
| 11 | tr.timelineCurrent, |
| 12 | tr.timelineCurrent td.timelineTableCell, |
| 13 | tr.timelineSelected { |
| 14 | background-color: initial; |
| 15 | border: 0 |
| 16 | } |
| 17 | ol, |
| 18 | p, |
| 19 | ul { |
| @@ -57,12 +58,10 @@ | |
| 58 | span.modpending { |
| 59 | font-style: italic |
| 60 | } |
| 61 | html { |
| 62 | font-family: sans-serif; |
| 63 | } |
| 64 | audio, |
| 65 | canvas, |
| 66 | progress, |
| 67 | video { |
| @@ -162,11 +161,10 @@ | |
| 161 | } |
| 162 | button, |
| 163 | html input[type=button], |
| 164 | input[type=reset], |
| 165 | input[type=submit] { |
| 166 | cursor: pointer |
| 167 | } |
| 168 | button[disabled], |
| 169 | html input[disabled] { |
| 170 | cursor: default |
| @@ -187,17 +185,11 @@ | |
| 185 | } |
| 186 | input[type=number]::-webkit-inner-spin-button, |
| 187 | input[type=number]::-webkit-outer-spin-button { |
| 188 | height: auto |
| 189 | } |
| 190 | input[type=search]::-webkit-search-cancel-button, |
| 191 | fieldset { |
| 192 | border: 1px solid silver; |
| 193 | margin: 0 2px |
| 194 | } |
| 195 | legend { |
| @@ -487,13 +479,10 @@ | |
| 479 | input[type=tel], |
| 480 | input[type=text], |
| 481 | input[type=url] { |
| 482 | box-shadow: none; |
| 483 | box-sizing: border-box; |
| 484 | } |
| 485 | input[type=email], |
| 486 | input[type=number], |
| 487 | input[type=password], |
| 488 | input[type=search], |
| @@ -508,10 +497,13 @@ | |
| 497 | background-color: #303536; |
| 498 | border: 0; |
| 499 | border-radius: 5px; |
| 500 | box-shadow: none; |
| 501 | box-sizing: border-box |
| 502 | } |
| 503 | textarea, select { |
| 504 | height: initial; |
| 505 | } |
| 506 | input[type=email]:hover, |
| 507 | input[type=number]:hover, |
| 508 | input[type=password]:hover, |
| 509 | input[type=search]:hover, |
| @@ -523,13 +515,10 @@ | |
| 515 | color: #eef8ff; |
| 516 | background-color: #555 |
| 517 | } |
| 518 | textarea { |
| 519 | overflow: auto; |
| 520 | min-height: 65px; |
| 521 | padding-top: 6px; |
| 522 | padding-bottom: 6px |
| 523 | } |
| 524 | input[type=email]:focus, |
| @@ -584,10 +573,13 @@ | |
| 573 | white-space: nowrap; |
| 574 | background: #000; |
| 575 | border: 2px solid #bbb; |
| 576 | border-radius: 5px |
| 577 | } |
| 578 | table.numbered-lines td.file-content > pre { |
| 579 | margin-top: -2px/*offset CODE tag border*/; |
| 580 | } |
| 581 | pre > code { |
| 582 | padding: 1rem 1.5rem; |
| 583 | white-space: pre |
| 584 | } |
| 585 | td, |
| @@ -665,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 | } |
| @@ -701,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=); |
| @@ -721,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 | } |
| @@ -734,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; |
| @@ -961,11 +961,13 @@ | |
| 961 | border: solid #ff8000; |
| 962 | vertical-align: top; |
| 963 | text-align: left; |
| 964 | background: #442800 |
| 965 | } |
| 966 | .timelineSelected { |
| 967 | box-shadow: none; |
| 968 | } |
| 969 | .timelineSecondary {} |
| 970 | .timelineSecondary > .timelineColumnarCell, |
| 971 | .timelineSecondary > .timelineCompactCell, |
| 972 | .timelineSecondary > .timelineDetailCell, |
| 973 | .timelineSecondary > .timelineModernCell, |
| @@ -1392,5 +1394,22 @@ | |
| 1394 | .u-cf { |
| 1395 | content: ""; |
| 1396 | display: table; |
| 1397 | clear: both |
| 1398 | } |
| 1399 | div.forumSel { |
| 1400 | background-color: #3a3a3a; |
| 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 @@ | |
+20
-70
| --- skins/bootstrap/header.txt | ||
| +++ skins/bootstrap/header.txt | ||
| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | if(!e) throw new Error("Expecting element with ID "+x); |
| 15 | 15 | else return e; |
| 16 | 16 | } |
| 17 | 17 | </script> |
| 18 | 18 | </head> |
| 19 | - <body data-spy="scroll" data-target=".sidebar"> | |
| 19 | + <body data-spy="scroll" data-target=".sidebar" class="$current_feature"> | |
| 20 | 20 | <div id="wrap"> |
| 21 | 21 | <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> |
| 22 | 22 | <div class="container"> |
| 23 | 23 | <div class="navbar-header"> |
| 24 | 24 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> |
| @@ -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 | |
| @@ -14,11 +14,11 @@ | |
| 14 | if(!e) throw new Error("Expecting element with ID "+x); |
| 15 | else return e; |
| 16 | } |
| 17 | </script> |
| 18 | </head> |
| 19 | <body data-spy="scroll" data-target=".sidebar"> |
| 20 | <div id="wrap"> |
| 21 | <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> |
| 22 | <div class="container"> |
| 23 | <div class="navbar-header"> |
| 24 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> |
| @@ -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 | |
| @@ -14,11 +14,11 @@ | |
| 14 | if(!e) throw new Error("Expecting element with ID "+x); |
| 15 | else return e; |
| 16 | } |
| 17 | </script> |
| 18 | </head> |
| 19 | <body data-spy="scroll" data-target=".sidebar" class="$current_feature"> |
| 20 | <div id="wrap"> |
| 21 | <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> |
| 22 | <div class="container"> |
| 23 | <div class="navbar-header"> |
| 24 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> |
| @@ -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 |
+146
| --- a/skins/darkmode/css.txt | ||
| +++ b/skins/darkmode/css.txt | ||
| @@ -0,0 +1,146 @@ | ||
| 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;90%; | |
| 50 | + padding-right: 1emr the entire page */ | |
| 51 | +body { | |
| 52 | + margin: 0ex 1ex; | |
| 53 | + padding: 0; | |
| 54 | + background-color: #1f1f1f; | |
| 55 | + color: #ffffffe0; | |
| 56 | + font-family: sans-serif; | |
| 57 | +} | |
| 58 | + | |
| 59 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 60 | +body { | |
| 61 | + margin: 0ex 1ex; | |
| 62 | + padding: 0; | |
| 63 | + background-color: #1f1f1f; | |
| 64 | + color: #ffffffe0; | |
| 65 | + font-family: sans-serif; | |
| 66 | +} | |
| 67 | + | |
| 68 | +/* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, | |
| 69 | +footernamainfooter General settings for the entire page */ | |
| 70 | +body { | |
| 71 | + margin: 0ex 1ex; | |
| 72 | + padding: 0; | |
| 73 | + background-color: #1f1f1f; | |
| 74 | + color: #ffffffe0; | |
| 75 | + font-family: sans-serif; | |
| 76 | +} | |
| 77 | + | |
| 78 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 79 | +body { | |
| 80 | + margin: 0ex 1ex; | |
| 81 | + padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, | |
| 82 | +divdidivdivre page */ | |
| 83 | +body { | |
| 84 | + margin: 0ex 1ex; | |
| 85 | + padding: 0; | |
| 86 | + background-color: #1f1f1f; | |
| 87 | + color: #ffffffe0; | |
| 88 | + font-family: sans-serif; | |
| 89 | +} | |
| 90 | + | |
| 91 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 92 | +body { | |
| 93 | + margin: 0ex 1ex; | |
| 94 | + padding: 0; | |
| 95 | + background-color: #1f1f1f; | |
| 96 | + color: #ffffffe0; | |
| 97 | + font-family: scolor: #333#888; | |
| 98 | + outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR;/* General settings for the entire page */ | |
| 99 | +body { | |
| 100 | + margin: 0ex 1ex; | |
| 101 | + padding: 0; | |
| 102 | + background-color: #1f1f1f; | |
| 103 | + color: #ffffffe0; | |
| 104 | + font-family: sans-serif; | |
| 105 | +} | |
| 106 | + | |
| 107 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 108 | +body { | |
| 109 | + margin: 0ex 1ex; | |
| 110 | + padding: 0; | |
| 111 | + background-color: #1f1f1f; | |
| 112 | + color: #ffffffe0; | |
| 113 | + font-family: sans-serif; | |
| 114 | +} | |
| 115 | + | |
| 116 | +/* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, | |
| 117 | +footernamainfooter General settings for the entire page */ | |
| 118 | +body { | |
| 119 | + margin: 0ex 1ex; | |
| 120 | + padding: 0; | |
| 121 | + background-color: #1f1f1f; | |
| 122 | + color: #ffffffe0; | |
| 123 | + font-family: sans-serif; | |
| 124 | +} | |
| 125 | + | |
| 126 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 127 | +body { | |
| 128 | + margin: 0ex 1ex; | |
| 129 | + padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, | |
| 130 | +divdidivdivre page */ | |
| 131 | +body { | |
| 132 | + margin: 0ex 1ex; | |
| 133 | + padding: 0; | |
| 134 | + background-color: #1f1f1f; | |
| 135 | + color: #ffffffe0; | |
| 136 | + font-family: sans-serif; | |
| 137 | +} | |
| 138 | + | |
| 139 | +/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ | |
| 140 | +body { | |
| 141 | + margin: 0ex 1ex; | |
| 142 | + padding: 0; | |
| 143 | + background-color: #1f1f1f; | |
| 144 | + color: #ffffffe0; | |
| 145 | + font-family: scolor: #333#888; | |
| 146 | + outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR; |
| --- a/skins/darkmode/css.txt | |
| +++ b/skins/darkmode/css.txt | |
| @@ -0,0 +1,146 @@ | |
| --- a/skins/darkmode/css.txt | |
| +++ b/skins/darkmode/css.txt | |
| @@ -0,0 +1,146 @@ | |
| 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;90%; |
| 50 | padding-right: 1emr the entire page */ |
| 51 | body { |
| 52 | margin: 0ex 1ex; |
| 53 | padding: 0; |
| 54 | background-color: #1f1f1f; |
| 55 | color: #ffffffe0; |
| 56 | font-family: sans-serif; |
| 57 | } |
| 58 | |
| 59 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 60 | body { |
| 61 | margin: 0ex 1ex; |
| 62 | padding: 0; |
| 63 | background-color: #1f1f1f; |
| 64 | color: #ffffffe0; |
| 65 | font-family: sans-serif; |
| 66 | } |
| 67 | |
| 68 | /* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, |
| 69 | footernamainfooter General settings for the entire page */ |
| 70 | body { |
| 71 | margin: 0ex 1ex; |
| 72 | padding: 0; |
| 73 | background-color: #1f1f1f; |
| 74 | color: #ffffffe0; |
| 75 | font-family: sans-serif; |
| 76 | } |
| 77 | |
| 78 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 79 | body { |
| 80 | margin: 0ex 1ex; |
| 81 | padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, |
| 82 | divdidivdivre page */ |
| 83 | body { |
| 84 | margin: 0ex 1ex; |
| 85 | padding: 0; |
| 86 | background-color: #1f1f1f; |
| 87 | color: #ffffffe0; |
| 88 | font-family: sans-serif; |
| 89 | } |
| 90 | |
| 91 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 92 | body { |
| 93 | margin: 0ex 1ex; |
| 94 | padding: 0; |
| 95 | background-color: #1f1f1f; |
| 96 | color: #ffffffe0; |
| 97 | font-family: scolor: #333#888; |
| 98 | outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR;/* General settings for the entire page */ |
| 99 | body { |
| 100 | margin: 0ex 1ex; |
| 101 | padding: 0; |
| 102 | background-color: #1f1f1f; |
| 103 | color: #ffffffe0; |
| 104 | font-family: sans-serif; |
| 105 | } |
| 106 | |
| 107 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 108 | body { |
| 109 | margin: 0ex 1ex; |
| 110 | padding: 0; |
| 111 | background-color: #1f1f1f; |
| 112 | color: #ffffffe0; |
| 113 | font-family: sans-serif; |
| 114 | } |
| 115 | |
| 116 | /* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label, |
| 117 | footernamainfooter General settings for the entire page */ |
| 118 | body { |
| 119 | margin: 0ex 1ex; |
| 120 | padding: 0; |
| 121 | background-color: #1f1f1f; |
| 122 | color: #ffffffe0; |
| 123 | font-family: sans-serif; |
| 124 | } |
| 125 | |
| 126 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 127 | body { |
| 128 | margin: 0ex 1ex; |
| 129 | padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label, |
| 130 | divdidivdivre page */ |
| 131 | body { |
| 132 | margin: 0ex 1ex; |
| 133 | padding: 0; |
| 134 | background-color: #1f1f1f; |
| 135 | color: #ffffffe0; |
| 136 | font-family: sans-serif; |
| 137 | } |
| 138 | |
| 139 | /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */ |
| 140 | body { |
| 141 | margin: 0ex 1ex; |
| 142 | padding: 0; |
| 143 | background-color: #1f1f1f; |
| 144 | color: #ffffffe0; |
| 145 | font-family: scolor: #333#888; |
| 146 | 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> |
+219
-198
| --- skins/default/css.txt | ||
| +++ skins/default/css.txt | ||
| @@ -1,234 +1,264 @@ | ||
| 1 | +/* Overall page style */ | |
| 2 | + | |
| 1 | 3 | body { |
| 2 | - margin: 0 auto; | |
| 3 | - background-color: white; | |
| 4 | - font-family: sans-serif; | |
| 5 | - font-size:14pt; | |
| 6 | - -moz-text-size-adjust: none; | |
| 7 | - -webkit-text-size-adjust: none; | |
| 8 | - -mx-text-size-adjust: none; | |
| 4 | + margin: 0 auto; | |
| 5 | + background-color: white; | |
| 6 | + font-family: sans-serif; | |
| 7 | + font-size: 14pt; | |
| 8 | + -moz-text-size-adjust: none; | |
| 9 | + -mx-text-size-adjust: none; | |
| 10 | + -webkit-text-size-adjust: none; | |
| 9 | 11 | } |
| 10 | 12 | |
| 11 | 13 | a { |
| 12 | - color: #4183C4; | |
| 13 | - text-decoration: none; | |
| 14 | + color: #4183C4; | |
| 15 | + text-decoration: none; | |
| 14 | 16 | } |
| 15 | 17 | a:hover { |
| 16 | - color: #4183C4; | |
| 17 | - text-decoration: underline; | |
| 18 | -} | |
| 19 | -div.forumPosts a:visited { | |
| 20 | - color: #6A7F94; | |
| 18 | + color: #4183C4; | |
| 19 | + text-decoration: underline; | |
| 21 | 20 | } |
| 22 | 21 | |
| 23 | -hr { | |
| 24 | - color: #eee; | |
| 25 | -} | |
| 22 | + | |
| 23 | +/* Page title, above menu bars */ | |
| 26 | 24 | |
| 27 | 25 | .title { |
| 28 | - color: #4183C4; | |
| 29 | - float:left; | |
| 26 | + color: #4183C4; | |
| 27 | + float: left; | |
| 30 | 28 | } |
| 31 | 29 | .title h1 { |
| 32 | - display:inline; | |
| 30 | + display: inline; | |
| 33 | 31 | } |
| 34 | 32 | .title h1:after { |
| 35 | - content: " / "; | |
| 36 | - color: #777; | |
| 37 | - font-weight: normal; | |
| 38 | -} | |
| 39 | - | |
| 40 | -.content h1 { | |
| 41 | - font-size: 1.25em; | |
| 42 | -} | |
| 43 | -.content h2 { | |
| 44 | - font-size: 1.15em; | |
| 45 | -} | |
| 46 | -.content h3 { | |
| 47 | - font-size: 1.05em; | |
| 48 | - font-weight: bold; | |
| 49 | -} | |
| 50 | - | |
| 51 | -.section { | |
| 52 | - font-size: 1em; | |
| 53 | - font-weight: bold; | |
| 54 | - background-color: #f5f5f5; | |
| 55 | - border: 1px solid #d8d8d8; | |
| 56 | - border-radius: 3px 3px 0 0; | |
| 57 | - padding: 9px 10px 10px; | |
| 58 | - margin: 10px 0; | |
| 59 | -} | |
| 60 | - | |
| 61 | -.sectionmenu { | |
| 62 | - border: 1px solid #d8d8d8; | |
| 63 | - border-radius: 0 0 3px 3px; | |
| 64 | - border-top: 0; | |
| 65 | - margin-top: -10px; | |
| 66 | - margin-bottom: 10px; | |
| 67 | - padding: 10px; | |
| 68 | -} | |
| 69 | -.sectionmenu a { | |
| 70 | - display: inline-block; | |
| 71 | - margin-right: 1em; | |
| 72 | -} | |
| 73 | - | |
| 33 | + content: " / "; | |
| 34 | + color: #777; | |
| 35 | + font-weight: normal; | |
| 36 | +} | |
| 74 | 37 | .status { |
| 75 | - float:right; | |
| 76 | - font-size:.7em; | |
| 38 | + float: right; | |
| 39 | + font-size: 0.7em; | |
| 77 | 40 | } |
| 78 | 41 | |
| 42 | + | |
| 43 | +/* Main menu and optional sub-menu */ | |
| 44 | + | |
| 79 | 45 | .mainmenu { |
| 80 | - font-size:.8em; | |
| 81 | - clear:both; | |
| 82 | - background:#eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x; | |
| 83 | - border:1px solid #eaeaea; | |
| 84 | - border-radius:5px; | |
| 85 | - overflow-x: auto; | |
| 86 | - overflow-y: hidden; | |
| 87 | - white-space: nowrap; | |
| 88 | - z-index: 21; /* just above hbdrop */ | |
| 89 | -} | |
| 90 | - | |
| 46 | + font-size: 0.8em; | |
| 47 | + clear: both; | |
| 48 | + background: #eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x; | |
| 49 | + border: 1px solid #eaeaea; | |
| 50 | + border-radius: 5px; | |
| 51 | + overflow-x: auto; | |
| 52 | + overflow-y: hidden; | |
| 53 | + white-space: nowrap; | |
| 54 | + z-index: 21; /* just above hbdrop */ | |
| 55 | +} | |
| 91 | 56 | .mainmenu a { |
| 92 | - text-decoration:none; | |
| 93 | - color: #777; | |
| 94 | - border-right:1px solid #eaeaea; | |
| 57 | + text-decoration: none; | |
| 58 | + color: #777; | |
| 59 | + border-right: 1px solid #eaeaea; | |
| 95 | 60 | } |
| 96 | 61 | .mainmenu a.active, |
| 97 | 62 | .mainmenu a:hover { |
| 98 | - color: #000; | |
| 99 | - border-bottom:2px solid #D26911; | |
| 63 | + color: #000; | |
| 64 | + border-bottom: 2px solid #D26911; | |
| 100 | 65 | } |
| 101 | - | |
| 102 | 66 | div#hbdrop { |
| 103 | - background-color: white; | |
| 104 | - border: 1px solid black; | |
| 105 | - border-top: white; | |
| 106 | - border-radius: 0 0 0.5em 0.5em; | |
| 107 | - display: none; | |
| 108 | - font-size: 80%; | |
| 109 | - left: 2em; | |
| 110 | - width: 90%; | |
| 111 | - padding-right: 1em; | |
| 112 | - position: absolute; | |
| 113 | - z-index: 20; /* just below mainmenu, but above timeline bubbles */ | |
| 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; | |
| 72 | + font-size: 80%; | |
| 73 | + left: 2em; | |
| 74 | + width: 90%; | |
| 75 | + padding-right: 1em; | |
| 76 | + position: absolute; | |
| 77 | + z-index: 20; /* just below mainmenu, but above timeline bubbles */ | |
| 114 | 78 | } |
| 115 | 79 | |
| 116 | 80 | .submenu { |
| 117 | - font-size: .7em; | |
| 118 | - padding: 10px; | |
| 119 | - border-bottom: 1px solid #ccc; | |
| 81 | + font-size: .7em; | |
| 82 | + padding: 10px; | |
| 83 | + border-bottom: 1px solid #ccc; | |
| 120 | 84 | } |
| 121 | - | |
| 122 | 85 | .submenu a, .submenu label { |
| 123 | - padding: 10px 11px; | |
| 124 | - text-decoration:none; | |
| 125 | - color: #777; | |
| 86 | + padding: 10px 11px; | |
| 87 | + text-decoration: none; | |
| 88 | + color: #777; | |
| 126 | 89 | } |
| 127 | - | |
| 90 | +.submenu label { | |
| 91 | + white-space: nowrap; | |
| 92 | +} | |
| 128 | 93 | .submenu a:hover, .submenu label:hover { |
| 129 | - padding: 6px 10px; | |
| 130 | - border: 1px solid #ccc; | |
| 131 | - border-radius: 5px; | |
| 132 | - color: #000; | |
| 133 | -} | |
| 134 | - | |
| 135 | -.content { | |
| 136 | - padding-top: 10px; | |
| 137 | - font-size:.8em; | |
| 138 | - color: #444; | |
| 139 | -} | |
| 140 | - | |
| 141 | -.udiff, .sbsdiff { | |
| 142 | - font-size: .85em !important; | |
| 143 | - overflow: auto; | |
| 144 | - border: 1px solid #ccc; | |
| 145 | - border-radius: 5px; | |
| 146 | -} | |
| 147 | -.content blockquote { | |
| 148 | - padding: 0 15px; | |
| 149 | -} | |
| 150 | -div.forumHierRoot blockquote, div.forumHier blockquote, div.forumEdit blockquote, div.forumTime blockquote, div.forumTimeline blockquote { | |
| 151 | - background-color: rgba(65, 131, 196, 0.1); | |
| 152 | - border-left: 3px solid #254769; | |
| 153 | - padding: .1em 1em; | |
| 154 | -} | |
| 155 | - | |
| 156 | -table.report { | |
| 157 | - cursor: auto; | |
| 158 | - border-radius: 5px; | |
| 159 | - border: 1px solid #ccc; | |
| 160 | - margin: 1em 0; | |
| 161 | -} | |
| 162 | -.report td, .report th { | |
| 163 | - border: 0; | |
| 164 | - font-size: .8em; | |
| 165 | - padding: 10px; | |
| 166 | -} | |
| 167 | -.report td:first-child { | |
| 168 | - border-top-left-radius: 5px; | |
| 169 | -} | |
| 170 | -.report tbody tr:last-child td:first-child { | |
| 171 | - border-bottom-left-radius: 5px; | |
| 172 | -} | |
| 173 | -.report td:last-child { | |
| 174 | - border-top-right-radius: 5px; | |
| 175 | -} | |
| 176 | -.report tbody tr:last-child { | |
| 177 | - border-bottom-left-radius: 5px; | |
| 178 | - border-bottom-right-radius: 5px; | |
| 179 | -} | |
| 180 | -.report tbody tr:last-child td:last-child { | |
| 181 | - border-bottom-right-radius: 5px; | |
| 182 | -} | |
| 183 | -.report th { | |
| 184 | - cursor: pointer; | |
| 185 | -} | |
| 186 | -.report thead+tbody tr:hover { | |
| 187 | - background-color: #f5f9fc !important; | |
| 188 | -} | |
| 189 | - | |
| 190 | -td.tktDspLabel { | |
| 191 | - width: 70px; | |
| 192 | - text-align: right; | |
| 193 | - overflow: hidden; | |
| 194 | -} | |
| 195 | -td.tktDspValue { | |
| 196 | - text-align: left; | |
| 197 | - vertical-align: top; | |
| 198 | - background-color: #f8f8f8; | |
| 199 | - border: 1px solid #ccc; | |
| 200 | -} | |
| 201 | -td.tktDspValue pre { | |
| 202 | - white-space: pre-wrap; | |
| 203 | -} | |
| 204 | - | |
| 205 | -span.timelineDetail { | |
| 206 | - font-size: 90%; | |
| 207 | -} | |
| 208 | - | |
| 209 | -.footer { | |
| 210 | - border-top: 1px solid #ccc; | |
| 211 | - padding: 10px; | |
| 212 | - font-size:.7em; | |
| 213 | - margin-top: 10px; | |
| 214 | - color: #ccc; | |
| 215 | -} | |
| 216 | -div.timelineDate { | |
| 217 | - font-weight: bold; | |
| 218 | - white-space: nowrap; | |
| 94 | + padding: 6px 10px; | |
| 95 | + border: 1px solid #ccc; | |
| 96 | + border-radius: 5px; | |
| 97 | + color: #000; | |
| 219 | 98 | } |
| 220 | 99 | span.submenuctrl, span.submenuctrl input, select.submenuctrl { |
| 221 | 100 | color: #777; |
| 222 | 101 | } |
| 223 | 102 | span.submenuctrl { |
| 224 | 103 | white-space: nowrap; |
| 225 | 104 | } |
| 226 | -div.submenu label { | |
| 227 | - white-space: nowrap; | |
| 105 | + | |
| 106 | + | |
| 107 | +/* Main document area; elements common to most pages. */ | |
| 108 | + | |
| 109 | +.content { | |
| 110 | + padding-top: 10px; | |
| 111 | + font-size: 0.8em; | |
| 112 | + color: #444; | |
| 113 | +} | |
| 114 | +.content blockquote { | |
| 115 | + padding: 0 15px; | |
| 116 | +} | |
| 117 | +.content h1 { | |
| 118 | + font-size: 1.25em; | |
| 119 | +} | |
| 120 | +.content h2 { | |
| 121 | + font-size: 1.15em; | |
| 122 | +} | |
| 123 | +.content h3 { | |
| 124 | + font-size: 1.05em; | |
| 125 | +} | |
| 126 | + | |
| 127 | +.section { | |
| 128 | + font-size: 1em; | |
| 129 | + font-weight: bold; | |
| 130 | + background-color: #f5f5f5; | |
| 131 | + border: 1px solid #d8d8d8; | |
| 132 | + border-radius: 3px 3px 0 0; | |
| 133 | + padding: 9px 10px 10px; | |
| 134 | + margin: 10px 0; | |
| 135 | +} | |
| 136 | +.sectionmenu { | |
| 137 | + border: 1px solid #d8d8d8; | |
| 138 | + border-radius: 0 0 3px 3px; | |
| 139 | + border-top: 0; | |
| 140 | + margin-top: -10px; | |
| 141 | + margin-bottom: 10px; | |
| 142 | + padding: 10px; | |
| 143 | +} | |
| 144 | +.sectionmenu a { | |
| 145 | + display: inline-block; | |
| 146 | + margin-right: 1em; | |
| 147 | +} | |
| 148 | + | |
| 149 | +hr { | |
| 150 | + color: #eee; | |
| 151 | +} | |
| 152 | + | |
| 153 | + | |
| 154 | +/* Page footer */ | |
| 155 | + | |
| 156 | +.footer { | |
| 157 | + border-top: 1px solid #ccc; | |
| 158 | + padding: 10px; | |
| 159 | + font-size: 0.7em; | |
| 160 | + margin-top: 10px; | |
| 161 | + color: #ccc; | |
| 162 | +} | |
| 163 | + | |
| 164 | + | |
| 165 | +/* Exceptions for /info diff views */ | |
| 166 | + | |
| 167 | +.udiff, .sbsdiff { | |
| 168 | + font-size: .85em !important; | |
| 169 | + overflow: auto; | |
| 170 | + border: 1px solid #ccc; | |
| 171 | + border-radius: 5px; | |
| 172 | +} | |
| 173 | + | |
| 174 | + | |
| 175 | +/* Forum */ | |
| 176 | + | |
| 177 | +.forum a:visited { | |
| 178 | + color: #6A7F94; | |
| 179 | +} | |
| 180 | + | |
| 181 | +.forum blockquote { | |
| 182 | + background-color: rgba(65, 131, 196, 0.1); | |
| 183 | + border-left: 3px solid #254769; | |
| 184 | + padding: .1em 1em; | |
| 185 | +} | |
| 186 | + | |
| 187 | + | |
| 188 | +/* Tickets */ | |
| 189 | + | |
| 190 | +table.report { | |
| 191 | + cursor: auto; | |
| 192 | + border-radius: 5px; | |
| 193 | + border: 1px solid #ccc; | |
| 194 | + margin: 1em 0; | |
| 195 | +} | |
| 196 | +.report td, .report th { | |
| 197 | + border: 0; | |
| 198 | + font-size: .8em; | |
| 199 | + padding: 10px; | |
| 200 | +} | |
| 201 | +.report td:first-child { | |
| 202 | + border-top-left-radius: 5px; | |
| 203 | +} | |
| 204 | +.report tbody tr:last-child td:first-child { | |
| 205 | + border-bottom-left-radius: 5px; | |
| 206 | +} | |
| 207 | +.report td:last-child { | |
| 208 | + border-top-right-radius: 5px; | |
| 209 | +} | |
| 210 | +.report tbody tr:last-child { | |
| 211 | + border-bottom-left-radius: 5px; | |
| 212 | + border-bottom-right-radius: 5px; | |
| 213 | +} | |
| 214 | +.report tbody tr:last-child td:last-child { | |
| 215 | + border-bottom-right-radius: 5px; | |
| 216 | +} | |
| 217 | +.report th { | |
| 218 | + cursor: pointer; | |
| 219 | +} | |
| 220 | +.report thead+tbody tr:hover { | |
| 221 | + background-color: #f5f9fc !important; | |
| 222 | +} | |
| 223 | + | |
| 224 | +td.tktDspLabel { | |
| 225 | + width: 70px; | |
| 226 | + text-align: right; | |
| 227 | + overflow: hidden; | |
| 228 | +} | |
| 229 | +td.tktDspValue { | |
| 230 | + text-align: left; | |
| 231 | + vertical-align: top; | |
| 232 | + background-color: #f8f8f8; | |
| 233 | + border: 1px solid #ccc; | |
| 234 | +} | |
| 235 | +td.tktDspValue pre { | |
| 236 | + white-space: pre-wrap; | |
| 237 | +} | |
| 238 | + | |
| 239 | + | |
| 240 | +/* Timeline */ | |
| 241 | + | |
| 242 | +span.timelineDetail { | |
| 243 | + font-size: 90%; | |
| 244 | +} | |
| 245 | +div.timelineDate { | |
| 246 | + font-weight: bold; | |
| 247 | + white-space: nowrap; | |
| 248 | +} | |
| 249 | + | |
| 250 | + | |
| 251 | +/* Miscellaneous UI elements */ | |
| 252 | + | |
| 253 | +.fossil-tooltip.help-buttonlet-content { | |
| 254 | + background-color: lightyellow; | |
| 228 | 255 | } |
| 229 | 256 | |
| 257 | + | |
| 258 | +/* Exceptions for specific screen sizes */ | |
| 259 | + | |
| 230 | 260 | @media screen and (max-width: 600px) { |
| 231 | 261 | /* Spacing for mobile */ |
| 232 | 262 | body { |
| 233 | 263 | padding-left: 4px; |
| 234 | 264 | padding-right: 4px; |
| @@ -242,13 +272,10 @@ | ||
| 242 | 272 | padding: 10px 10px; |
| 243 | 273 | } |
| 244 | 274 | .mainmenu { |
| 245 | 275 | padding: 10px; |
| 246 | 276 | } |
| 247 | - .desktoponly { | |
| 248 | - display: none; | |
| 249 | - } | |
| 250 | 277 | } |
| 251 | 278 | @media screen and (min-width: 600px) { |
| 252 | 279 | /* Spacing for desktop */ |
| 253 | 280 | body { |
| 254 | 281 | padding-left: 20px; |
| @@ -264,11 +291,5 @@ | ||
| 264 | 291 | } |
| 265 | 292 | .mainmenu { |
| 266 | 293 | padding: 10px; |
| 267 | 294 | } |
| 268 | 295 | } |
| 269 | -@media screen and (max-width: 1200px) { | |
| 270 | - /* Special declarations for narrow desktop or wide mobile */ | |
| 271 | - .wideonly { | |
| 272 | - display: none; | |
| 273 | - } | |
| 274 | -} | |
| 275 | 296 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -1,234 +1,264 @@ | |
| 1 | body { |
| 2 | margin: 0 auto; |
| 3 | background-color: white; |
| 4 | font-family: sans-serif; |
| 5 | font-size:14pt; |
| 6 | -moz-text-size-adjust: none; |
| 7 | -webkit-text-size-adjust: none; |
| 8 | -mx-text-size-adjust: none; |
| 9 | } |
| 10 | |
| 11 | a { |
| 12 | color: #4183C4; |
| 13 | text-decoration: none; |
| 14 | } |
| 15 | a:hover { |
| 16 | color: #4183C4; |
| 17 | text-decoration: underline; |
| 18 | } |
| 19 | div.forumPosts a:visited { |
| 20 | color: #6A7F94; |
| 21 | } |
| 22 | |
| 23 | hr { |
| 24 | color: #eee; |
| 25 | } |
| 26 | |
| 27 | .title { |
| 28 | color: #4183C4; |
| 29 | float:left; |
| 30 | } |
| 31 | .title h1 { |
| 32 | display:inline; |
| 33 | } |
| 34 | .title h1:after { |
| 35 | content: " / "; |
| 36 | color: #777; |
| 37 | font-weight: normal; |
| 38 | } |
| 39 | |
| 40 | .content h1 { |
| 41 | font-size: 1.25em; |
| 42 | } |
| 43 | .content h2 { |
| 44 | font-size: 1.15em; |
| 45 | } |
| 46 | .content h3 { |
| 47 | font-size: 1.05em; |
| 48 | font-weight: bold; |
| 49 | } |
| 50 | |
| 51 | .section { |
| 52 | font-size: 1em; |
| 53 | font-weight: bold; |
| 54 | background-color: #f5f5f5; |
| 55 | border: 1px solid #d8d8d8; |
| 56 | border-radius: 3px 3px 0 0; |
| 57 | padding: 9px 10px 10px; |
| 58 | margin: 10px 0; |
| 59 | } |
| 60 | |
| 61 | .sectionmenu { |
| 62 | border: 1px solid #d8d8d8; |
| 63 | border-radius: 0 0 3px 3px; |
| 64 | border-top: 0; |
| 65 | margin-top: -10px; |
| 66 | margin-bottom: 10px; |
| 67 | padding: 10px; |
| 68 | } |
| 69 | .sectionmenu a { |
| 70 | display: inline-block; |
| 71 | margin-right: 1em; |
| 72 | } |
| 73 | |
| 74 | .status { |
| 75 | float:right; |
| 76 | font-size:.7em; |
| 77 | } |
| 78 | |
| 79 | .mainmenu { |
| 80 | font-size:.8em; |
| 81 | clear:both; |
| 82 | background:#eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x; |
| 83 | border:1px solid #eaeaea; |
| 84 | border-radius:5px; |
| 85 | overflow-x: auto; |
| 86 | overflow-y: hidden; |
| 87 | white-space: nowrap; |
| 88 | z-index: 21; /* just above hbdrop */ |
| 89 | } |
| 90 | |
| 91 | .mainmenu a { |
| 92 | text-decoration:none; |
| 93 | color: #777; |
| 94 | border-right:1px solid #eaeaea; |
| 95 | } |
| 96 | .mainmenu a.active, |
| 97 | .mainmenu a:hover { |
| 98 | color: #000; |
| 99 | border-bottom:2px solid #D26911; |
| 100 | } |
| 101 | |
| 102 | div#hbdrop { |
| 103 | background-color: white; |
| 104 | border: 1px solid black; |
| 105 | border-top: white; |
| 106 | border-radius: 0 0 0.5em 0.5em; |
| 107 | display: none; |
| 108 | font-size: 80%; |
| 109 | left: 2em; |
| 110 | width: 90%; |
| 111 | padding-right: 1em; |
| 112 | position: absolute; |
| 113 | z-index: 20; /* just below mainmenu, but above timeline bubbles */ |
| 114 | } |
| 115 | |
| 116 | .submenu { |
| 117 | font-size: .7em; |
| 118 | padding: 10px; |
| 119 | border-bottom: 1px solid #ccc; |
| 120 | } |
| 121 | |
| 122 | .submenu a, .submenu label { |
| 123 | padding: 10px 11px; |
| 124 | text-decoration:none; |
| 125 | color: #777; |
| 126 | } |
| 127 | |
| 128 | .submenu a:hover, .submenu label:hover { |
| 129 | padding: 6px 10px; |
| 130 | border: 1px solid #ccc; |
| 131 | border-radius: 5px; |
| 132 | color: #000; |
| 133 | } |
| 134 | |
| 135 | .content { |
| 136 | padding-top: 10px; |
| 137 | font-size:.8em; |
| 138 | color: #444; |
| 139 | } |
| 140 | |
| 141 | .udiff, .sbsdiff { |
| 142 | font-size: .85em !important; |
| 143 | overflow: auto; |
| 144 | border: 1px solid #ccc; |
| 145 | border-radius: 5px; |
| 146 | } |
| 147 | .content blockquote { |
| 148 | padding: 0 15px; |
| 149 | } |
| 150 | div.forumHierRoot blockquote, div.forumHier blockquote, div.forumEdit blockquote, div.forumTime blockquote, div.forumTimeline blockquote { |
| 151 | background-color: rgba(65, 131, 196, 0.1); |
| 152 | border-left: 3px solid #254769; |
| 153 | padding: .1em 1em; |
| 154 | } |
| 155 | |
| 156 | table.report { |
| 157 | cursor: auto; |
| 158 | border-radius: 5px; |
| 159 | border: 1px solid #ccc; |
| 160 | margin: 1em 0; |
| 161 | } |
| 162 | .report td, .report th { |
| 163 | border: 0; |
| 164 | font-size: .8em; |
| 165 | padding: 10px; |
| 166 | } |
| 167 | .report td:first-child { |
| 168 | border-top-left-radius: 5px; |
| 169 | } |
| 170 | .report tbody tr:last-child td:first-child { |
| 171 | border-bottom-left-radius: 5px; |
| 172 | } |
| 173 | .report td:last-child { |
| 174 | border-top-right-radius: 5px; |
| 175 | } |
| 176 | .report tbody tr:last-child { |
| 177 | border-bottom-left-radius: 5px; |
| 178 | border-bottom-right-radius: 5px; |
| 179 | } |
| 180 | .report tbody tr:last-child td:last-child { |
| 181 | border-bottom-right-radius: 5px; |
| 182 | } |
| 183 | .report th { |
| 184 | cursor: pointer; |
| 185 | } |
| 186 | .report thead+tbody tr:hover { |
| 187 | background-color: #f5f9fc !important; |
| 188 | } |
| 189 | |
| 190 | td.tktDspLabel { |
| 191 | width: 70px; |
| 192 | text-align: right; |
| 193 | overflow: hidden; |
| 194 | } |
| 195 | td.tktDspValue { |
| 196 | text-align: left; |
| 197 | vertical-align: top; |
| 198 | background-color: #f8f8f8; |
| 199 | border: 1px solid #ccc; |
| 200 | } |
| 201 | td.tktDspValue pre { |
| 202 | white-space: pre-wrap; |
| 203 | } |
| 204 | |
| 205 | span.timelineDetail { |
| 206 | font-size: 90%; |
| 207 | } |
| 208 | |
| 209 | .footer { |
| 210 | border-top: 1px solid #ccc; |
| 211 | padding: 10px; |
| 212 | font-size:.7em; |
| 213 | margin-top: 10px; |
| 214 | color: #ccc; |
| 215 | } |
| 216 | div.timelineDate { |
| 217 | font-weight: bold; |
| 218 | white-space: nowrap; |
| 219 | } |
| 220 | span.submenuctrl, span.submenuctrl input, select.submenuctrl { |
| 221 | color: #777; |
| 222 | } |
| 223 | span.submenuctrl { |
| 224 | white-space: nowrap; |
| 225 | } |
| 226 | div.submenu label { |
| 227 | white-space: nowrap; |
| 228 | } |
| 229 | |
| 230 | @media screen and (max-width: 600px) { |
| 231 | /* Spacing for mobile */ |
| 232 | body { |
| 233 | padding-left: 4px; |
| 234 | padding-right: 4px; |
| @@ -242,13 +272,10 @@ | |
| 242 | padding: 10px 10px; |
| 243 | } |
| 244 | .mainmenu { |
| 245 | padding: 10px; |
| 246 | } |
| 247 | .desktoponly { |
| 248 | display: none; |
| 249 | } |
| 250 | } |
| 251 | @media screen and (min-width: 600px) { |
| 252 | /* Spacing for desktop */ |
| 253 | body { |
| 254 | padding-left: 20px; |
| @@ -264,11 +291,5 @@ | |
| 264 | } |
| 265 | .mainmenu { |
| 266 | padding: 10px; |
| 267 | } |
| 268 | } |
| 269 | @media screen and (max-width: 1200px) { |
| 270 | /* Special declarations for narrow desktop or wide mobile */ |
| 271 | .wideonly { |
| 272 | display: none; |
| 273 | } |
| 274 | } |
| 275 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -1,234 +1,264 @@ | |
| 1 | /* Overall page style */ |
| 2 | |
| 3 | body { |
| 4 | margin: 0 auto; |
| 5 | background-color: white; |
| 6 | font-family: sans-serif; |
| 7 | font-size: 14pt; |
| 8 | -moz-text-size-adjust: none; |
| 9 | -mx-text-size-adjust: none; |
| 10 | -webkit-text-size-adjust: none; |
| 11 | } |
| 12 | |
| 13 | a { |
| 14 | color: #4183C4; |
| 15 | text-decoration: none; |
| 16 | } |
| 17 | a:hover { |
| 18 | color: #4183C4; |
| 19 | text-decoration: underline; |
| 20 | } |
| 21 | |
| 22 | |
| 23 | /* Page title, above menu bars */ |
| 24 | |
| 25 | .title { |
| 26 | color: #4183C4; |
| 27 | float: left; |
| 28 | } |
| 29 | .title h1 { |
| 30 | display: inline; |
| 31 | } |
| 32 | .title h1:after { |
| 33 | content: " / "; |
| 34 | color: #777; |
| 35 | font-weight: normal; |
| 36 | } |
| 37 | .status { |
| 38 | float: right; |
| 39 | font-size: 0.7em; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | /* Main menu and optional sub-menu */ |
| 44 | |
| 45 | .mainmenu { |
| 46 | font-size: 0.8em; |
| 47 | clear: both; |
| 48 | background: #eaeaea linear-gradient(#fafafa, #eaeaea) repeat-x; |
| 49 | border: 1px solid #eaeaea; |
| 50 | border-radius: 5px; |
| 51 | overflow-x: auto; |
| 52 | overflow-y: hidden; |
| 53 | white-space: nowrap; |
| 54 | z-index: 21; /* just above hbdrop */ |
| 55 | } |
| 56 | .mainmenu a { |
| 57 | text-decoration: none; |
| 58 | color: #777; |
| 59 | border-right: 1px solid #eaeaea; |
| 60 | } |
| 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; |
| 72 | font-size: 80%; |
| 73 | left: 2em; |
| 74 | width: 90%; |
| 75 | padding-right: 1em; |
| 76 | position: absolute; |
| 77 | z-index: 20; /* just below mainmenu, but above timeline bubbles */ |
| 78 | } |
| 79 | |
| 80 | .submenu { |
| 81 | font-size: .7em; |
| 82 | padding: 10px; |
| 83 | border-bottom: 1px solid #ccc; |
| 84 | } |
| 85 | .submenu a, .submenu label { |
| 86 | padding: 10px 11px; |
| 87 | text-decoration: none; |
| 88 | color: #777; |
| 89 | } |
| 90 | .submenu label { |
| 91 | white-space: nowrap; |
| 92 | } |
| 93 | .submenu a:hover, .submenu label:hover { |
| 94 | padding: 6px 10px; |
| 95 | border: 1px solid #ccc; |
| 96 | border-radius: 5px; |
| 97 | color: #000; |
| 98 | } |
| 99 | span.submenuctrl, span.submenuctrl input, select.submenuctrl { |
| 100 | color: #777; |
| 101 | } |
| 102 | span.submenuctrl { |
| 103 | white-space: nowrap; |
| 104 | } |
| 105 | |
| 106 | |
| 107 | /* Main document area; elements common to most pages. */ |
| 108 | |
| 109 | .content { |
| 110 | padding-top: 10px; |
| 111 | font-size: 0.8em; |
| 112 | color: #444; |
| 113 | } |
| 114 | .content blockquote { |
| 115 | padding: 0 15px; |
| 116 | } |
| 117 | .content h1 { |
| 118 | font-size: 1.25em; |
| 119 | } |
| 120 | .content h2 { |
| 121 | font-size: 1.15em; |
| 122 | } |
| 123 | .content h3 { |
| 124 | font-size: 1.05em; |
| 125 | } |
| 126 | |
| 127 | .section { |
| 128 | font-size: 1em; |
| 129 | font-weight: bold; |
| 130 | background-color: #f5f5f5; |
| 131 | border: 1px solid #d8d8d8; |
| 132 | border-radius: 3px 3px 0 0; |
| 133 | padding: 9px 10px 10px; |
| 134 | margin: 10px 0; |
| 135 | } |
| 136 | .sectionmenu { |
| 137 | border: 1px solid #d8d8d8; |
| 138 | border-radius: 0 0 3px 3px; |
| 139 | border-top: 0; |
| 140 | margin-top: -10px; |
| 141 | margin-bottom: 10px; |
| 142 | padding: 10px; |
| 143 | } |
| 144 | .sectionmenu a { |
| 145 | display: inline-block; |
| 146 | margin-right: 1em; |
| 147 | } |
| 148 | |
| 149 | hr { |
| 150 | color: #eee; |
| 151 | } |
| 152 | |
| 153 | |
| 154 | /* Page footer */ |
| 155 | |
| 156 | .footer { |
| 157 | border-top: 1px solid #ccc; |
| 158 | padding: 10px; |
| 159 | font-size: 0.7em; |
| 160 | margin-top: 10px; |
| 161 | color: #ccc; |
| 162 | } |
| 163 | |
| 164 | |
| 165 | /* Exceptions for /info diff views */ |
| 166 | |
| 167 | .udiff, .sbsdiff { |
| 168 | font-size: .85em !important; |
| 169 | overflow: auto; |
| 170 | border: 1px solid #ccc; |
| 171 | border-radius: 5px; |
| 172 | } |
| 173 | |
| 174 | |
| 175 | /* Forum */ |
| 176 | |
| 177 | .forum a:visited { |
| 178 | color: #6A7F94; |
| 179 | } |
| 180 | |
| 181 | .forum blockquote { |
| 182 | background-color: rgba(65, 131, 196, 0.1); |
| 183 | border-left: 3px solid #254769; |
| 184 | padding: .1em 1em; |
| 185 | } |
| 186 | |
| 187 | |
| 188 | /* Tickets */ |
| 189 | |
| 190 | table.report { |
| 191 | cursor: auto; |
| 192 | border-radius: 5px; |
| 193 | border: 1px solid #ccc; |
| 194 | margin: 1em 0; |
| 195 | } |
| 196 | .report td, .report th { |
| 197 | border: 0; |
| 198 | font-size: .8em; |
| 199 | padding: 10px; |
| 200 | } |
| 201 | .report td:first-child { |
| 202 | border-top-left-radius: 5px; |
| 203 | } |
| 204 | .report tbody tr:last-child td:first-child { |
| 205 | border-bottom-left-radius: 5px; |
| 206 | } |
| 207 | .report td:last-child { |
| 208 | border-top-right-radius: 5px; |
| 209 | } |
| 210 | .report tbody tr:last-child { |
| 211 | border-bottom-left-radius: 5px; |
| 212 | border-bottom-right-radius: 5px; |
| 213 | } |
| 214 | .report tbody tr:last-child td:last-child { |
| 215 | border-bottom-right-radius: 5px; |
| 216 | } |
| 217 | .report th { |
| 218 | cursor: pointer; |
| 219 | } |
| 220 | .report thead+tbody tr:hover { |
| 221 | background-color: #f5f9fc !important; |
| 222 | } |
| 223 | |
| 224 | td.tktDspLabel { |
| 225 | width: 70px; |
| 226 | text-align: right; |
| 227 | overflow: hidden; |
| 228 | } |
| 229 | td.tktDspValue { |
| 230 | text-align: left; |
| 231 | vertical-align: top; |
| 232 | background-color: #f8f8f8; |
| 233 | border: 1px solid #ccc; |
| 234 | } |
| 235 | td.tktDspValue pre { |
| 236 | white-space: pre-wrap; |
| 237 | } |
| 238 | |
| 239 | |
| 240 | /* Timeline */ |
| 241 | |
| 242 | span.timelineDetail { |
| 243 | font-size: 90%; |
| 244 | } |
| 245 | div.timelineDate { |
| 246 | font-weight: bold; |
| 247 | white-space: nowrap; |
| 248 | } |
| 249 | |
| 250 | |
| 251 | /* Miscellaneous UI elements */ |
| 252 | |
| 253 | .fossil-tooltip.help-buttonlet-content { |
| 254 | background-color: lightyellow; |
| 255 | } |
| 256 | |
| 257 | |
| 258 | /* Exceptions for specific screen sizes */ |
| 259 | |
| 260 | @media screen and (max-width: 600px) { |
| 261 | /* Spacing for mobile */ |
| 262 | body { |
| 263 | padding-left: 4px; |
| 264 | padding-right: 4px; |
| @@ -242,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; |
| @@ -264,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
-35
| --- skins/default/header.txt | ||
| +++ skins/default/header.txt | ||
| @@ -8,43 +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 desktoponly | |
| 33 | - menulink /taglist Tags wideonly | |
| 34 | -} | |
| 35 | -if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { | |
| 36 | - menulink /forum Forum wideonly | |
| 37 | -} | |
| 38 | -if {[hascap r]} { | |
| 39 | - menulink /ticket Tickets wideonly | |
| 40 | -} | |
| 41 | -if {[hascap j]} { | |
| 42 | - menulink /wiki Wiki wideonly | |
| 43 | -} | |
| 44 | -if {[hascap s]} { | |
| 45 | - menulink /setup Admin {} | |
| 46 | -} elseif {[hascap a]} { | |
| 47 | - 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" | |
| 48 | 24 | } |
| 49 | 25 | </th1></div> |
| 50 | 26 | <div id='hbdrop'></div> |
| 51 | 27 | |
| 52 | 28 | DELETED skins/default/js.txt |
| --- skins/default/header.txt | |
| +++ skins/default/header.txt | |
| @@ -8,43 +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 desktoponly |
| 33 | menulink /taglist Tags wideonly |
| 34 | } |
| 35 | if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { |
| 36 | menulink /forum Forum wideonly |
| 37 | } |
| 38 | if {[hascap r]} { |
| 39 | menulink /ticket Tickets wideonly |
| 40 | } |
| 41 | if {[hascap j]} { |
| 42 | menulink /wiki Wiki wideonly |
| 43 | } |
| 44 | if {[hascap s]} { |
| 45 | menulink /setup Admin {} |
| 46 | } elseif {[hascap a]} { |
| 47 | menulink /setup_ulist Users {} |
| 48 | } |
| 49 | </th1></div> |
| 50 | <div id='hbdrop'></div> |
| 51 | |
| 52 | ELETED skins/default/js.txt |
| --- skins/default/header.txt | |
| +++ skins/default/header.txt | |
| @@ -8,43 +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 @@ | |
+65
-5
| --- skins/eagle/css.txt | ||
| +++ skins/eagle/css.txt | ||
| @@ -3,22 +3,20 @@ | ||
| 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 | 19 | white-space: nowrap; |
| 22 | 20 | } |
| 23 | 21 | |
| 24 | 22 | /* The page title centered at the top of each page */ |
| @@ -39,11 +37,10 @@ | ||
| 39 | 37 | text-align: right; |
| 40 | 38 | vertical-align: bottom; |
| 41 | 39 | color: white; |
| 42 | 40 | font-size: 0.8em; |
| 43 | 41 | font-weight: bold; |
| 44 | - min-width: 200px; | |
| 45 | 42 | white-space: nowrap; |
| 46 | 43 | } |
| 47 | 44 | |
| 48 | 45 | /* The header across the top of the page */ |
| 49 | 46 | div.header { |
| @@ -62,10 +59,22 @@ | ||
| 62 | 59 | background-color: #76869D; |
| 63 | 60 | border-top-left-radius: 8px; |
| 64 | 61 | border-top-right-radius: 8px; |
| 65 | 62 | color: white; |
| 66 | 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 | + | |
| 67 | 76 | |
| 68 | 77 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 69 | 78 | div.submenu, div.sectionmenu { |
| 70 | 79 | padding: 3px 10px 3px 0px; |
| 71 | 80 | font-size: 0.9em; |
| @@ -353,20 +362,56 @@ | ||
| 353 | 362 | } |
| 354 | 363 | |
| 355 | 364 | .fileage tr:hover { |
| 356 | 365 | background-color: #7EA2D9; |
| 357 | 366 | } |
| 367 | + | |
| 368 | +span.modpending { | |
| 369 | + color: #c0c0c0; | |
| 370 | + font-style: italic; | |
| 371 | +} | |
| 372 | +span.forum_author { | |
| 373 | + color: white; | |
| 374 | + font-size: 75%; | |
| 375 | +} | |
| 376 | +span.forum_age { | |
| 377 | + color: white; | |
| 378 | + font-size: 85%; | |
| 379 | +} | |
| 380 | +span.forum_npost { | |
| 381 | + color: white; | |
| 382 | + font-size: 75%; | |
| 383 | +} | |
| 384 | +.debug { | |
| 385 | + background-color: #808080; | |
| 386 | + border: 2px solid white; | |
| 387 | +} | |
| 388 | +div.forumEdit { | |
| 389 | + border: 1px solid white; | |
| 390 | +} | |
| 391 | +div.forumTimeline { | |
| 392 | + border: 1px solid white; | |
| 393 | +} | |
| 394 | +div.forumTime { | |
| 395 | + border: 1px solid white; | |
| 396 | +} | |
| 397 | +div.forumSel { | |
| 398 | + background-color: #808080; | |
| 399 | +} | |
| 400 | +div.forumObs { | |
| 401 | + color: white; | |
| 402 | +} | |
| 358 | 403 | |
| 359 | 404 | .fileage td { |
| 360 | 405 | font-family: "courier new"; |
| 361 | 406 | } |
| 362 | 407 | |
| 363 | 408 | div.filetreeline:hover { |
| 364 | 409 | background-color: #7EA2D9; |
| 365 | 410 | } |
| 366 | 411 | |
| 367 | -div.selectedText { | |
| 412 | +table.numbered-lines td.line-numbers span.selected-line { | |
| 368 | 413 | background-color: #7EA2D9; |
| 369 | 414 | } |
| 370 | 415 | |
| 371 | 416 | .statistics-report-graph-line { |
| 372 | 417 | background-color: #7EA2D9; |
| @@ -373,5 +418,20 @@ | ||
| 373 | 418 | } |
| 374 | 419 | |
| 375 | 420 | .timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { |
| 376 | 421 | background-color: #455978; |
| 377 | 422 | } |
| 423 | + | |
| 424 | +div.difflncol { | |
| 425 | + padding-right: 1em; | |
| 426 | + text-align: right; | |
| 427 | + color: white; | |
| 428 | +} | |
| 429 | +.capsumOff { | |
| 430 | + background-color: #bbbbbb; | |
| 431 | +} | |
| 432 | +.capsumRead { | |
| 433 | + background-color: #006d00; | |
| 434 | +} | |
| 435 | +.capsumWrite { | |
| 436 | + background-color: #e5e500; | |
| 437 | +} | |
| 378 | 438 |
| --- skins/eagle/css.txt | |
| +++ skins/eagle/css.txt | |
| @@ -3,22 +3,20 @@ | |
| 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 | white-space: nowrap; |
| 22 | } |
| 23 | |
| 24 | /* The page title centered at the top of each page */ |
| @@ -39,11 +37,10 @@ | |
| 39 | text-align: right; |
| 40 | vertical-align: bottom; |
| 41 | color: white; |
| 42 | font-size: 0.8em; |
| 43 | font-weight: bold; |
| 44 | min-width: 200px; |
| 45 | white-space: nowrap; |
| 46 | } |
| 47 | |
| 48 | /* The header across the top of the page */ |
| 49 | div.header { |
| @@ -62,10 +59,22 @@ | |
| 62 | background-color: #76869D; |
| 63 | border-top-left-radius: 8px; |
| 64 | border-top-right-radius: 8px; |
| 65 | color: white; |
| 66 | } |
| 67 | |
| 68 | /* The submenu bar that *sometimes* appears below the main menu */ |
| 69 | div.submenu, div.sectionmenu { |
| 70 | padding: 3px 10px 3px 0px; |
| 71 | font-size: 0.9em; |
| @@ -353,20 +362,56 @@ | |
| 353 | } |
| 354 | |
| 355 | .fileage tr:hover { |
| 356 | background-color: #7EA2D9; |
| 357 | } |
| 358 | |
| 359 | .fileage td { |
| 360 | font-family: "courier new"; |
| 361 | } |
| 362 | |
| 363 | div.filetreeline:hover { |
| 364 | background-color: #7EA2D9; |
| 365 | } |
| 366 | |
| 367 | div.selectedText { |
| 368 | background-color: #7EA2D9; |
| 369 | } |
| 370 | |
| 371 | .statistics-report-graph-line { |
| 372 | background-color: #7EA2D9; |
| @@ -373,5 +418,20 @@ | |
| 373 | } |
| 374 | |
| 375 | .timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { |
| 376 | background-color: #455978; |
| 377 | } |
| 378 |
| --- skins/eagle/css.txt | |
| +++ skins/eagle/css.txt | |
| @@ -3,22 +3,20 @@ | |
| 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 */ |
| @@ -39,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 { |
| @@ -62,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; |
| @@ -353,20 +362,56 @@ | |
| 362 | } |
| 363 | |
| 364 | .fileage tr:hover { |
| 365 | background-color: #7EA2D9; |
| 366 | } |
| 367 | |
| 368 | span.modpending { |
| 369 | color: #c0c0c0; |
| 370 | font-style: italic; |
| 371 | } |
| 372 | span.forum_author { |
| 373 | color: white; |
| 374 | font-size: 75%; |
| 375 | } |
| 376 | span.forum_age { |
| 377 | color: white; |
| 378 | font-size: 85%; |
| 379 | } |
| 380 | span.forum_npost { |
| 381 | color: white; |
| 382 | font-size: 75%; |
| 383 | } |
| 384 | .debug { |
| 385 | background-color: #808080; |
| 386 | border: 2px solid white; |
| 387 | } |
| 388 | div.forumEdit { |
| 389 | border: 1px solid white; |
| 390 | } |
| 391 | div.forumTimeline { |
| 392 | border: 1px solid white; |
| 393 | } |
| 394 | div.forumTime { |
| 395 | border: 1px solid white; |
| 396 | } |
| 397 | div.forumSel { |
| 398 | background-color: #808080; |
| 399 | } |
| 400 | div.forumObs { |
| 401 | color: white; |
| 402 | } |
| 403 | |
| 404 | .fileage td { |
| 405 | font-family: "courier new"; |
| 406 | } |
| 407 | |
| 408 | div.filetreeline:hover { |
| 409 | background-color: #7EA2D9; |
| 410 | } |
| 411 | |
| 412 | table.numbered-lines td.line-numbers span.selected-line { |
| 413 | background-color: #7EA2D9; |
| 414 | } |
| 415 | |
| 416 | .statistics-report-graph-line { |
| 417 | background-color: #7EA2D9; |
| @@ -373,5 +418,20 @@ | |
| 418 | } |
| 419 | |
| 420 | .timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] { |
| 421 | background-color: #455978; |
| 422 | } |
| 423 | |
| 424 | div.difflncol { |
| 425 | padding-right: 1em; |
| 426 | text-align: right; |
| 427 | color: white; |
| 428 | } |
| 429 | .capsumOff { |
| 430 | background-color: #bbbbbb; |
| 431 | } |
| 432 | .capsumRead { |
| 433 | background-color: #006d00; |
| 434 | } |
| 435 | .capsumWrite { |
| 436 | background-color: #e5e500; |
| 437 | } |
| 438 |
| --- 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 @@ | |
+8
-2
| --- skins/xekri/css.txt | ||
| +++ skins/xekri/css.txt | ||
| @@ -1000,15 +1000,15 @@ | ||
| 1000 | 1000 | /************************************** |
| 1001 | 1001 | * Did not encounter these |
| 1002 | 1002 | */ |
| 1003 | 1003 | |
| 1004 | 1004 | /* selected lines of text within a linenumbered artifact display */ |
| 1005 | -div.selectedText { | |
| 1005 | +table.numbered-lines td.line-numbers span.selected-line { | |
| 1006 | 1006 | font-weight: bold; |
| 1007 | 1007 | color: #00f; |
| 1008 | 1008 | background-color: #d5d5ff; |
| 1009 | - border: 1px #00f solid; | |
| 1009 | + border-color: #00f; | |
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | 1012 | /* format for missing privileges note on user setup page */ |
| 1013 | 1013 | p.missingPriv { |
| 1014 | 1014 | color: #00f; |
| @@ -1118,5 +1118,11 @@ | ||
| 1118 | 1118 | } |
| 1119 | 1119 | /* odd table row color */ |
| 1120 | 1120 | tr.row1 { |
| 1121 | 1121 | /* Use default */ |
| 1122 | 1122 | } |
| 1123 | + | |
| 1124 | +.fossil-PopupWidget, | |
| 1125 | +.fossil-tooltip.help-buttonlet-content { | |
| 1126 | + background-color: #111; | |
| 1127 | + border: 1px solid rgba(255,255,255,0.5); | |
| 1128 | +} | |
| 1123 | 1129 |
| --- skins/xekri/css.txt | |
| +++ skins/xekri/css.txt | |
| @@ -1000,15 +1000,15 @@ | |
| 1000 | /************************************** |
| 1001 | * Did not encounter these |
| 1002 | */ |
| 1003 | |
| 1004 | /* selected lines of text within a linenumbered artifact display */ |
| 1005 | div.selectedText { |
| 1006 | font-weight: bold; |
| 1007 | color: #00f; |
| 1008 | background-color: #d5d5ff; |
| 1009 | border: 1px #00f solid; |
| 1010 | } |
| 1011 | |
| 1012 | /* format for missing privileges note on user setup page */ |
| 1013 | p.missingPriv { |
| 1014 | color: #00f; |
| @@ -1118,5 +1118,11 @@ | |
| 1118 | } |
| 1119 | /* odd table row color */ |
| 1120 | tr.row1 { |
| 1121 | /* Use default */ |
| 1122 | } |
| 1123 |
| --- skins/xekri/css.txt | |
| +++ skins/xekri/css.txt | |
| @@ -1000,15 +1000,15 @@ | |
| 1000 | /************************************** |
| 1001 | * Did not encounter these |
| 1002 | */ |
| 1003 | |
| 1004 | /* selected lines of text within a linenumbered artifact display */ |
| 1005 | table.numbered-lines td.line-numbers span.selected-line { |
| 1006 | font-weight: bold; |
| 1007 | color: #00f; |
| 1008 | background-color: #d5d5ff; |
| 1009 | border-color: #00f; |
| 1010 | } |
| 1011 | |
| 1012 | /* format for missing privileges note on user setup page */ |
| 1013 | p.missingPriv { |
| 1014 | color: #00f; |
| @@ -1118,5 +1118,11 @@ | |
| 1118 | } |
| 1119 | /* odd table row color */ |
| 1120 | tr.row1 { |
| 1121 | /* Use default */ |
| 1122 | } |
| 1123 | |
| 1124 | .fossil-PopupWidget, |
| 1125 | .fossil-tooltip.help-buttonlet-content { |
| 1126 | background-color: #111; |
| 1127 | border: 1px solid rgba(255,255,255,0.5); |
| 1128 | } |
| 1129 |
+1
-1
| --- skins/xekri/details.txt | ||
| +++ skins/xekri/details.txt | ||
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | timeline-arrowheads: 1 |
| 2 | 2 | timeline-circle-nodes: 0 |
| 3 | 3 | timeline-color-graph-lines: 1 |
| 4 | -white-foreground: 0 | |
| 4 | +white-foreground: 1 | |
| 5 | 5 |
| --- skins/xekri/details.txt | |
| +++ skins/xekri/details.txt | |
| @@ -1,4 +1,4 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | white-foreground: 0 |
| 5 |
| --- skins/xekri/details.txt | |
| +++ skins/xekri/details.txt | |
| @@ -1,4 +1,4 @@ | |
| 1 | timeline-arrowheads: 1 |
| 2 | timeline-circle-nodes: 0 |
| 3 | timeline-color-graph-lines: 1 |
| 4 | white-foreground: 1 |
| 5 |
+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 |
+62
-67
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -22,28 +22,10 @@ | ||
| 22 | 22 | #include "add.h" |
| 23 | 23 | #include <assert.h> |
| 24 | 24 | #include <dirent.h> |
| 25 | 25 | #include "cygsup.h" |
| 26 | 26 | |
| 27 | -/* | |
| 28 | -** WARNING: For Fossil version x.x this value was always zero. For Fossil-NG | |
| 29 | -** it will probably always be one. When this value is zero, | |
| 30 | -** files in the checkout will not be moved by the "mv" command and | |
| 31 | -** files in the checkout will not be removed by the "rm" command. | |
| 32 | -** | |
| 33 | -** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used, | |
| 34 | -** the "mv-rm-files" setting will be consulted instead of using | |
| 35 | -** this value. | |
| 36 | -** | |
| 37 | -** To retain the Fossil version 2.x behavior when using Fossil-NG | |
| 38 | -** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used | |
| 39 | -** -AND- the "mv-rm-files" setting must be set to zero. | |
| 40 | -*/ | |
| 41 | -#ifndef FOSSIL_MV_RM_FILE | |
| 42 | -#define FOSSIL_MV_RM_FILE (0) | |
| 43 | -#endif | |
| 44 | - | |
| 45 | 27 | /* |
| 46 | 28 | ** This routine returns the names of files in a working checkout that |
| 47 | 29 | ** are created by Fossil itself, and hence should not be added, deleted, |
| 48 | 30 | ** or merge, and should be omitted from "clean" and "extras" lists. |
| 49 | 31 | ** |
| @@ -174,10 +156,11 @@ | ||
| 174 | 156 | */ |
| 175 | 157 | static int add_one_file( |
| 176 | 158 | const char *zPath, /* Tree-name of file to add. */ |
| 177 | 159 | int vid /* Add to this VFILE */ |
| 178 | 160 | ){ |
| 161 | + int doSkip = 0; | |
| 179 | 162 | if( !file_is_simple_pathname(zPath, 1) ){ |
| 180 | 163 | fossil_warning("filename contains illegal characters: %s", zPath); |
| 181 | 164 | return 0; |
| 182 | 165 | } |
| 183 | 166 | if( db_exists("SELECT 1 FROM vfile" |
| @@ -186,17 +169,23 @@ | ||
| 186 | 169 | " WHERE pathname=%Q %s AND deleted", |
| 187 | 170 | zPath, filename_collation()); |
| 188 | 171 | }else{ |
| 189 | 172 | char *zFullname = mprintf("%s%s", g.zLocalRoot, zPath); |
| 190 | 173 | int isExe = file_isexe(zFullname, RepoFILE); |
| 191 | - db_multi_exec( | |
| 192 | - "INSERT INTO vfile(vid,deleted,rid,mrid,pathname,isexe,islink,mhash)" | |
| 193 | - "VALUES(%d,0,0,0,%Q,%d,%d,NULL)", | |
| 194 | - vid, zPath, isExe, file_islink(0)); | |
| 174 | + int isLink = file_islink(0); | |
| 175 | + if( file_nondir_objects_on_path(g.zLocalRoot, zFullname) ){ | |
| 176 | + /* Do not add unsafe files to the vfile */ | |
| 177 | + doSkip = 1; | |
| 178 | + }else{ | |
| 179 | + db_multi_exec( | |
| 180 | + "INSERT INTO vfile(vid,deleted,rid,mrid,pathname,isexe,islink,mhash)" | |
| 181 | + "VALUES(%d,0,0,0,%Q,%d,%d,NULL)", | |
| 182 | + vid, zPath, isExe, isLink); | |
| 183 | + } | |
| 195 | 184 | fossil_free(zFullname); |
| 196 | 185 | } |
| 197 | - if( db_changes() ){ | |
| 186 | + if( db_changes() && !doSkip ){ | |
| 198 | 187 | fossil_print("ADDED %s\n", zPath); |
| 199 | 188 | return 1; |
| 200 | 189 | }else{ |
| 201 | 190 | fossil_print("SKIP %s\n", zPath); |
| 202 | 191 | return 0; |
| @@ -204,11 +193,13 @@ | ||
| 204 | 193 | } |
| 205 | 194 | |
| 206 | 195 | /* |
| 207 | 196 | ** Add all files in the sfile temp table. |
| 208 | 197 | ** |
| 209 | -** Automatically exclude the repository file. | |
| 198 | +** Automatically exclude the repository file and any other files | |
| 199 | +** with reserved names. Also exclude files that are beneath an | |
| 200 | +** existing symlink. | |
| 210 | 201 | */ |
| 211 | 202 | static int add_files_in_sfile(int vid){ |
| 212 | 203 | const char *zRepo; /* Name of the repository database file */ |
| 213 | 204 | int nAdd = 0; /* Number of files added */ |
| 214 | 205 | int i; /* Loop counter */ |
| @@ -226,18 +217,30 @@ | ||
| 226 | 217 | if( filenames_are_case_sensitive() ){ |
| 227 | 218 | xCmp = fossil_strcmp; |
| 228 | 219 | }else{ |
| 229 | 220 | xCmp = fossil_stricmp; |
| 230 | 221 | } |
| 231 | - db_prepare(&loop, "SELECT pathname FROM sfile ORDER BY pathname"); | |
| 222 | + db_prepare(&loop, | |
| 223 | + "SELECT pathname FROM sfile" | |
| 224 | + " WHERE pathname NOT IN (" | |
| 225 | + "SELECT sfile.pathname FROM vfile, sfile" | |
| 226 | + " WHERE vfile.islink" | |
| 227 | + " AND NOT vfile.deleted" | |
| 228 | + " AND sfile.pathname>(vfile.pathname||'/')" | |
| 229 | + " AND sfile.pathname<(vfile.pathname||'0'))" | |
| 230 | + " ORDER BY pathname"); | |
| 232 | 231 | while( db_step(&loop)==SQLITE_ROW ){ |
| 233 | 232 | const char *zToAdd = db_column_text(&loop, 0); |
| 234 | 233 | if( fossil_strcmp(zToAdd, zRepo)==0 ) continue; |
| 235 | - for(i=0; (zReserved = fossil_reserved_name(i, 0))!=0; i++){ | |
| 236 | - if( xCmp(zToAdd, zReserved)==0 ) break; | |
| 234 | + if( strchr(zToAdd,'/') ){ | |
| 235 | + if( file_is_reserved_name(zToAdd, -1) ) continue; | |
| 236 | + }else{ | |
| 237 | + for(i=0; (zReserved = fossil_reserved_name(i, 0))!=0; i++){ | |
| 238 | + if( xCmp(zToAdd, zReserved)==0 ) break; | |
| 239 | + } | |
| 240 | + if( zReserved ) continue; | |
| 237 | 241 | } |
| 238 | - if( zReserved ) continue; | |
| 239 | 242 | nAdd += add_one_file(zToAdd, vid); |
| 240 | 243 | } |
| 241 | 244 | db_finalize(&loop); |
| 242 | 245 | blob_reset(&repoName); |
| 243 | 246 | return nAdd; |
| @@ -338,11 +341,11 @@ | ||
| 338 | 341 | ** COMMAND: add |
| 339 | 342 | ** |
| 340 | 343 | ** Usage: %fossil add ?OPTIONS? FILE1 ?FILE2 ...? |
| 341 | 344 | ** |
| 342 | 345 | ** Make arrangements to add one or more files or directories to the |
| 343 | -** current checkout at the next commit. | |
| 346 | +** current checkout at the next [[commit]]. | |
| 344 | 347 | ** |
| 345 | 348 | ** When adding files or directories recursively, filenames that begin |
| 346 | 349 | ** with "." are excluded by default. To include such files, add |
| 347 | 350 | ** the "--dotfiles" option to the command-line. |
| 348 | 351 | ** |
| @@ -360,17 +363,17 @@ | ||
| 360 | 363 | ** be treated case sensitive or not. If the option is not given, the default |
| 361 | 364 | ** depends on the global setting, or the operating system default, if not set. |
| 362 | 365 | ** |
| 363 | 366 | ** Options: |
| 364 | 367 | ** |
| 365 | -** --case-sensitive <BOOL> Override the case-sensitive setting. | |
| 368 | +** --case-sensitive BOOL Override the case-sensitive setting. | |
| 366 | 369 | ** --dotfiles include files beginning with a dot (".") |
| 367 | 370 | ** -f|--force Add files without prompting |
| 368 | -** --ignore <CSG> Ignore unmanaged files matching patterns from | |
| 369 | -** the comma separated list of glob patterns. | |
| 370 | -** --clean <CSG> Also ignore files matching patterns from | |
| 371 | -** the comma separated list of glob patterns. | |
| 371 | +** --ignore CSG Ignore unmanaged files matching patterns from | |
| 372 | +** the Comma Separated Glob (CSG) pattern list | |
| 373 | +** --clean CSG Also ignore files matching patterns from | |
| 374 | +** the Comma Separated Glob (CSG) list | |
| 372 | 375 | ** --reset Reset the ADDED state of a checkout, such |
| 373 | 376 | ** that all newly-added (but not yet committed) |
| 374 | 377 | ** files are no longer added. No flags other |
| 375 | 378 | ** than --verbose and --dry-run may be used |
| 376 | 379 | ** with --reset. |
| @@ -377,11 +380,11 @@ | ||
| 377 | 380 | ** |
| 378 | 381 | ** The following options are only valid with --reset: |
| 379 | 382 | ** -v|--verbose Outputs information about each --reset file. |
| 380 | 383 | ** -n|--dry-run Display instead of run actions. |
| 381 | 384 | ** |
| 382 | -** See also: addremove, rm | |
| 385 | +** See also: [[addremove]], [[rm]] | |
| 383 | 386 | */ |
| 384 | 387 | void add_cmd(void){ |
| 385 | 388 | int i; /* Loop counter */ |
| 386 | 389 | int vid; /* Currently checked out version */ |
| 387 | 390 | int nRoot; /* Full path characters in g.zLocalRoot */ |
| @@ -549,21 +552,21 @@ | ||
| 549 | 552 | ** |
| 550 | 553 | ** Options: |
| 551 | 554 | ** --soft Skip removing files from the checkout. |
| 552 | 555 | ** This supersedes the --hard option. |
| 553 | 556 | ** --hard Remove files from the checkout. |
| 554 | -** --case-sensitive <BOOL> Override the case-sensitive setting. | |
| 557 | +** --case-sensitive BOOL Override the case-sensitive setting. | |
| 555 | 558 | ** -n|--dry-run If given, display instead of run actions. |
| 556 | 559 | ** --reset Reset the DELETED state of a checkout, such |
| 557 | 560 | ** that all newly-rm'd (but not yet committed) |
| 558 | 561 | ** files are no longer removed. No flags other |
| 559 | 562 | ** than --verbose or --dry-run may be used with |
| 560 | 563 | ** --reset. |
| 561 | -** --verbose|-v Outputs information about each --reset file. | |
| 564 | +** -v|--verbose Outputs information about each --reset file. | |
| 562 | 565 | ** Only usable with --reset. |
| 563 | 566 | ** |
| 564 | -** See also: addremove, add | |
| 567 | +** See also: [[addremove]], [[add]] | |
| 565 | 568 | */ |
| 566 | 569 | void delete_cmd(void){ |
| 567 | 570 | int i; |
| 568 | 571 | int removeFiles; |
| 569 | 572 | int dryRunFlag = find_option("dry-run","n",0)!=0; |
| @@ -592,15 +595,11 @@ | ||
| 592 | 595 | }else if( softFlag ){ |
| 593 | 596 | removeFiles = 0; |
| 594 | 597 | }else if( hardFlag ){ |
| 595 | 598 | removeFiles = 1; |
| 596 | 599 | }else{ |
| 597 | -#if FOSSIL_ENABLE_LEGACY_MV_RM | |
| 598 | 600 | removeFiles = db_get_boolean("mv-rm-files",0); |
| 599 | -#else | |
| 600 | - removeFiles = FOSSIL_MV_RM_FILE; | |
| 601 | -#endif | |
| 602 | 601 | } |
| 603 | 602 | db_multi_exec("CREATE TEMP TABLE sfile(pathname TEXT PRIMARY KEY %s)", |
| 604 | 603 | filename_collation()); |
| 605 | 604 | for(i=2; i<g.argc; i++){ |
| 606 | 605 | Blob treeName; |
| @@ -655,11 +654,11 @@ | ||
| 655 | 654 | ** the case-sensitive setting is undefined, then case sensitivity |
| 656 | 655 | ** defaults off for Cygwin, Mac and Windows and on for all other unix. |
| 657 | 656 | ** If case-sensitivity is enabled in the windows kernel, the Cygwin port |
| 658 | 657 | ** of fossil.exe can detect that, and modifies the default to 'on'. |
| 659 | 658 | ** |
| 660 | -** The --case-sensitive <BOOL> command-line option overrides any | |
| 659 | +** The "--case-sensitive BOOL" command-line option overrides any | |
| 661 | 660 | ** setting. |
| 662 | 661 | */ |
| 663 | 662 | int filenames_are_case_sensitive(void){ |
| 664 | 663 | static int caseSensitive; |
| 665 | 664 | static int once = 1; |
| @@ -711,22 +710,22 @@ | ||
| 711 | 710 | /* |
| 712 | 711 | ** COMMAND: addremove |
| 713 | 712 | ** |
| 714 | 713 | ** Usage: %fossil addremove ?OPTIONS? |
| 715 | 714 | ** |
| 716 | -** Do all necessary "add" and "rm" commands to synchronize the repository | |
| 717 | -** with the content of the working checkout: | |
| 715 | +** Do all necessary "[[add]]" and "[[rm]]" commands to synchronize the | |
| 716 | +** repository with the content of the working checkout: | |
| 718 | 717 | ** |
| 719 | 718 | ** * All files in the checkout but not in the repository (that is, |
| 720 | 719 | ** all files displayed using the "extras" command) are added as |
| 721 | -** if by the "add" command. | |
| 720 | +** if by the "[[add]]" command. | |
| 722 | 721 | ** |
| 723 | 722 | ** * All files in the repository but missing from the checkout (that is, |
| 724 | 723 | ** all files that show as MISSING with the "status" command) are |
| 725 | -** removed as if by the "rm" command. | |
| 724 | +** removed as if by the "[[rm]]" command. | |
| 726 | 725 | ** |
| 727 | -** The command does not "commit". You must run the "commit" separately | |
| 726 | +** The command does not "[[commit]]". You must run the "[[commit]]" separately | |
| 728 | 727 | ** as a separate step. |
| 729 | 728 | ** |
| 730 | 729 | ** Files and directories whose names begin with "." are ignored unless |
| 731 | 730 | ** the --dotfiles option is used. |
| 732 | 731 | ** |
| @@ -739,27 +738,27 @@ | ||
| 739 | 738 | ** anything. |
| 740 | 739 | ** |
| 741 | 740 | ** This command can be used to track third party software. |
| 742 | 741 | ** |
| 743 | 742 | ** Options: |
| 744 | -** --case-sensitive <BOOL> Override the case-sensitive setting. | |
| 743 | +** --case-sensitive BOOL Override the case-sensitive setting. | |
| 745 | 744 | ** --dotfiles Include files beginning with a dot (".") |
| 746 | -** --ignore <CSG> Ignore unmanaged files matching patterns from | |
| 747 | -** the comma separated list of glob patterns. | |
| 748 | -** --clean <CSG> Also ignore files matching patterns from | |
| 749 | -** the comma separated list of glob patterns. | |
| 745 | +** --ignore CSG Ignore unmanaged files matching patterns from | |
| 746 | +** the Comma Separated Glob (CSG) list | |
| 747 | +** --clean CSG Also ignore files matching patterns from | |
| 748 | +** the Comma Separated Glob (CSG) list | |
| 750 | 749 | ** -n|--dry-run If given, display instead of run actions. |
| 751 | 750 | ** --reset Reset the ADDED/DELETED state of a checkout, |
| 752 | 751 | ** such that all newly-added (but not yet committed) |
| 753 | 752 | ** files are no longer added and all newly-removed |
| 754 | 753 | ** (but not yet committed) files are no longer |
| 755 | 754 | ** removed. No flags other than --verbose and |
| 756 | 755 | ** --dry-run may be used with --reset. |
| 757 | -** --verbose|-v Outputs information about each --reset file. | |
| 756 | +** -v|--verbose Outputs information about each --reset file. | |
| 758 | 757 | ** Only usable with --reset. |
| 759 | 758 | ** |
| 760 | -** See also: add, rm | |
| 759 | +** See also: [[add]], [[rm]] | |
| 761 | 760 | */ |
| 762 | 761 | void addremove_cmd(void){ |
| 763 | 762 | Blob path; |
| 764 | 763 | const char *zCleanFlag; |
| 765 | 764 | const char *zIgnoreFlag; |
| @@ -975,11 +974,11 @@ | ||
| 975 | 974 | ** Move or rename one or more files or directories within the repository tree. |
| 976 | 975 | ** You can either rename a file or directory or move it to another subdirectory. |
| 977 | 976 | ** |
| 978 | 977 | ** The 'mv' command does NOT normally rename or move the files on disk. |
| 979 | 978 | ** This command merely records the fact that file names have changed so |
| 980 | -** that appropriate notations can be made at the next commit/check-in. | |
| 979 | +** that appropriate notations can be made at the next [[commit]]. | |
| 981 | 980 | ** However, the default behavior of this command may be overridden via |
| 982 | 981 | ** command line options listed below and/or the 'mv-rm-files' setting. |
| 983 | 982 | ** |
| 984 | 983 | ** The 'rename' command never renames or moves files on disk, even when the |
| 985 | 984 | ** command line options and/or the 'mv-rm-files' setting would otherwise |
| @@ -988,17 +987,17 @@ | ||
| 988 | 987 | ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files" |
| 989 | 988 | ** setting is non-zero, files WILL BE renamed or moved on disk |
| 990 | 989 | ** as well. This does NOT apply to the 'rename' command. |
| 991 | 990 | ** |
| 992 | 991 | ** Options: |
| 993 | -** --soft Skip moving files within the checkout. | |
| 994 | -** This supersedes the --hard option. | |
| 995 | -** --hard Move files within the checkout. | |
| 996 | -** --case-sensitive <BOOL> Override the case-sensitive setting. | |
| 997 | -** -n|--dry-run If given, display instead of run actions. | |
| 992 | +** --soft Skip moving files within the checkout. | |
| 993 | +** This supersedes the --hard option. | |
| 994 | +** --hard Move files within the checkout. | |
| 995 | +** --case-sensitive BOOL Override the case-sensitive setting. | |
| 996 | +** -n|--dry-run If given, display instead of run actions. | |
| 998 | 997 | ** |
| 999 | -** See also: changes, status | |
| 998 | +** See also: [[changes]], [[status]] | |
| 1000 | 999 | */ |
| 1001 | 1000 | void mv_cmd(void){ |
| 1002 | 1001 | int i; |
| 1003 | 1002 | int vid; |
| 1004 | 1003 | int moveFiles; |
| @@ -1033,15 +1032,11 @@ | ||
| 1033 | 1032 | }else if( softFlag ){ |
| 1034 | 1033 | moveFiles = 0; |
| 1035 | 1034 | }else if( hardFlag ){ |
| 1036 | 1035 | moveFiles = 1; |
| 1037 | 1036 | }else{ |
| 1038 | -#if FOSSIL_ENABLE_LEGACY_MV_RM | |
| 1039 | 1037 | moveFiles = db_get_boolean("mv-rm-files",0); |
| 1040 | -#else | |
| 1041 | - moveFiles = FOSSIL_MV_RM_FILE; | |
| 1042 | -#endif | |
| 1043 | 1038 | } |
| 1044 | 1039 | file_tree_name(zDest, &dest, 0, 1); |
| 1045 | 1040 | db_multi_exec( |
| 1046 | 1041 | "UPDATE vfile SET origname=pathname WHERE origname IS NULL;" |
| 1047 | 1042 | ); |
| @@ -1090,11 +1085,11 @@ | ||
| 1090 | 1085 | const char *zPath = db_column_text(&q, 0); |
| 1091 | 1086 | int nPath = db_column_bytes(&q, 0); |
| 1092 | 1087 | const char *zTail; |
| 1093 | 1088 | if( nPath==nOrig ){ |
| 1094 | 1089 | zTail = file_tail(zPath); |
| 1095 | - }else if( destType==1 ){ | |
| 1090 | + }else if( origType!=0 && destType==1 ){ | |
| 1096 | 1091 | zTail = &zPath[nOrig-strlen(file_tail(zOrig))]; |
| 1097 | 1092 | }else{ |
| 1098 | 1093 | zTail = &zPath[nOrig+1]; |
| 1099 | 1094 | } |
| 1100 | 1095 | db_multi_exec( |
| 1101 | 1096 | |
| 1102 | 1097 | ADDED src/ajax.c |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -22,28 +22,10 @@ | |
| 22 | #include "add.h" |
| 23 | #include <assert.h> |
| 24 | #include <dirent.h> |
| 25 | #include "cygsup.h" |
| 26 | |
| 27 | /* |
| 28 | ** WARNING: For Fossil version x.x this value was always zero. For Fossil-NG |
| 29 | ** it will probably always be one. When this value is zero, |
| 30 | ** files in the checkout will not be moved by the "mv" command and |
| 31 | ** files in the checkout will not be removed by the "rm" command. |
| 32 | ** |
| 33 | ** If the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option is used, |
| 34 | ** the "mv-rm-files" setting will be consulted instead of using |
| 35 | ** this value. |
| 36 | ** |
| 37 | ** To retain the Fossil version 2.x behavior when using Fossil-NG |
| 38 | ** the FOSSIL_ENABLE_LEGACY_MV_RM compile-time option must be used |
| 39 | ** -AND- the "mv-rm-files" setting must be set to zero. |
| 40 | */ |
| 41 | #ifndef FOSSIL_MV_RM_FILE |
| 42 | #define FOSSIL_MV_RM_FILE (0) |
| 43 | #endif |
| 44 | |
| 45 | /* |
| 46 | ** This routine returns the names of files in a working checkout that |
| 47 | ** are created by Fossil itself, and hence should not be added, deleted, |
| 48 | ** or merge, and should be omitted from "clean" and "extras" lists. |
| 49 | ** |
| @@ -174,10 +156,11 @@ | |
| 174 | */ |
| 175 | static int add_one_file( |
| 176 | const char *zPath, /* Tree-name of file to add. */ |
| 177 | int vid /* Add to this VFILE */ |
| 178 | ){ |
| 179 | if( !file_is_simple_pathname(zPath, 1) ){ |
| 180 | fossil_warning("filename contains illegal characters: %s", zPath); |
| 181 | return 0; |
| 182 | } |
| 183 | if( db_exists("SELECT 1 FROM vfile" |
| @@ -186,17 +169,23 @@ | |
| 186 | " WHERE pathname=%Q %s AND deleted", |
| 187 | zPath, filename_collation()); |
| 188 | }else{ |
| 189 | char *zFullname = mprintf("%s%s", g.zLocalRoot, zPath); |
| 190 | int isExe = file_isexe(zFullname, RepoFILE); |
| 191 | db_multi_exec( |
| 192 | "INSERT INTO vfile(vid,deleted,rid,mrid,pathname,isexe,islink,mhash)" |
| 193 | "VALUES(%d,0,0,0,%Q,%d,%d,NULL)", |
| 194 | vid, zPath, isExe, file_islink(0)); |
| 195 | fossil_free(zFullname); |
| 196 | } |
| 197 | if( db_changes() ){ |
| 198 | fossil_print("ADDED %s\n", zPath); |
| 199 | return 1; |
| 200 | }else{ |
| 201 | fossil_print("SKIP %s\n", zPath); |
| 202 | return 0; |
| @@ -204,11 +193,13 @@ | |
| 204 | } |
| 205 | |
| 206 | /* |
| 207 | ** Add all files in the sfile temp table. |
| 208 | ** |
| 209 | ** Automatically exclude the repository file. |
| 210 | */ |
| 211 | static int add_files_in_sfile(int vid){ |
| 212 | const char *zRepo; /* Name of the repository database file */ |
| 213 | int nAdd = 0; /* Number of files added */ |
| 214 | int i; /* Loop counter */ |
| @@ -226,18 +217,30 @@ | |
| 226 | if( filenames_are_case_sensitive() ){ |
| 227 | xCmp = fossil_strcmp; |
| 228 | }else{ |
| 229 | xCmp = fossil_stricmp; |
| 230 | } |
| 231 | db_prepare(&loop, "SELECT pathname FROM sfile ORDER BY pathname"); |
| 232 | while( db_step(&loop)==SQLITE_ROW ){ |
| 233 | const char *zToAdd = db_column_text(&loop, 0); |
| 234 | if( fossil_strcmp(zToAdd, zRepo)==0 ) continue; |
| 235 | for(i=0; (zReserved = fossil_reserved_name(i, 0))!=0; i++){ |
| 236 | if( xCmp(zToAdd, zReserved)==0 ) break; |
| 237 | } |
| 238 | if( zReserved ) continue; |
| 239 | nAdd += add_one_file(zToAdd, vid); |
| 240 | } |
| 241 | db_finalize(&loop); |
| 242 | blob_reset(&repoName); |
| 243 | return nAdd; |
| @@ -338,11 +341,11 @@ | |
| 338 | ** COMMAND: add |
| 339 | ** |
| 340 | ** Usage: %fossil add ?OPTIONS? FILE1 ?FILE2 ...? |
| 341 | ** |
| 342 | ** Make arrangements to add one or more files or directories to the |
| 343 | ** current checkout at the next commit. |
| 344 | ** |
| 345 | ** When adding files or directories recursively, filenames that begin |
| 346 | ** with "." are excluded by default. To include such files, add |
| 347 | ** the "--dotfiles" option to the command-line. |
| 348 | ** |
| @@ -360,17 +363,17 @@ | |
| 360 | ** be treated case sensitive or not. If the option is not given, the default |
| 361 | ** depends on the global setting, or the operating system default, if not set. |
| 362 | ** |
| 363 | ** Options: |
| 364 | ** |
| 365 | ** --case-sensitive <BOOL> Override the case-sensitive setting. |
| 366 | ** --dotfiles include files beginning with a dot (".") |
| 367 | ** -f|--force Add files without prompting |
| 368 | ** --ignore <CSG> Ignore unmanaged files matching patterns from |
| 369 | ** the comma separated list of glob patterns. |
| 370 | ** --clean <CSG> Also ignore files matching patterns from |
| 371 | ** the comma separated list of glob patterns. |
| 372 | ** --reset Reset the ADDED state of a checkout, such |
| 373 | ** that all newly-added (but not yet committed) |
| 374 | ** files are no longer added. No flags other |
| 375 | ** than --verbose and --dry-run may be used |
| 376 | ** with --reset. |
| @@ -377,11 +380,11 @@ | |
| 377 | ** |
| 378 | ** The following options are only valid with --reset: |
| 379 | ** -v|--verbose Outputs information about each --reset file. |
| 380 | ** -n|--dry-run Display instead of run actions. |
| 381 | ** |
| 382 | ** See also: addremove, rm |
| 383 | */ |
| 384 | void add_cmd(void){ |
| 385 | int i; /* Loop counter */ |
| 386 | int vid; /* Currently checked out version */ |
| 387 | int nRoot; /* Full path characters in g.zLocalRoot */ |
| @@ -549,21 +552,21 @@ | |
| 549 | ** |
| 550 | ** Options: |
| 551 | ** --soft Skip removing files from the checkout. |
| 552 | ** This supersedes the --hard option. |
| 553 | ** --hard Remove files from the checkout. |
| 554 | ** --case-sensitive <BOOL> Override the case-sensitive setting. |
| 555 | ** -n|--dry-run If given, display instead of run actions. |
| 556 | ** --reset Reset the DELETED state of a checkout, such |
| 557 | ** that all newly-rm'd (but not yet committed) |
| 558 | ** files are no longer removed. No flags other |
| 559 | ** than --verbose or --dry-run may be used with |
| 560 | ** --reset. |
| 561 | ** --verbose|-v Outputs information about each --reset file. |
| 562 | ** Only usable with --reset. |
| 563 | ** |
| 564 | ** See also: addremove, add |
| 565 | */ |
| 566 | void delete_cmd(void){ |
| 567 | int i; |
| 568 | int removeFiles; |
| 569 | int dryRunFlag = find_option("dry-run","n",0)!=0; |
| @@ -592,15 +595,11 @@ | |
| 592 | }else if( softFlag ){ |
| 593 | removeFiles = 0; |
| 594 | }else if( hardFlag ){ |
| 595 | removeFiles = 1; |
| 596 | }else{ |
| 597 | #if FOSSIL_ENABLE_LEGACY_MV_RM |
| 598 | removeFiles = db_get_boolean("mv-rm-files",0); |
| 599 | #else |
| 600 | removeFiles = FOSSIL_MV_RM_FILE; |
| 601 | #endif |
| 602 | } |
| 603 | db_multi_exec("CREATE TEMP TABLE sfile(pathname TEXT PRIMARY KEY %s)", |
| 604 | filename_collation()); |
| 605 | for(i=2; i<g.argc; i++){ |
| 606 | Blob treeName; |
| @@ -655,11 +654,11 @@ | |
| 655 | ** the case-sensitive setting is undefined, then case sensitivity |
| 656 | ** defaults off for Cygwin, Mac and Windows and on for all other unix. |
| 657 | ** If case-sensitivity is enabled in the windows kernel, the Cygwin port |
| 658 | ** of fossil.exe can detect that, and modifies the default to 'on'. |
| 659 | ** |
| 660 | ** The --case-sensitive <BOOL> command-line option overrides any |
| 661 | ** setting. |
| 662 | */ |
| 663 | int filenames_are_case_sensitive(void){ |
| 664 | static int caseSensitive; |
| 665 | static int once = 1; |
| @@ -711,22 +710,22 @@ | |
| 711 | /* |
| 712 | ** COMMAND: addremove |
| 713 | ** |
| 714 | ** Usage: %fossil addremove ?OPTIONS? |
| 715 | ** |
| 716 | ** Do all necessary "add" and "rm" commands to synchronize the repository |
| 717 | ** with the content of the working checkout: |
| 718 | ** |
| 719 | ** * All files in the checkout but not in the repository (that is, |
| 720 | ** all files displayed using the "extras" command) are added as |
| 721 | ** if by the "add" command. |
| 722 | ** |
| 723 | ** * All files in the repository but missing from the checkout (that is, |
| 724 | ** all files that show as MISSING with the "status" command) are |
| 725 | ** removed as if by the "rm" command. |
| 726 | ** |
| 727 | ** The command does not "commit". You must run the "commit" separately |
| 728 | ** as a separate step. |
| 729 | ** |
| 730 | ** Files and directories whose names begin with "." are ignored unless |
| 731 | ** the --dotfiles option is used. |
| 732 | ** |
| @@ -739,27 +738,27 @@ | |
| 739 | ** anything. |
| 740 | ** |
| 741 | ** This command can be used to track third party software. |
| 742 | ** |
| 743 | ** Options: |
| 744 | ** --case-sensitive <BOOL> Override the case-sensitive setting. |
| 745 | ** --dotfiles Include files beginning with a dot (".") |
| 746 | ** --ignore <CSG> Ignore unmanaged files matching patterns from |
| 747 | ** the comma separated list of glob patterns. |
| 748 | ** --clean <CSG> Also ignore files matching patterns from |
| 749 | ** the comma separated list of glob patterns. |
| 750 | ** -n|--dry-run If given, display instead of run actions. |
| 751 | ** --reset Reset the ADDED/DELETED state of a checkout, |
| 752 | ** such that all newly-added (but not yet committed) |
| 753 | ** files are no longer added and all newly-removed |
| 754 | ** (but not yet committed) files are no longer |
| 755 | ** removed. No flags other than --verbose and |
| 756 | ** --dry-run may be used with --reset. |
| 757 | ** --verbose|-v Outputs information about each --reset file. |
| 758 | ** Only usable with --reset. |
| 759 | ** |
| 760 | ** See also: add, rm |
| 761 | */ |
| 762 | void addremove_cmd(void){ |
| 763 | Blob path; |
| 764 | const char *zCleanFlag; |
| 765 | const char *zIgnoreFlag; |
| @@ -975,11 +974,11 @@ | |
| 975 | ** Move or rename one or more files or directories within the repository tree. |
| 976 | ** You can either rename a file or directory or move it to another subdirectory. |
| 977 | ** |
| 978 | ** The 'mv' command does NOT normally rename or move the files on disk. |
| 979 | ** This command merely records the fact that file names have changed so |
| 980 | ** that appropriate notations can be made at the next commit/check-in. |
| 981 | ** However, the default behavior of this command may be overridden via |
| 982 | ** command line options listed below and/or the 'mv-rm-files' setting. |
| 983 | ** |
| 984 | ** The 'rename' command never renames or moves files on disk, even when the |
| 985 | ** command line options and/or the 'mv-rm-files' setting would otherwise |
| @@ -988,17 +987,17 @@ | |
| 988 | ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files" |
| 989 | ** setting is non-zero, files WILL BE renamed or moved on disk |
| 990 | ** as well. This does NOT apply to the 'rename' command. |
| 991 | ** |
| 992 | ** Options: |
| 993 | ** --soft Skip moving files within the checkout. |
| 994 | ** This supersedes the --hard option. |
| 995 | ** --hard Move files within the checkout. |
| 996 | ** --case-sensitive <BOOL> Override the case-sensitive setting. |
| 997 | ** -n|--dry-run If given, display instead of run actions. |
| 998 | ** |
| 999 | ** See also: changes, status |
| 1000 | */ |
| 1001 | void mv_cmd(void){ |
| 1002 | int i; |
| 1003 | int vid; |
| 1004 | int moveFiles; |
| @@ -1033,15 +1032,11 @@ | |
| 1033 | }else if( softFlag ){ |
| 1034 | moveFiles = 0; |
| 1035 | }else if( hardFlag ){ |
| 1036 | moveFiles = 1; |
| 1037 | }else{ |
| 1038 | #if FOSSIL_ENABLE_LEGACY_MV_RM |
| 1039 | moveFiles = db_get_boolean("mv-rm-files",0); |
| 1040 | #else |
| 1041 | moveFiles = FOSSIL_MV_RM_FILE; |
| 1042 | #endif |
| 1043 | } |
| 1044 | file_tree_name(zDest, &dest, 0, 1); |
| 1045 | db_multi_exec( |
| 1046 | "UPDATE vfile SET origname=pathname WHERE origname IS NULL;" |
| 1047 | ); |
| @@ -1090,11 +1085,11 @@ | |
| 1090 | const char *zPath = db_column_text(&q, 0); |
| 1091 | int nPath = db_column_bytes(&q, 0); |
| 1092 | const char *zTail; |
| 1093 | if( nPath==nOrig ){ |
| 1094 | zTail = file_tail(zPath); |
| 1095 | }else if( destType==1 ){ |
| 1096 | zTail = &zPath[nOrig-strlen(file_tail(zOrig))]; |
| 1097 | }else{ |
| 1098 | zTail = &zPath[nOrig+1]; |
| 1099 | } |
| 1100 | db_multi_exec( |
| 1101 | |
| 1102 | DDED src/ajax.c |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -22,28 +22,10 @@ | |
| 22 | #include "add.h" |
| 23 | #include <assert.h> |
| 24 | #include <dirent.h> |
| 25 | #include "cygsup.h" |
| 26 | |
| 27 | /* |
| 28 | ** This routine returns the names of files in a working checkout that |
| 29 | ** are created by Fossil itself, and hence should not be added, deleted, |
| 30 | ** or merge, and should be omitted from "clean" and "extras" lists. |
| 31 | ** |
| @@ -174,10 +156,11 @@ | |
| 156 | */ |
| 157 | static int add_one_file( |
| 158 | const char *zPath, /* Tree-name of file to add. */ |
| 159 | int vid /* Add to this VFILE */ |
| 160 | ){ |
| 161 | int doSkip = 0; |
| 162 | if( !file_is_simple_pathname(zPath, 1) ){ |
| 163 | fossil_warning("filename contains illegal characters: %s", zPath); |
| 164 | return 0; |
| 165 | } |
| 166 | if( db_exists("SELECT 1 FROM vfile" |
| @@ -186,17 +169,23 @@ | |
| 169 | " WHERE pathname=%Q %s AND deleted", |
| 170 | zPath, filename_collation()); |
| 171 | }else{ |
| 172 | char *zFullname = mprintf("%s%s", g.zLocalRoot, zPath); |
| 173 | int isExe = file_isexe(zFullname, RepoFILE); |
| 174 | int isLink = file_islink(0); |
| 175 | if( file_nondir_objects_on_path(g.zLocalRoot, zFullname) ){ |
| 176 | /* Do not add unsafe files to the vfile */ |
| 177 | doSkip = 1; |
| 178 | }else{ |
| 179 | db_multi_exec( |
| 180 | "INSERT INTO vfile(vid,deleted,rid,mrid,pathname,isexe,islink,mhash)" |
| 181 | "VALUES(%d,0,0,0,%Q,%d,%d,NULL)", |
| 182 | vid, zPath, isExe, isLink); |
| 183 | } |
| 184 | fossil_free(zFullname); |
| 185 | } |
| 186 | if( db_changes() && !doSkip ){ |
| 187 | fossil_print("ADDED %s\n", zPath); |
| 188 | return 1; |
| 189 | }else{ |
| 190 | fossil_print("SKIP %s\n", zPath); |
| 191 | return 0; |
| @@ -204,11 +193,13 @@ | |
| 193 | } |
| 194 | |
| 195 | /* |
| 196 | ** Add all files in the sfile temp table. |
| 197 | ** |
| 198 | ** Automatically exclude the repository file and any other files |
| 199 | ** with reserved names. Also exclude files that are beneath an |
| 200 | ** existing symlink. |
| 201 | */ |
| 202 | static int add_files_in_sfile(int vid){ |
| 203 | const char *zRepo; /* Name of the repository database file */ |
| 204 | int nAdd = 0; /* Number of files added */ |
| 205 | int i; /* Loop counter */ |
| @@ -226,18 +217,30 @@ | |
| 217 | if( filenames_are_case_sensitive() ){ |
| 218 | xCmp = fossil_strcmp; |
| 219 | }else{ |
| 220 | xCmp = fossil_stricmp; |
| 221 | } |
| 222 | db_prepare(&loop, |
| 223 | "SELECT pathname FROM sfile" |
| 224 | " WHERE pathname NOT IN (" |
| 225 | "SELECT sfile.pathname FROM vfile, sfile" |
| 226 | " WHERE vfile.islink" |
| 227 | " AND NOT vfile.deleted" |
| 228 | " AND sfile.pathname>(vfile.pathname||'/')" |
| 229 | " AND sfile.pathname<(vfile.pathname||'0'))" |
| 230 | " ORDER BY pathname"); |
| 231 | while( db_step(&loop)==SQLITE_ROW ){ |
| 232 | const char *zToAdd = db_column_text(&loop, 0); |
| 233 | if( fossil_strcmp(zToAdd, zRepo)==0 ) continue; |
| 234 | if( strchr(zToAdd,'/') ){ |
| 235 | if( file_is_reserved_name(zToAdd, -1) ) continue; |
| 236 | }else{ |
| 237 | for(i=0; (zReserved = fossil_reserved_name(i, 0))!=0; i++){ |
| 238 | if( xCmp(zToAdd, zReserved)==0 ) break; |
| 239 | } |
| 240 | if( zReserved ) continue; |
| 241 | } |
| 242 | nAdd += add_one_file(zToAdd, vid); |
| 243 | } |
| 244 | db_finalize(&loop); |
| 245 | blob_reset(&repoName); |
| 246 | return nAdd; |
| @@ -338,11 +341,11 @@ | |
| 341 | ** COMMAND: add |
| 342 | ** |
| 343 | ** Usage: %fossil add ?OPTIONS? FILE1 ?FILE2 ...? |
| 344 | ** |
| 345 | ** Make arrangements to add one or more files or directories to the |
| 346 | ** current checkout at the next [[commit]]. |
| 347 | ** |
| 348 | ** When adding files or directories recursively, filenames that begin |
| 349 | ** with "." are excluded by default. To include such files, add |
| 350 | ** the "--dotfiles" option to the command-line. |
| 351 | ** |
| @@ -360,17 +363,17 @@ | |
| 363 | ** be treated case sensitive or not. If the option is not given, the default |
| 364 | ** depends on the global setting, or the operating system default, if not set. |
| 365 | ** |
| 366 | ** Options: |
| 367 | ** |
| 368 | ** --case-sensitive BOOL Override the case-sensitive setting. |
| 369 | ** --dotfiles include files beginning with a dot (".") |
| 370 | ** -f|--force Add files without prompting |
| 371 | ** --ignore CSG Ignore unmanaged files matching patterns from |
| 372 | ** the Comma Separated Glob (CSG) pattern list |
| 373 | ** --clean CSG Also ignore files matching patterns from |
| 374 | ** the Comma Separated Glob (CSG) list |
| 375 | ** --reset Reset the ADDED state of a checkout, such |
| 376 | ** that all newly-added (but not yet committed) |
| 377 | ** files are no longer added. No flags other |
| 378 | ** than --verbose and --dry-run may be used |
| 379 | ** with --reset. |
| @@ -377,11 +380,11 @@ | |
| 380 | ** |
| 381 | ** The following options are only valid with --reset: |
| 382 | ** -v|--verbose Outputs information about each --reset file. |
| 383 | ** -n|--dry-run Display instead of run actions. |
| 384 | ** |
| 385 | ** See also: [[addremove]], [[rm]] |
| 386 | */ |
| 387 | void add_cmd(void){ |
| 388 | int i; /* Loop counter */ |
| 389 | int vid; /* Currently checked out version */ |
| 390 | int nRoot; /* Full path characters in g.zLocalRoot */ |
| @@ -549,21 +552,21 @@ | |
| 552 | ** |
| 553 | ** Options: |
| 554 | ** --soft Skip removing files from the checkout. |
| 555 | ** This supersedes the --hard option. |
| 556 | ** --hard Remove files from the checkout. |
| 557 | ** --case-sensitive BOOL Override the case-sensitive setting. |
| 558 | ** -n|--dry-run If given, display instead of run actions. |
| 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){ |
| 570 | int i; |
| 571 | int removeFiles; |
| 572 | int dryRunFlag = find_option("dry-run","n",0)!=0; |
| @@ -592,15 +595,11 @@ | |
| 595 | }else if( softFlag ){ |
| 596 | removeFiles = 0; |
| 597 | }else if( hardFlag ){ |
| 598 | removeFiles = 1; |
| 599 | }else{ |
| 600 | removeFiles = db_get_boolean("mv-rm-files",0); |
| 601 | } |
| 602 | db_multi_exec("CREATE TEMP TABLE sfile(pathname TEXT PRIMARY KEY %s)", |
| 603 | filename_collation()); |
| 604 | for(i=2; i<g.argc; i++){ |
| 605 | Blob treeName; |
| @@ -655,11 +654,11 @@ | |
| 654 | ** the case-sensitive setting is undefined, then case sensitivity |
| 655 | ** defaults off for Cygwin, Mac and Windows and on for all other unix. |
| 656 | ** If case-sensitivity is enabled in the windows kernel, the Cygwin port |
| 657 | ** of fossil.exe can detect that, and modifies the default to 'on'. |
| 658 | ** |
| 659 | ** The "--case-sensitive BOOL" command-line option overrides any |
| 660 | ** setting. |
| 661 | */ |
| 662 | int filenames_are_case_sensitive(void){ |
| 663 | static int caseSensitive; |
| 664 | static int once = 1; |
| @@ -711,22 +710,22 @@ | |
| 710 | /* |
| 711 | ** COMMAND: addremove |
| 712 | ** |
| 713 | ** Usage: %fossil addremove ?OPTIONS? |
| 714 | ** |
| 715 | ** Do all necessary "[[add]]" and "[[rm]]" commands to synchronize the |
| 716 | ** repository with the content of the working checkout: |
| 717 | ** |
| 718 | ** * All files in the checkout but not in the repository (that is, |
| 719 | ** all files displayed using the "extras" command) are added as |
| 720 | ** if by the "[[add]]" command. |
| 721 | ** |
| 722 | ** * All files in the repository but missing from the checkout (that is, |
| 723 | ** all files that show as MISSING with the "status" command) are |
| 724 | ** removed as if by the "[[rm]]" command. |
| 725 | ** |
| 726 | ** The command does not "[[commit]]". You must run the "[[commit]]" separately |
| 727 | ** as a separate step. |
| 728 | ** |
| 729 | ** Files and directories whose names begin with "." are ignored unless |
| 730 | ** the --dotfiles option is used. |
| 731 | ** |
| @@ -739,27 +738,27 @@ | |
| 738 | ** anything. |
| 739 | ** |
| 740 | ** This command can be used to track third party software. |
| 741 | ** |
| 742 | ** Options: |
| 743 | ** --case-sensitive BOOL Override the case-sensitive setting. |
| 744 | ** --dotfiles Include files beginning with a dot (".") |
| 745 | ** --ignore CSG Ignore unmanaged files matching patterns from |
| 746 | ** the Comma Separated Glob (CSG) list |
| 747 | ** --clean CSG Also ignore files matching patterns from |
| 748 | ** the Comma Separated Glob (CSG) list |
| 749 | ** -n|--dry-run If given, display instead of run actions. |
| 750 | ** --reset Reset the ADDED/DELETED state of a checkout, |
| 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 | Blob path; |
| 763 | const char *zCleanFlag; |
| 764 | const char *zIgnoreFlag; |
| @@ -975,11 +974,11 @@ | |
| 974 | ** Move or rename one or more files or directories within the repository tree. |
| 975 | ** You can either rename a file or directory or move it to another subdirectory. |
| 976 | ** |
| 977 | ** The 'mv' command does NOT normally rename or move the files on disk. |
| 978 | ** This command merely records the fact that file names have changed so |
| 979 | ** that appropriate notations can be made at the next [[commit]]. |
| 980 | ** However, the default behavior of this command may be overridden via |
| 981 | ** command line options listed below and/or the 'mv-rm-files' setting. |
| 982 | ** |
| 983 | ** The 'rename' command never renames or moves files on disk, even when the |
| 984 | ** command line options and/or the 'mv-rm-files' setting would otherwise |
| @@ -988,17 +987,17 @@ | |
| 987 | ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files" |
| 988 | ** setting is non-zero, files WILL BE renamed or moved on disk |
| 989 | ** as well. This does NOT apply to the 'rename' command. |
| 990 | ** |
| 991 | ** Options: |
| 992 | ** --soft Skip moving files within the checkout. |
| 993 | ** This supersedes the --hard option. |
| 994 | ** --hard Move files within the checkout. |
| 995 | ** --case-sensitive BOOL Override the case-sensitive setting. |
| 996 | ** -n|--dry-run If given, display instead of run actions. |
| 997 | ** |
| 998 | ** See also: [[changes]], [[status]] |
| 999 | */ |
| 1000 | void mv_cmd(void){ |
| 1001 | int i; |
| 1002 | int vid; |
| 1003 | int moveFiles; |
| @@ -1033,15 +1032,11 @@ | |
| 1032 | }else if( softFlag ){ |
| 1033 | moveFiles = 0; |
| 1034 | }else if( hardFlag ){ |
| 1035 | moveFiles = 1; |
| 1036 | }else{ |
| 1037 | moveFiles = db_get_boolean("mv-rm-files",0); |
| 1038 | } |
| 1039 | file_tree_name(zDest, &dest, 0, 1); |
| 1040 | db_multi_exec( |
| 1041 | "UPDATE vfile SET origname=pathname WHERE origname IS NULL;" |
| 1042 | ); |
| @@ -1090,11 +1085,11 @@ | |
| 1085 | const char *zPath = db_column_text(&q, 0); |
| 1086 | int nPath = db_column_bytes(&q, 0); |
| 1087 | const char *zTail; |
| 1088 | if( nPath==nOrig ){ |
| 1089 | zTail = file_tail(zPath); |
| 1090 | }else if( origType!=0 && destType==1 ){ |
| 1091 | zTail = &zPath[nOrig-strlen(file_tail(zOrig))]; |
| 1092 | }else{ |
| 1093 | zTail = &zPath[nOrig+1]; |
| 1094 | } |
| 1095 | db_multi_exec( |
| 1096 | |
| 1097 | DDED src/ajax.c |
+9
| --- a/src/ajax.c | ||
| +++ b/src/ajax.c | ||
| @@ -0,0 +1,9 @@ | ||
| 1 | +/* | |
| 2 | +** Copyright (c) 2020 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 "FreeB11, 1 | |
| 7 | +} | |
| 8 | + 0, diffFlags if(DIFF_SIDEBYSIDE & diffFlags)else{ | |
| 9 | + CX("wiki |
| --- a/src/ajax.c | |
| +++ b/src/ajax.c | |
| @@ -0,0 +1,9 @@ | |
| --- a/src/ajax.c | |
| +++ b/src/ajax.c | |
| @@ -0,0 +1,9 @@ | |
| 1 | /* |
| 2 | ** Copyright (c) 2020 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 "FreeB11, 1 |
| 7 | } |
| 8 | 0, diffFlags if(DIFF_SIDEBYSIDE & diffFlags)else{ |
| 9 | CX("wiki |
+91
-51
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -116,11 +116,10 @@ | ||
| 116 | 116 | && fossil_strcmp(db_get("email-send-method",0),"off")==0 |
| 117 | 117 | ){ |
| 118 | 118 | return; /* Don't create table for disabled email */ |
| 119 | 119 | } |
| 120 | 120 | db_exec_sql(zAlertInit); |
| 121 | - alert_triggers_enable(); | |
| 122 | 121 | }else if( !db_table_has_column("repository","pending_alert","sentMod") ){ |
| 123 | 122 | db_multi_exec( |
| 124 | 123 | "ALTER TABLE repository.pending_alert" |
| 125 | 124 | " ADD COLUMN sentMod BOOLEAN DEFAULT false;" |
| 126 | 125 | ); |
| @@ -129,15 +128,17 @@ | ||
| 129 | 128 | |
| 130 | 129 | /* |
| 131 | 130 | ** Enable triggers that automatically populate the pending_alert |
| 132 | 131 | ** table. |
| 133 | 132 | */ |
| 134 | -void alert_triggers_enable(void){ | |
| 133 | +void alert_create_trigger(void){ | |
| 135 | 134 | if( !db_table_exists("repository","pending_alert") ) return; |
| 136 | 135 | db_multi_exec( |
| 137 | - "CREATE TRIGGER IF NOT EXISTS repository.alert_trigger1\n" | |
| 138 | - "AFTER INSERT ON event BEGIN\n" | |
| 136 | + "DROP TRIGGER IF EXISTS repository.alert_trigger1;\n" /* Purge legacy */ | |
| 137 | + /* "DROP TRIGGER IF EXISTS repository.email_trigger1;\n" Very old legacy */ | |
| 138 | + "CREATE TRIGGER temp.alert_trigger1\n" | |
| 139 | + "AFTER INSERT ON repository.event BEGIN\n" | |
| 139 | 140 | " INSERT INTO pending_alert(eventid)\n" |
| 140 | 141 | " SELECT printf('%%.1c%%d',new.type,new.objid) WHERE true\n" |
| 141 | 142 | " ON CONFLICT(eventId) DO NOTHING;\n" |
| 142 | 143 | "END;" |
| 143 | 144 | ); |
| @@ -147,14 +148,14 @@ | ||
| 147 | 148 | ** Disable triggers the event_pending triggers. |
| 148 | 149 | ** |
| 149 | 150 | ** This must be called before rebuilding the EVENT table, for example |
| 150 | 151 | ** via the "fossil rebuild" command. |
| 151 | 152 | */ |
| 152 | -void alert_triggers_disable(void){ | |
| 153 | +void alert_drop_trigger(void){ | |
| 153 | 154 | db_multi_exec( |
| 154 | - "DROP TRIGGER IF EXISTS repository.alert_trigger1;\n" | |
| 155 | - "DROP TRIGGER IF EXISTS repository.email_trigger1;\n" // Legacy | |
| 155 | + "DROP TRIGGER IF EXISTS temp.alert_trigger1;\n" | |
| 156 | + "DROP TRIGGER IF EXISTS repository.alert_trigger1;\n" /* Purge legacy */ | |
| 156 | 157 | ); |
| 157 | 158 | } |
| 158 | 159 | |
| 159 | 160 | /* |
| 160 | 161 | ** Return true if email alerts are active. |
| @@ -171,13 +172,14 @@ | ||
| 171 | 172 | ** |
| 172 | 173 | ** If the subscriber table does exist, return 0 without doing anything. |
| 173 | 174 | */ |
| 174 | 175 | static int alert_webpages_disabled(void){ |
| 175 | 176 | if( alert_tables_exist() ) return 0; |
| 177 | + style_set_current_feature("alerts"); | |
| 176 | 178 | style_header("Email Alerts Are Disabled"); |
| 177 | 179 | @ <p>Email alerts are disabled on this server</p> |
| 178 | - style_footer(); | |
| 180 | + style_finish_page(); | |
| 179 | 181 | return 1; |
| 180 | 182 | } |
| 181 | 183 | |
| 182 | 184 | /* |
| 183 | 185 | ** Insert a "Subscriber List" submenu link if the current user |
| @@ -216,10 +218,11 @@ | ||
| 216 | 218 | } |
| 217 | 219 | db_begin_transaction(); |
| 218 | 220 | |
| 219 | 221 | alert_submenu_common(); |
| 220 | 222 | style_submenu_element("Send Announcement","%R/announce"); |
| 223 | + style_set_current_feature("alerts"); | |
| 221 | 224 | style_header("Email Notification Setup"); |
| 222 | 225 | @ <h1>Status</h1> |
| 223 | 226 | @ <table class="label-value"> |
| 224 | 227 | if( alert_enabled() ){ |
| 225 | 228 | stats_for_email(); |
| @@ -285,11 +288,11 @@ | ||
| 285 | 288 | @ recepient addresses, and subject from the header of the piped email |
| 286 | 289 | @ text. (Property: "email-send-command")</p> |
| 287 | 290 | |
| 288 | 291 | entry_attribute("Store Emails In This Database", 60, "email-send-db", |
| 289 | 292 | "esdb", "", 0); |
| 290 | - @ <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 | |
| 291 | 294 | @ stored in an SQLite database file with the name given here. |
| 292 | 295 | @ (Property: "email-send-db")</p> |
| 293 | 296 | |
| 294 | 297 | entry_attribute("Store Emails In This Directory", 60, "email-send-dir", |
| 295 | 298 | "esdir", "", 0); |
| @@ -308,11 +311,11 @@ | ||
| 308 | 311 | @ <hr> |
| 309 | 312 | |
| 310 | 313 | @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 311 | 314 | @ </div></form> |
| 312 | 315 | db_end_transaction(0); |
| 313 | - style_footer(); | |
| 316 | + style_finish_page(); | |
| 314 | 317 | } |
| 315 | 318 | |
| 316 | 319 | #if 0 |
| 317 | 320 | /* |
| 318 | 321 | ** Encode pMsg as MIME base64 and append it to pOut |
| @@ -936,11 +939,11 @@ | ||
| 936 | 939 | ** This is a short name used to identifies the repository in the Subject: |
| 937 | 940 | ** line of email alerts. Traditionally this name is included in square |
| 938 | 941 | ** brackets. Examples: "[fossil-src]", "[sqlite-src]". |
| 939 | 942 | */ |
| 940 | 943 | /* |
| 941 | -** SETTING: email-send-method width=5 default=off | |
| 944 | +** SETTING: email-send-method width=5 default=off sensitive | |
| 942 | 945 | ** Determine the method used to send email. Allowed values are |
| 943 | 946 | ** "off", "relay", "pipe", "dir", "db", and "stdout". The "off" value |
| 944 | 947 | ** means no email is ever sent. The "relay" value means emails are sent |
| 945 | 948 | ** to an Mail Sending Agent using SMTP located at email-send-relayhost. |
| 946 | 949 | ** The "pipe" value means email messages are piped into a command |
| @@ -949,33 +952,33 @@ | ||
| 949 | 952 | ** by the email-send-dir setting. The "db" value means that emails |
| 950 | 953 | ** are added to an SQLite database named by the* email-send-db setting. |
| 951 | 954 | ** The "stdout" value writes email text to standard output, for debugging. |
| 952 | 955 | */ |
| 953 | 956 | /* |
| 954 | -** SETTING: email-send-command width=40 | |
| 957 | +** SETTING: email-send-command width=40 sensitive | |
| 955 | 958 | ** This is a command to which outbound email content is piped when the |
| 956 | 959 | ** email-send-method is set to "pipe". The command must extract |
| 957 | 960 | ** recipient, sender, subject, and all other relevant information |
| 958 | 961 | ** from the email header. |
| 959 | 962 | */ |
| 960 | 963 | /* |
| 961 | -** SETTING: email-send-dir width=40 | |
| 964 | +** SETTING: email-send-dir width=40 sensitive | |
| 962 | 965 | ** This is a directory into which outbound emails are written as individual |
| 963 | 966 | ** files if the email-send-method is set to "dir". |
| 964 | 967 | */ |
| 965 | 968 | /* |
| 966 | -** SETTING: email-send-db width=40 | |
| 969 | +** SETTING: email-send-db width=40 sensitive | |
| 967 | 970 | ** This is an SQLite database file into which outbound emails are written |
| 968 | 971 | ** if the email-send-method is set to "db". |
| 969 | 972 | */ |
| 970 | 973 | /* |
| 971 | 974 | ** SETTING: email-self width=40 |
| 972 | 975 | ** This is the email address for the repository. Outbound emails add |
| 973 | 976 | ** this email address as the "From:" field. |
| 974 | 977 | */ |
| 975 | 978 | /* |
| 976 | -** SETTING: email-send-relayhost width=40 | |
| 979 | +** SETTING: email-send-relayhost width=40 sensitive | |
| 977 | 980 | ** This is the hostname and TCP port to which output email messages |
| 978 | 981 | ** are sent when email-send-method is "relay". There should be an |
| 979 | 982 | ** SMTP server configured as a Mail Submission Agent listening on the |
| 980 | 983 | ** designated host and port and all times. |
| 981 | 984 | */ |
| @@ -1060,11 +1063,11 @@ | ||
| 1060 | 1063 | prompt_user("Continue? (y/N) ", &yn); |
| 1061 | 1064 | c = blob_str(&yn)[0]; |
| 1062 | 1065 | blob_reset(&yn); |
| 1063 | 1066 | } |
| 1064 | 1067 | if( c=='y' ){ |
| 1065 | - alert_triggers_disable(); | |
| 1068 | + alert_drop_trigger(); | |
| 1066 | 1069 | db_multi_exec( |
| 1067 | 1070 | "DROP TABLE IF EXISTS subscriber;\n" |
| 1068 | 1071 | "DROP TABLE IF EXISTS pending_alert;\n" |
| 1069 | 1072 | "DROP TABLE IF EXISTS alert_bounce;\n" |
| 1070 | 1073 | /* Legacy */ |
| @@ -1364,20 +1367,20 @@ | ||
| 1364 | 1367 | } |
| 1365 | 1368 | if( !g.perm.Admin && !db_get_boolean("anon-subscribe",1) ){ |
| 1366 | 1369 | register_page(); |
| 1367 | 1370 | return; |
| 1368 | 1371 | } |
| 1372 | + style_set_current_feature("alerts"); | |
| 1369 | 1373 | alert_submenu_common(); |
| 1370 | 1374 | needCaptcha = !login_is_individual(); |
| 1371 | 1375 | if( P("submit") |
| 1372 | 1376 | && cgi_csrf_safe(1) |
| 1373 | 1377 | && subscribe_error_check(&eErr,&zErr,needCaptcha) |
| 1374 | 1378 | ){ |
| 1375 | 1379 | /* A validated request for a new subscription has been received. */ |
| 1376 | 1380 | char ssub[20]; |
| 1377 | 1381 | const char *zEAddr = P("e"); |
| 1378 | - sqlite3_int64 id; /* New subscriber Id */ | |
| 1379 | 1382 | const char *zCode; /* New subscriber code (in hex) */ |
| 1380 | 1383 | int nsub = 0; |
| 1381 | 1384 | const char *suname = PT("suname"); |
| 1382 | 1385 | if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin; |
| 1383 | 1386 | if( suname && suname[0]==0 ) suname = 0; |
| @@ -1386,25 +1389,22 @@ | ||
| 1386 | 1389 | if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f'; |
| 1387 | 1390 | if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't'; |
| 1388 | 1391 | if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w'; |
| 1389 | 1392 | if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x'; |
| 1390 | 1393 | ssub[nsub] = 0; |
| 1391 | - db_multi_exec( | |
| 1394 | + zCode = db_text(0, | |
| 1392 | 1395 | "INSERT INTO subscriber(semail,suname," |
| 1393 | 1396 | " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)" |
| 1394 | - "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);", | |
| 1395 | 1399 | /* semail */ zEAddr, |
| 1396 | 1400 | /* suname */ suname, |
| 1397 | 1401 | /* sverified */ needCaptcha==0, |
| 1398 | 1402 | /* sdigest */ PB("di"), |
| 1399 | 1403 | /* ssub */ ssub, |
| 1400 | 1404 | /* smip */ g.zIpAddr |
| 1401 | 1405 | ); |
| 1402 | - id = db_last_insert_rowid(); | |
| 1403 | - zCode = db_text(0, | |
| 1404 | - "SELECT hex(subscriberCode) FROM subscriber WHERE subscriberId=%lld", | |
| 1405 | - id); | |
| 1406 | 1406 | if( !needCaptcha ){ |
| 1407 | 1407 | /* The new subscription has been added on behalf of a logged-in user. |
| 1408 | 1408 | ** No verification is required. Jump immediately to /alerts page. |
| 1409 | 1409 | */ |
| 1410 | 1410 | if( g.perm.Admin ){ |
| @@ -1435,11 +1435,11 @@ | ||
| 1435 | 1435 | @ <p>An email has been sent to "%h(zEAddr)". That email contains a |
| 1436 | 1436 | @ hyperlink that you must click to activate your |
| 1437 | 1437 | @ subscription.</p> |
| 1438 | 1438 | } |
| 1439 | 1439 | alert_sender_free(pSender); |
| 1440 | - style_footer(); | |
| 1440 | + style_finish_page(); | |
| 1441 | 1441 | } |
| 1442 | 1442 | return; |
| 1443 | 1443 | } |
| 1444 | 1444 | style_header("Signup For Email Alerts"); |
| 1445 | 1445 | if( P("submit")==0 ){ |
| @@ -1552,34 +1552,50 @@ | ||
| 1552 | 1552 | @ Enter the 8 characters above in the "Security Code" box<br/> |
| 1553 | 1553 | @ </td></tr></table></div> |
| 1554 | 1554 | } |
| 1555 | 1555 | @ </form> |
| 1556 | 1556 | fossil_free(zErr); |
| 1557 | - style_footer(); | |
| 1557 | + style_finish_page(); | |
| 1558 | 1558 | } |
| 1559 | 1559 | |
| 1560 | 1560 | /* |
| 1561 | 1561 | ** Either shutdown or completely delete a subscription entry given |
| 1562 | 1562 | ** by the hex value zName. Then paint a webpage that explains that |
| 1563 | 1563 | ** the entry has been removed. |
| 1564 | 1564 | */ |
| 1565 | 1565 | static void alert_unsubscribe(int sid){ |
| 1566 | - char *zEmail; | |
| 1567 | - zEmail = db_text(0, "SELECT semail FROM subscriber" | |
| 1568 | - " WHERE subscriberId=%d", sid); | |
| 1566 | + const char *zEmail = 0; | |
| 1567 | + const char *zLogin = 0; | |
| 1568 | + int uid = 0; | |
| 1569 | + Stmt q; | |
| 1570 | + db_prepare(&q, "SELECT semail, suname FROM subscriber" | |
| 1571 | + " WHERE subscriberId=%d", sid); | |
| 1572 | + if( db_step(&q)==SQLITE_ROW ){ | |
| 1573 | + zEmail = db_column_text(&q, 0); | |
| 1574 | + zLogin = db_column_text(&q, 1); | |
| 1575 | + uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", zLogin); | |
| 1576 | + } | |
| 1577 | + style_set_current_feature("alerts"); | |
| 1569 | 1578 | if( zEmail==0 ){ |
| 1570 | 1579 | style_header("Unsubscribe Fail"); |
| 1571 | 1580 | @ <p>Unable to locate a subscriber with the requested key</p> |
| 1572 | 1581 | }else{ |
| 1582 | + | |
| 1573 | 1583 | db_multi_exec( |
| 1574 | 1584 | "DELETE FROM subscriber WHERE subscriberId=%d", sid |
| 1575 | 1585 | ); |
| 1576 | 1586 | style_header("Unsubscribed"); |
| 1577 | - @ <p>The "%h(zEmail)" email address has been delisted. | |
| 1578 | - @ All traces of that email address have been removed</p> | |
| 1587 | + @ <p>The "%h(zEmail)" email address has been unsubscribed and the | |
| 1588 | + @ corresponding row in the subscriber table has been deleted.<p> | |
| 1589 | + if( uid && g.perm.Admin ){ | |
| 1590 | + @ <p>You may also want to | |
| 1591 | + @ <a href="%R/setup_uedit?id=%d(uid)">edit or delete | |
| 1592 | + @ the corresponding user "%h(zLogin)"</a></p> | |
| 1593 | + } | |
| 1579 | 1594 | } |
| 1580 | - style_footer(); | |
| 1595 | + db_finalize(&q); | |
| 1596 | + style_finish_page(); | |
| 1581 | 1597 | return; |
| 1582 | 1598 | } |
| 1583 | 1599 | |
| 1584 | 1600 | /* |
| 1585 | 1601 | ** WEBPAGE: alerts |
| @@ -1586,26 +1602,26 @@ | ||
| 1586 | 1602 | ** |
| 1587 | 1603 | ** Edit email alert and notification settings. |
| 1588 | 1604 | ** |
| 1589 | 1605 | ** The subscriber is identified in several ways: |
| 1590 | 1606 | ** |
| 1591 | -** (1) The name= query parameter contains the complete subscriberCode. | |
| 1607 | +** * The name= query parameter contains the complete subscriberCode. | |
| 1592 | 1608 | ** This only happens when the user receives a verification |
| 1593 | 1609 | ** email and clicks on the link in the email. When a |
| 1594 | 1610 | ** compilete subscriberCode is seen on the name= query parameter, |
| 1595 | 1611 | ** that constitutes verification of the email address. |
| 1596 | 1612 | ** |
| 1597 | -** (2) The sid= query parameter contains an integer subscriberId. | |
| 1613 | +** * The sid= query parameter contains an integer subscriberId. | |
| 1598 | 1614 | ** This only works for the administrator. It allows the |
| 1599 | 1615 | ** administrator to edit any subscription. |
| 1600 | 1616 | ** |
| 1601 | -** (3) The user is logged into an account other than "nobody" or | |
| 1617 | +** * The user is logged into an account other than "nobody" or | |
| 1602 | 1618 | ** "anonymous". In that case the notification settings |
| 1603 | 1619 | ** associated with that account can be edited without needing |
| 1604 | 1620 | ** to know the subscriber code. |
| 1605 | 1621 | ** |
| 1606 | -** (4) The name= query parameter contains a 32-digit prefix of | |
| 1622 | +** * The name= query parameter contains a 32-digit prefix of | |
| 1607 | 1623 | ** subscriber code. (Subscriber codes are normally 64 hex digits |
| 1608 | 1624 | ** in length.) This uniquely identifies the subscriber without |
| 1609 | 1625 | ** revealing the complete subscriber code, and hence without |
| 1610 | 1626 | ** verifying the email address. |
| 1611 | 1627 | */ |
| @@ -1722,10 +1738,11 @@ | ||
| 1722 | 1738 | alert_unsubscribe(sid); |
| 1723 | 1739 | db_commit_transaction(); |
| 1724 | 1740 | return; |
| 1725 | 1741 | } |
| 1726 | 1742 | } |
| 1743 | + style_set_current_feature("alerts"); | |
| 1727 | 1744 | style_header("Update Subscription"); |
| 1728 | 1745 | db_prepare(&q, |
| 1729 | 1746 | "SELECT" |
| 1730 | 1747 | " semail," /* 0 */ |
| 1731 | 1748 | " sverified," /* 1 */ |
| @@ -1769,18 +1786,20 @@ | ||
| 1769 | 1786 | "UPDATE subscriber SET sverified=1" |
| 1770 | 1787 | " WHERE subscriberCode=hextoblob(%Q)", |
| 1771 | 1788 | zName); |
| 1772 | 1789 | if( db_get_boolean("selfreg-verify",0) ){ |
| 1773 | 1790 | char *zNewCap = db_get("default-perms","u"); |
| 1791 | + db_unprotect(PROTECT_USER); | |
| 1774 | 1792 | db_multi_exec( |
| 1775 | 1793 | "UPDATE user" |
| 1776 | 1794 | " SET cap=%Q" |
| 1777 | 1795 | " WHERE cap='7' AND login=(" |
| 1778 | 1796 | " SELECT suname FROM subscriber" |
| 1779 | 1797 | " WHERE subscriberCode=hextoblob(%Q))", |
| 1780 | 1798 | zNewCap, zName |
| 1781 | 1799 | ); |
| 1800 | + db_protect_pop(); | |
| 1782 | 1801 | login_set_capabilities(zNewCap, 0); |
| 1783 | 1802 | } |
| 1784 | 1803 | @ <h1>Your email alert subscription has been verified!</h1> |
| 1785 | 1804 | @ <p>Use the form below to update your subscription information.</p> |
| 1786 | 1805 | @ <p>Hint: Bookmark this page so that you can more easily update |
| @@ -1897,11 +1916,11 @@ | ||
| 1897 | 1916 | @ </tr> |
| 1898 | 1917 | @ </table> |
| 1899 | 1918 | @ </form> |
| 1900 | 1919 | fossil_free(zErr); |
| 1901 | 1920 | db_finalize(&q); |
| 1902 | - style_footer(); | |
| 1921 | + style_finish_page(); | |
| 1903 | 1922 | db_commit_transaction(); |
| 1904 | 1923 | return; |
| 1905 | 1924 | } |
| 1906 | 1925 | |
| 1907 | 1926 | /* This is the message that gets sent to describe how to change |
| @@ -1960,10 +1979,12 @@ | ||
| 1960 | 1979 | if( login_is_individual() ){ |
| 1961 | 1980 | cgi_redirectf("%R/alerts"); |
| 1962 | 1981 | return; |
| 1963 | 1982 | } |
| 1964 | 1983 | |
| 1984 | + style_set_current_feature("alerts"); | |
| 1985 | + | |
| 1965 | 1986 | zEAddr = PD("e",""); |
| 1966 | 1987 | dx = atoi(PD("dx","0")); |
| 1967 | 1988 | bSubmit = P("submit")!=0 && P("e")!=0 && cgi_csrf_safe(1); |
| 1968 | 1989 | if( bSubmit ){ |
| 1969 | 1990 | if( !captcha_is_correct(1) ){ |
| @@ -2004,11 +2025,11 @@ | ||
| 2004 | 2025 | }else{ |
| 2005 | 2026 | @ <p>An email has been sent to "%h(zEAddr)" that explains how to |
| 2006 | 2027 | @ unsubscribe and/or modify your subscription settings</p> |
| 2007 | 2028 | } |
| 2008 | 2029 | alert_sender_free(pSender); |
| 2009 | - style_footer(); | |
| 2030 | + style_finish_page(); | |
| 2010 | 2031 | return; |
| 2011 | 2032 | } |
| 2012 | 2033 | |
| 2013 | 2034 | /* Non-logged-in users have to enter an email address to which is |
| 2014 | 2035 | ** sent a message containing the unsubscribe link. |
| @@ -2054,11 +2075,11 @@ | ||
| 2054 | 2075 | @ </pre> |
| 2055 | 2076 | @ Enter the 8 characters above in the "Security Code" box<br/> |
| 2056 | 2077 | @ </td></tr></table></div> |
| 2057 | 2078 | @ </form> |
| 2058 | 2079 | fossil_free(zErr); |
| 2059 | - style_footer(); | |
| 2080 | + style_finish_page(); | |
| 2060 | 2081 | } |
| 2061 | 2082 | |
| 2062 | 2083 | /* |
| 2063 | 2084 | ** WEBPAGE: subscribers |
| 2064 | 2085 | ** |
| @@ -2081,10 +2102,11 @@ | ||
| 2081 | 2102 | login_needed(0); |
| 2082 | 2103 | return; |
| 2083 | 2104 | } |
| 2084 | 2105 | alert_submenu_common(); |
| 2085 | 2106 | style_submenu_element("Users","setup_ulist"); |
| 2107 | + style_set_current_feature("alerts"); | |
| 2086 | 2108 | style_header("Subscriber List"); |
| 2087 | 2109 | nTotal = db_int(0, "SELECT count(*) FROM subscriber"); |
| 2088 | 2110 | nPending = db_int(0, "SELECT count(*) FROM subscriber WHERE NOT sverified"); |
| 2089 | 2111 | if( nPending>0 && P("purge") && cgi_csrf_safe(0) ){ |
| 2090 | 2112 | int nNewPending; |
| @@ -2165,11 +2187,11 @@ | ||
| 2165 | 2187 | @ </tr> |
| 2166 | 2188 | } |
| 2167 | 2189 | @ </tbody></table> |
| 2168 | 2190 | db_finalize(&q); |
| 2169 | 2191 | style_table_sorter(); |
| 2170 | - style_footer(); | |
| 2192 | + style_finish_page(); | |
| 2171 | 2193 | } |
| 2172 | 2194 | |
| 2173 | 2195 | #if LOCAL_INTERFACE |
| 2174 | 2196 | /* |
| 2175 | 2197 | ** A single event that might appear in an alert is recorded as an |
| @@ -2252,10 +2274,11 @@ | ||
| 2252 | 2274 | memset(&anchor, 0, sizeof(anchor)); |
| 2253 | 2275 | pLast = &anchor; |
| 2254 | 2276 | *pnEvent = 0; |
| 2255 | 2277 | while( db_step(&q)==SQLITE_ROW ){ |
| 2256 | 2278 | const char *zType = ""; |
| 2279 | + const char *zComment = db_column_text(&q, 2); | |
| 2257 | 2280 | p = fossil_malloc( sizeof(EmailEvent) ); |
| 2258 | 2281 | pLast->pNext = p; |
| 2259 | 2282 | pLast = p; |
| 2260 | 2283 | p->type = db_column_text(&q, 3)[0]; |
| 2261 | 2284 | p->needMod = db_column_int(&q, 4); |
| @@ -2263,18 +2286,26 @@ | ||
| 2263 | 2286 | p->pNext = 0; |
| 2264 | 2287 | switch( p->type ){ |
| 2265 | 2288 | case 'c': zType = "Check-In"; break; |
| 2266 | 2289 | /* case 'f': -- forum posts omitted from this loop. See below */ |
| 2267 | 2290 | case 't': zType = "Ticket Change"; break; |
| 2268 | - 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 | + } | |
| 2269 | 2300 | } |
| 2270 | 2301 | blob_init(&p->hdr, 0, 0); |
| 2271 | 2302 | blob_init(&p->txt, 0, 0); |
| 2272 | 2303 | blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n", |
| 2273 | 2304 | db_column_text(&q,1), |
| 2274 | 2305 | zType, |
| 2275 | - db_column_text(&q, 2), | |
| 2306 | + zComment, | |
| 2276 | 2307 | zUrl, |
| 2277 | 2308 | db_column_text(&q,0) |
| 2278 | 2309 | ); |
| 2279 | 2310 | if( p->needMod ){ |
| 2280 | 2311 | blob_appendf(&p->txt, |
| @@ -2554,13 +2585,14 @@ | ||
| 2554 | 2585 | ** the process malfunctions or crashes, some notifications may never |
| 2555 | 2586 | ** be sent. But that is better than some recurring bug causing |
| 2556 | 2587 | ** subscribers to be flooded with repeated notifications every 60 |
| 2557 | 2588 | ** seconds! |
| 2558 | 2589 | */ |
| 2559 | -void alert_send_alerts(u32 flags){ | |
| 2590 | +int alert_send_alerts(u32 flags){ | |
| 2560 | 2591 | EmailEvent *pEvents, *p; |
| 2561 | 2592 | int nEvent = 0; |
| 2593 | + int nSent = 0; | |
| 2562 | 2594 | Stmt q; |
| 2563 | 2595 | const char *zDigest = "false"; |
| 2564 | 2596 | Blob hdr, body; |
| 2565 | 2597 | const char *zUrl; |
| 2566 | 2598 | const char *zRepoName; |
| @@ -2700,10 +2732,11 @@ | ||
| 2700 | 2732 | blob_append(&fhdr, blob_buffer(&p->hdr), blob_size(&p->hdr)); |
| 2701 | 2733 | blob_init(&fbody, blob_buffer(&p->txt), blob_size(&p->txt)); |
| 2702 | 2734 | blob_appendf(&fbody, "\n-- \nSubscription info: %s/alerts/%s\n", |
| 2703 | 2735 | zUrl, zCode); |
| 2704 | 2736 | alert_send(pSender,&fhdr,&fbody,p->zFromName); |
| 2737 | + nSent++; | |
| 2705 | 2738 | blob_reset(&fhdr); |
| 2706 | 2739 | blob_reset(&fbody); |
| 2707 | 2740 | }else{ |
| 2708 | 2741 | /* Events other than forum posts are gathered together into |
| 2709 | 2742 | ** a single email message */ |
| @@ -2723,10 +2756,11 @@ | ||
| 2723 | 2756 | } |
| 2724 | 2757 | if( nHit==0 ) continue; |
| 2725 | 2758 | blob_appendf(&body,"\n-- \nSubscription info: %s/alerts/%s\n", |
| 2726 | 2759 | zUrl, zCode); |
| 2727 | 2760 | alert_send(pSender,&hdr,&body,0); |
| 2761 | + nSent++; | |
| 2728 | 2762 | blob_truncate(&hdr, 0); |
| 2729 | 2763 | blob_truncate(&body, 0); |
| 2730 | 2764 | } |
| 2731 | 2765 | blob_reset(&hdr); |
| 2732 | 2766 | blob_reset(&body); |
| @@ -2739,10 +2773,11 @@ | ||
| 2739 | 2773 | db_multi_exec("DELETE FROM pending_alert WHERE sentDigest AND sentSep;"); |
| 2740 | 2774 | |
| 2741 | 2775 | send_alert_done: |
| 2742 | 2776 | alert_sender_free(pSender); |
| 2743 | 2777 | if( g.fSqlTrace ) fossil_trace("-- END alert_send_alerts(%u)\n", flags); |
| 2778 | + return nSent; | |
| 2744 | 2779 | } |
| 2745 | 2780 | |
| 2746 | 2781 | /* |
| 2747 | 2782 | ** Do backoffice processing for email notifications. In other words, |
| 2748 | 2783 | ** check to see if any email notifications need to occur, and then |
| @@ -2752,19 +2787,21 @@ | ||
| 2752 | 2787 | ** |
| 2753 | 2788 | ** The mFlags option is zero or more of the SENDALERT_* flags. Normally |
| 2754 | 2789 | ** this flag is zero, but the test-set-alert command sets it to |
| 2755 | 2790 | ** SENDALERT_TRACE. |
| 2756 | 2791 | */ |
| 2757 | -void alert_backoffice(u32 mFlags){ | |
| 2792 | +int alert_backoffice(u32 mFlags){ | |
| 2758 | 2793 | int iJulianDay; |
| 2759 | - if( !alert_tables_exist() ) return; | |
| 2760 | - alert_send_alerts(mFlags); | |
| 2794 | + int nSent = 0; | |
| 2795 | + if( !alert_tables_exist() ) return 0; | |
| 2796 | + nSent = alert_send_alerts(mFlags); | |
| 2761 | 2797 | iJulianDay = db_int(0, "SELECT julianday('now')"); |
| 2762 | 2798 | if( iJulianDay>db_get_int("email-last-digest",0) ){ |
| 2763 | 2799 | db_set_int("email-last-digest",iJulianDay,0); |
| 2764 | - alert_send_alerts(SENDALERT_DIGEST|mFlags); | |
| 2800 | + nSent += alert_send_alerts(SENDALERT_DIGEST|mFlags); | |
| 2765 | 2801 | } |
| 2802 | + return nSent; | |
| 2766 | 2803 | } |
| 2767 | 2804 | |
| 2768 | 2805 | /* |
| 2769 | 2806 | ** WEBPAGE: contact_admin |
| 2770 | 2807 | ** |
| @@ -2776,14 +2813,15 @@ | ||
| 2776 | 2813 | unsigned int uSeed = 0; |
| 2777 | 2814 | const char *zDecoded; |
| 2778 | 2815 | char *zCaptcha = 0; |
| 2779 | 2816 | |
| 2780 | 2817 | login_check_credentials(); |
| 2818 | + style_set_current_feature("alerts"); | |
| 2781 | 2819 | if( zAdminEmail==0 || zAdminEmail[0]==0 ){ |
| 2782 | 2820 | style_header("Outbound Email Disabled"); |
| 2783 | 2821 |