Fossil SCM

Add the Xekri skin.

drh 2015-03-03 14:42 trunk merge
Commit f05bfde912bd278449855a1786223679cab87d76
--- a/skins/xekri/README.md
+++ b/skins/xekri/README.md
@@ -0,0 +1,2 @@
1
+"xekri" is a Lojban word that means "extermely dark-colored".
2
+This skin was contributed by Andrew Moore.
--- a/skins/xekri/README.md
+++ b/skins/xekri/README.md
@@ -0,0 +1,2 @@
 
 
--- a/skins/xekri/README.md
+++ b/skins/xekri/README.md
@@ -0,0 +1,2 @@
1 "xekri" is a Lojban word that means "extermely dark-colored".
2 This skin was contributed by Andrew Moore.
--- a/skins/xekri/css.txt
+++ b/skins/xekri/css.txt
@@ -0,0 +1,12 @@
1
+Xekri
2
+}#canvasfff;
3
+}
4
+Xekri
5
+}#canvasff80% 1remflex;
6
+ -o-display: blockXekri
7
+}#canvasfff;
8
+}
9
+Xekri
10
+}#canvnvasffselec090
11
+Xekri
12
+}#canvasff442275eee;e
--- a/skins/xekri/css.txt
+++ b/skins/xekri/css.txt
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/xekri/css.txt
+++ b/skins/xekri/css.txt
@@ -0,0 +1,12 @@
1 Xekri
2 }#canvasfff;
3 }
4 Xekri
5 }#canvasff80% 1remflex;
6 -o-display: blockXekri
7 }#canvasfff;
8 }
9 Xekri
10 }#canvnvasffselec090
11 Xekri
12 }#canvasff442275eee;e
--- a/skins/xekri/footer.txt
+++ b/skins/xekri/footer.txt
@@ -0,0 +1,9 @@
1
+nfo">
2
+Fossil v$releasoterdiv class="page-time">
3
+ Generated in <th1>puts [expr {([utime]+[stime]</div>
4
+<div class="fossil-info">
5
+Fossil v$release</div>
6
+</footer>
7
+div>
8
+</body>
9
+</html>
--- a/skins/xekri/footer.txt
+++ b/skins/xekri/footer.txt
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
--- a/skins/xekri/footer.txt
+++ b/skins/xekri/footer.txt
@@ -0,0 +1,9 @@
1 nfo">
2 Fossil v$releasoterdiv class="page-time">
3 Generated in <th1>puts [expr {([utime]+[stime]</div>
4 <div class="fossil-info">
5 Fossil v$release</div>
6 </footer>
7 div>
8 </body>
9 </html>
--- a/skins/xekri/header.txt
+++ b/skins/xekri/header.txt
@@ -0,0 +1,98 @@
1
+<html>
2
+<head>
3
+<base href="$baseurl/$current_page" />
4
+<title>$<project_name>: $<title></title>
5
+<link rel="alternate" type="application/rss+xml" title="RSS Feed"
6
+ href="$home/timeline.rss" />
7
+<link rel="stylesheet" href="$stylesheet_url" type="text/css"
8
+ media=<div class="header">
9
+ <div class="logo">
10
+ <th1>
11
+ ##
12
+ ## NOTE: The purpose of this procedure is to take the base URL of the
13
+ ## Fossil project and return the root of the entire web site using
14
+ ## the same URI scheme as the base URL (e.g. http or https).
15
+ ##
16
+ proc getLogoUrl { baseurl } {
17
+ set idx(first) [string first // $baseurl]
18
+ if {$idx(first) != -1} {
19
+ ##
20
+ ## NOTE: Skip second slash.
21
+ ##
22
+ set idx(first+1) [expr {$idx(first) + 2}]
23
+ ##
24
+ ## NOTE: (part 1) The [string first] command does NOT actually
25
+ ## support the optional startIndex argument as specified
26
+ ## in the TH1 support manual; therefore, we fake it by
27
+ ## using the [string range] command and then adding the
28
+ project_nameadding the
29
+ ## necessary offset to the result<th1>
30
+low). In Tc, we could use the following ins} elscript
31
+ </th1>
32
+ ##
33
+ set idx(nextRange) [string range $baseurl $idx(first+1) funcdivif {$iif(e){
34
+ ## NOTE: (part 2) Add thefunction f(n) {
35
+Add the nece}
36
+for the next slash (i.e the itial searnext) [exp}]
37
+ ##
38
+ ]
39
+ ##
40
+ ## }
41
+}
42
+next slash.
43
+ ><th1>
44
+set sitemap 0
45
+scheme and host fthe base URL.
46
+ ##
47
+ "updateClock();"$idx(first)]
48
+ sest [string range $baseurl $idx>
49
+ <th1>
50
+ ##
51
+ ## NOT
52
+<th1>
53
+proc menulink {url name} {
54
+name</a>\n"
55
+ }
56
+}
57
+menindex_page'>Home</a>\n"
58
+name</a>\n"
59
+ }
60
+}
61
+me/help'>Help<>$name</a>\n"
62
+ }
63
+}
64
+me/timeline'>Timeline</a>$name</a>\n"
65
+ }
66
+}
67
+me/tree?ci=tip'>Files</>$name</a>\n"
68
+ }
69
+}
70
+me/brlist'>Branches</a>\n"
71
+>$name</a>\n"
72
+ }
73
+}
74
+me/taglist'>Tags</>$name</a>\n"
75
+ }
76
+}
77
+me/ticket'>Tickets</>$name</a>\n"
78
+ }
79
+}
80
+me/wiki'>Wiki</a>\n"setup_ulist Users
81
+}
82
+e iname</a>\n"
83
+ }
84
+}
85
+me/setup'>Admin</a>\n"
86
+}
87
+e it by
88
+ ## name</a>\n"
89
+ }
90
+}
91
+me/setup_ulist'>Users</a>\n"<html>
92
+<head>
93
+<base href="$baseuse href="$baseurl/$c/login'>Logout</a>\n"
94
+} else {
95
+>$name</a>\n"
96
+ }
97
+}
98
+me
--- a/skins/xekri/header.txt
+++ b/skins/xekri/header.txt
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/xekri/header.txt
+++ b/skins/xekri/header.txt
@@ -0,0 +1,98 @@
1 <html>
2 <head>
3 <base href="$baseurl/$current_page" />
4 <title>$<project_name>: $<title></title>
5 <link rel="alternate" type="application/rss+xml" title="RSS Feed"
6 href="$home/timeline.rss" />
7 <link rel="stylesheet" href="$stylesheet_url" type="text/css"
8 media=<div class="header">
9 <div class="logo">
10 <th1>
11 ##
12 ## NOTE: The purpose of this procedure is to take the base URL of the
13 ## Fossil project and return the root of the entire web site using
14 ## the same URI scheme as the base URL (e.g. http or https).
15 ##
16 proc getLogoUrl { baseurl } {
17 set idx(first) [string first // $baseurl]
18 if {$idx(first) != -1} {
19 ##
20 ## NOTE: Skip second slash.
21 ##
22 set idx(first+1) [expr {$idx(first) + 2}]
23 ##
24 ## NOTE: (part 1) The [string first] command does NOT actually
25 ## support the optional startIndex argument as specified
26 ## in the TH1 support manual; therefore, we fake it by
27 ## using the [string range] command and then adding the
28 project_nameadding the
29 ## necessary offset to the result<th1>
30 low). In Tc, we could use the following ins} elscript
31 </th1>
32 ##
33 set idx(nextRange) [string range $baseurl $idx(first+1) funcdivif {$iif(e){
34 ## NOTE: (part 2) Add thefunction f(n) {
35 Add the nece}
36 for the next slash (i.e the itial searnext) [exp}]
37 ##
38 ]
39 ##
40 ## }
41 }
42 next slash.
43 ><th1>
44 set sitemap 0
45 scheme and host fthe base URL.
46 ##
47 "updateClock();"$idx(first)]
48 sest [string range $baseurl $idx>
49 <th1>
50 ##
51 ## NOT
52 <th1>
53 proc menulink {url name} {
54 name</a>\n"
55 }
56 }
57 menindex_page'>Home</a>\n"
58 name</a>\n"
59 }
60 }
61 me/help'>Help<>$name</a>\n"
62 }
63 }
64 me/timeline'>Timeline</a>$name</a>\n"
65 }
66 }
67 me/tree?ci=tip'>Files</>$name</a>\n"
68 }
69 }
70 me/brlist'>Branches</a>\n"
71 >$name</a>\n"
72 }
73 }
74 me/taglist'>Tags</>$name</a>\n"
75 }
76 }
77 me/ticket'>Tickets</>$name</a>\n"
78 }
79 }
80 me/wiki'>Wiki</a>\n"setup_ulist Users
81 }
82 e iname</a>\n"
83 }
84 }
85 me/setup'>Admin</a>\n"
86 }
87 e it by
88 ## name</a>\n"
89 }
90 }
91 me/setup_ulist'>Users</a>\n"<html>
92 <head>
93 <base href="$baseuse href="$baseurl/$c/login'>Logout</a>\n"
94 } else {
95 >$name</a>\n"
96 }
97 }
98 me
--- src/main.mk
+++ src/main.mk
@@ -156,10 +156,13 @@
156156
$(SRCDIR)/../skins/plain_gray/footer.txt \
157157
$(SRCDIR)/../skins/plain_gray/header.txt \
158158
$(SRCDIR)/../skins/rounded1/css.txt \
159159
$(SRCDIR)/../skins/rounded1/footer.txt \
160160
$(SRCDIR)/../skins/rounded1/header.txt \
161
+ $(SRCDIR)/../skins/xekri/css.txt \
162
+ $(SRCDIR)/../skins/xekri/footer.txt \
163
+ $(SRCDIR)/../skins/xekri/header.txt \
161164
$(SRCDIR)/diff.tcl \
162165
$(SRCDIR)/markdown.md
163166
164167
TRANS_SRC = \
165168
$(OBJDIR)/add_.c \
166169
--- src/main.mk
+++ src/main.mk
@@ -156,10 +156,13 @@
156 $(SRCDIR)/../skins/plain_gray/footer.txt \
157 $(SRCDIR)/../skins/plain_gray/header.txt \
158 $(SRCDIR)/../skins/rounded1/css.txt \
159 $(SRCDIR)/../skins/rounded1/footer.txt \
160 $(SRCDIR)/../skins/rounded1/header.txt \
 
 
 
161 $(SRCDIR)/diff.tcl \
162 $(SRCDIR)/markdown.md
163
164 TRANS_SRC = \
165 $(OBJDIR)/add_.c \
166
--- src/main.mk
+++ src/main.mk
@@ -156,10 +156,13 @@
156 $(SRCDIR)/../skins/plain_gray/footer.txt \
157 $(SRCDIR)/../skins/plain_gray/header.txt \
158 $(SRCDIR)/../skins/rounded1/css.txt \
159 $(SRCDIR)/../skins/rounded1/footer.txt \
160 $(SRCDIR)/../skins/rounded1/header.txt \
161 $(SRCDIR)/../skins/xekri/css.txt \
162 $(SRCDIR)/../skins/xekri/footer.txt \
163 $(SRCDIR)/../skins/xekri/header.txt \
164 $(SRCDIR)/diff.tcl \
165 $(SRCDIR)/markdown.md
166
167 TRANS_SRC = \
168 $(OBJDIR)/add_.c \
169
--- src/skins.c
+++ src/skins.c
@@ -48,10 +48,11 @@
4848
{ "Black & White, Menu on Left", "black_and_white", 0, 0 },
4949
{ "Shadow boxes & Rounded Corners", "rounded1", 0, 0 },
5050
{ "Enhanced Default", "enhanced1", 0, 0 },
5151
{ "San Francisco Modern", "etienne1", 0, 0 },
5252
{ "Eagle", "eagle", 1, 0 },
53
+ { "Xekri", "xekri", 0, 0 },
5354
};
5455
5556
/*
5657
** Alternative skins can be specified in the CGI script or by options
5758
** on the "http", "ui", and "server" commands. The alternative skin
5859
--- src/skins.c
+++ src/skins.c
@@ -48,10 +48,11 @@
48 { "Black & White, Menu on Left", "black_and_white", 0, 0 },
49 { "Shadow boxes & Rounded Corners", "rounded1", 0, 0 },
50 { "Enhanced Default", "enhanced1", 0, 0 },
51 { "San Francisco Modern", "etienne1", 0, 0 },
52 { "Eagle", "eagle", 1, 0 },
 
53 };
54
55 /*
56 ** Alternative skins can be specified in the CGI script or by options
57 ** on the "http", "ui", and "server" commands. The alternative skin
58
--- src/skins.c
+++ src/skins.c
@@ -48,10 +48,11 @@
48 { "Black & White, Menu on Left", "black_and_white", 0, 0 },
49 { "Shadow boxes & Rounded Corners", "rounded1", 0, 0 },
50 { "Enhanced Default", "enhanced1", 0, 0 },
51 { "San Francisco Modern", "etienne1", 0, 0 },
52 { "Eagle", "eagle", 1, 0 },
53 { "Xekri", "xekri", 0, 0 },
54 };
55
56 /*
57 ** Alternative skins can be specified in the CGI script or by options
58 ** on the "http", "ui", and "server" commands. The alternative skin
59
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509509
$(SRCDIR)/../skins/plain_gray/footer.txt \
510510
$(SRCDIR)/../skins/plain_gray/header.txt \
511511
$(SRCDIR)/../skins/rounded1/css.txt \
512512
$(SRCDIR)/../skins/rounded1/footer.txt \
513513
$(SRCDIR)/../skins/rounded1/header.txt \
514
+ $(SRCDIR)/../skins/xekri/css.txt \
515
+ $(SRCDIR)/../skins/xekri/footer.txt \
516
+ $(SRCDIR)/../skins/xekri/header.txt \
514517
$(SRCDIR)/diff.tcl \
515518
$(SRCDIR)/markdown.md
516519
517520
TRANS_SRC = \
518521
$(OBJDIR)/add_.c \
519522
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509 $(SRCDIR)/../skins/plain_gray/footer.txt \
510 $(SRCDIR)/../skins/plain_gray/header.txt \
511 $(SRCDIR)/../skins/rounded1/css.txt \
512 $(SRCDIR)/../skins/rounded1/footer.txt \
513 $(SRCDIR)/../skins/rounded1/header.txt \
 
 
 
514 $(SRCDIR)/diff.tcl \
515 $(SRCDIR)/markdown.md
516
517 TRANS_SRC = \
518 $(OBJDIR)/add_.c \
519
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509 $(SRCDIR)/../skins/plain_gray/footer.txt \
510 $(SRCDIR)/../skins/plain_gray/header.txt \
511 $(SRCDIR)/../skins/rounded1/css.txt \
512 $(SRCDIR)/../skins/rounded1/footer.txt \
513 $(SRCDIR)/../skins/rounded1/header.txt \
514 $(SRCDIR)/../skins/xekri/css.txt \
515 $(SRCDIR)/../skins/xekri/footer.txt \
516 $(SRCDIR)/../skins/xekri/header.txt \
517 $(SRCDIR)/diff.tcl \
518 $(SRCDIR)/markdown.md
519
520 TRANS_SRC = \
521 $(OBJDIR)/add_.c \
522
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509509
$(SRCDIR)/../skins/plain_gray/footer.txt \
510510
$(SRCDIR)/../skins/plain_gray/header.txt \
511511
$(SRCDIR)/../skins/rounded1/css.txt \
512512
$(SRCDIR)/../skins/rounded1/footer.txt \
513513
$(SRCDIR)/../skins/rounded1/header.txt \
514
+ $(SRCDIR)/../skins/xekri/css.txt \
515
+ $(SRCDIR)/../skins/xekri/footer.txt \
516
+ $(SRCDIR)/../skins/xekri/header.txt \
514517
$(SRCDIR)/diff.tcl \
515518
$(SRCDIR)/markdown.md
516519
517520
TRANS_SRC = \
518521
$(OBJDIR)/add_.c \
519522
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509 $(SRCDIR)/../skins/plain_gray/footer.txt \
510 $(SRCDIR)/../skins/plain_gray/header.txt \
511 $(SRCDIR)/../skins/rounded1/css.txt \
512 $(SRCDIR)/../skins/rounded1/footer.txt \
513 $(SRCDIR)/../skins/rounded1/header.txt \
 
 
 
514 $(SRCDIR)/diff.tcl \
515 $(SRCDIR)/markdown.md
516
517 TRANS_SRC = \
518 $(OBJDIR)/add_.c \
519
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -509,10 +509,13 @@
509 $(SRCDIR)/../skins/plain_gray/footer.txt \
510 $(SRCDIR)/../skins/plain_gray/header.txt \
511 $(SRCDIR)/../skins/rounded1/css.txt \
512 $(SRCDIR)/../skins/rounded1/footer.txt \
513 $(SRCDIR)/../skins/rounded1/header.txt \
514 $(SRCDIR)/../skins/xekri/css.txt \
515 $(SRCDIR)/../skins/xekri/footer.txt \
516 $(SRCDIR)/../skins/xekri/header.txt \
517 $(SRCDIR)/diff.tcl \
518 $(SRCDIR)/markdown.md
519
520 TRANS_SRC = \
521 $(OBJDIR)/add_.c \
522
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349349
$(SRCDIR)\../skins/plain_gray/footer.txt \
350350
$(SRCDIR)\../skins/plain_gray/header.txt \
351351
$(SRCDIR)\../skins/rounded1/css.txt \
352352
$(SRCDIR)\../skins/rounded1/footer.txt \
353353
$(SRCDIR)\../skins/rounded1/header.txt \
354
+ $(SRCDIR)\../skins/xekri/css.txt \
355
+ $(SRCDIR)\../skins/xekri/footer.txt \
356
+ $(SRCDIR)\../skins/xekri/header.txt \
354357
$(SRCDIR)\diff.tcl \
355358
$(SRCDIR)\markdown.md
356359
357360
OBJ = $(OX)\add$O \
358361
$(OX)\allrepo$O \
359362
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349 $(SRCDIR)\../skins/plain_gray/footer.txt \
350 $(SRCDIR)\../skins/plain_gray/header.txt \
351 $(SRCDIR)\../skins/rounded1/css.txt \
352 $(SRCDIR)\../skins/rounded1/footer.txt \
353 $(SRCDIR)\../skins/rounded1/header.txt \
 
 
 
354 $(SRCDIR)\diff.tcl \
355 $(SRCDIR)\markdown.md
356
357 OBJ = $(OX)\add$O \
358 $(OX)\allrepo$O \
359
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349 $(SRCDIR)\../skins/plain_gray/footer.txt \
350 $(SRCDIR)\../skins/plain_gray/header.txt \
351 $(SRCDIR)\../skins/rounded1/css.txt \
352 $(SRCDIR)\../skins/rounded1/footer.txt \
353 $(SRCDIR)\../skins/rounded1/header.txt \
354 $(SRCDIR)\../skins/xekri/css.txt \
355 $(SRCDIR)\../skins/xekri/footer.txt \
356 $(SRCDIR)\../skins/xekri/header.txt \
357 $(SRCDIR)\diff.tcl \
358 $(SRCDIR)\markdown.md
359
360 OBJ = $(OX)\add$O \
361 $(OX)\allrepo$O \
362
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349349
$(SRCDIR)\../skins/plain_gray/footer.txt \
350350
$(SRCDIR)\../skins/plain_gray/header.txt \
351351
$(SRCDIR)\../skins/rounded1/css.txt \
352352
$(SRCDIR)\../skins/rounded1/footer.txt \
353353
$(SRCDIR)\../skins/rounded1/header.txt \
354
+ $(SRCDIR)\../skins/xekri/css.txt \
355
+ $(SRCDIR)\../skins/xekri/footer.txt \
356
+ $(SRCDIR)\../skins/xekri/header.txt \
354357
$(SRCDIR)\diff.tcl \
355358
$(SRCDIR)\markdown.md
356359
357360
OBJ = $(OX)\add$O \
358361
$(OX)\allrepo$O \
359362
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349 $(SRCDIR)\../skins/plain_gray/footer.txt \
350 $(SRCDIR)\../skins/plain_gray/header.txt \
351 $(SRCDIR)\../skins/rounded1/css.txt \
352 $(SRCDIR)\../skins/rounded1/footer.txt \
353 $(SRCDIR)\../skins/rounded1/header.txt \
 
 
 
354 $(SRCDIR)\diff.tcl \
355 $(SRCDIR)\markdown.md
356
357 OBJ = $(OX)\add$O \
358 $(OX)\allrepo$O \
359
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -349,10 +349,13 @@
349 $(SRCDIR)\../skins/plain_gray/footer.txt \
350 $(SRCDIR)\../skins/plain_gray/header.txt \
351 $(SRCDIR)\../skins/rounded1/css.txt \
352 $(SRCDIR)\../skins/rounded1/footer.txt \
353 $(SRCDIR)\../skins/rounded1/header.txt \
354 $(SRCDIR)\../skins/xekri/css.txt \
355 $(SRCDIR)\../skins/xekri/footer.txt \
356 $(SRCDIR)\../skins/xekri/header.txt \
357 $(SRCDIR)\diff.tcl \
358 $(SRCDIR)\markdown.md
359
360 OBJ = $(OX)\add$O \
361 $(OX)\allrepo$O \
362

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button