| | @@ -19,1255 +19,36 @@ |
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include <assert.h> |
| 22 | 22 | #include "skins.h" |
| 23 | 23 | |
| 24 | | -/* @-comment: ## */ |
| 25 | | -/* |
| 26 | | -** A black-and-white theme with the project title in a bar across the top |
| 27 | | -** and no logo image. |
| 28 | | -*/ |
| 29 | | -static const char zBuiltinSkin1[] = |
| 30 | | -@ REPLACE INTO config(name,mtime,value) |
| 31 | | -@ VALUES('css',now(),'/* General settings for the entire page */ |
| 32 | | -@ body { |
| 33 | | -@ margin: 0ex 1ex; |
| 34 | | -@ padding: 0px; |
| 35 | | -@ background-color: white; |
| 36 | | -@ font-family: sans-serif; |
| 37 | | -@ } |
| 38 | | -@ |
| 39 | | -@ /* The project logo in the upper left-hand corner of each page */ |
| 40 | | -@ div.logo { |
| 41 | | -@ display: table-row; |
| 42 | | -@ text-align: center; |
| 43 | | -@ /* vertical-align: bottom;*/ |
| 44 | | -@ font-size: 2em; |
| 45 | | -@ font-weight: bold; |
| 46 | | -@ background-color: #707070; |
| 47 | | -@ color: #ffffff; |
| 48 | | -@ min-width: 200px; |
| 49 | | -@ white-space: nowrap; |
| 50 | | -@ } |
| 51 | | -@ |
| 52 | | -@ /* The page title centered at the top of each page */ |
| 53 | | -@ div.title { |
| 54 | | -@ display: table-cell; |
| 55 | | -@ font-size: 1.5em; |
| 56 | | -@ font-weight: bold; |
| 57 | | -@ text-align: center; |
| 58 | | -@ padding: 0 0 0 10px; |
| 59 | | -@ color: #404040; |
| 60 | | -@ vertical-align: bottom; |
| 61 | | -@ width: 100%; |
| 62 | | -@ } |
| 63 | | -@ |
| 64 | | -@ /* The login status message in the top right-hand corner */ |
| 65 | | -@ div.status { |
| 66 | | -@ display: table-cell; |
| 67 | | -@ text-align: right; |
| 68 | | -@ vertical-align: bottom; |
| 69 | | -@ color: #404040; |
| 70 | | -@ font-size: 0.8em; |
| 71 | | -@ font-weight: bold; |
| 72 | | -@ min-width: 200px; |
| 73 | | -@ white-space: nowrap; |
| 74 | | -@ } |
| 75 | | -@ |
| 76 | | -@ /* The header across the top of the page */ |
| 77 | | -@ div.header { |
| 78 | | -@ display: table; |
| 79 | | -@ width: 100%; |
| 80 | | -@ } |
| 81 | | -@ |
| 82 | | -@ /* The main menu bar that appears at the top of the page beneath |
| 83 | | -@ ** the header */ |
| 84 | | -@ div.mainmenu { |
| 85 | | -@ padding: 5px 10px 5px 10px; |
| 86 | | -@ font-size: 0.9em; |
| 87 | | -@ font-weight: bold; |
| 88 | | -@ text-align: center; |
| 89 | | -@ letter-spacing: 1px; |
| 90 | | -@ background-color: #404040; |
| 91 | | -@ color: white; |
| 92 | | -@ } |
| 93 | | -@ |
| 94 | | -@ /* The submenu bar that *sometimes* appears below the main menu */ |
| 95 | | -@ div.submenu, div.sectionmenu { |
| 96 | | -@ padding: 3px 10px 3px 0px; |
| 97 | | -@ font-size: 0.9em; |
| 98 | | -@ text-align: center; |
| 99 | | -@ background-color: #606060; |
| 100 | | -@ color: white; |
| 101 | | -@ } |
| 102 | | -@ div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited, |
| 103 | | -@ div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { |
| 104 | | -@ padding: 3px 10px 3px 10px; |
| 105 | | -@ color: white; |
| 106 | | -@ text-decoration: none; |
| 107 | | -@ } |
| 108 | | -@ div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover { |
| 109 | | -@ color: #404040; |
| 110 | | -@ background-color: white; |
| 111 | | -@ } |
| 112 | | -@ |
| 113 | | -@ /* All page content from the bottom of the menu or submenu down to |
| 114 | | -@ ** the footer */ |
| 115 | | -@ div.content { |
| 116 | | -@ padding: 0ex 0ex 0ex 0ex; |
| 117 | | -@ } |
| 118 | | -@ /* Hyperlink colors */ |
| 119 | | -@ div.content a { color: #604000; } |
| 120 | | -@ div.content a:link { color: #604000;} |
| 121 | | -@ div.content a:visited { color: #600000; } |
| 122 | | -@ |
| 123 | | -@ /* <verbatim> blocks */ |
| 124 | | -@ pre.verbatim { |
| 125 | | -@ background-color: #ffffff; |
| 126 | | -@ padding: 0.5em; |
| 127 | | -@ white-space: pre-wrap; |
| 128 | | -@ } |
| 129 | | -@ |
| 130 | | -@ /* Some pages have section dividers */ |
| 131 | | -@ div.section { |
| 132 | | -@ margin-bottom: 0px; |
| 133 | | -@ margin-top: 1em; |
| 134 | | -@ padding: 1px 1px 1px 1px; |
| 135 | | -@ font-size: 1.2em; |
| 136 | | -@ font-weight: bold; |
| 137 | | -@ background-color: #404040; |
| 138 | | -@ color: white; |
| 139 | | -@ white-space: nowrap; |
| 140 | | -@ } |
| 141 | | -@ |
| 142 | | -@ /* The "Date" that occurs on the left hand side of timelines */ |
| 143 | | -@ div.divider { |
| 144 | | -@ background: #a0a0a0; |
| 145 | | -@ border: 2px #505050 solid; |
| 146 | | -@ font-size: 1em; font-weight: normal; |
| 147 | | -@ padding: .25em; |
| 148 | | -@ margin: .2em 0 .2em 0; |
| 149 | | -@ float: left; |
| 150 | | -@ clear: left; |
| 151 | | -@ white-space: nowrap; |
| 152 | | -@ } |
| 153 | | -@ |
| 154 | | -@ /* The footer at the very bottom of the page */ |
| 155 | | -@ div.footer { |
| 156 | | -@ font-size: 0.8em; |
| 157 | | -@ margin-top: 12px; |
| 158 | | -@ padding: 5px 10px 5px 10px; |
| 159 | | -@ text-align: right; |
| 160 | | -@ background-color: #404040; |
| 161 | | -@ color: white; |
| 162 | | -@ } |
| 163 | | -@ |
| 164 | | -@ /* The label/value pairs on (for example) the vinfo page */ |
| 165 | | -@ table.label-value th { |
| 166 | | -@ vertical-align: top; |
| 167 | | -@ text-align: right; |
| 168 | | -@ padding: 0.2ex 2ex; |
| 169 | | -@ }'); |
| 170 | | -@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html> |
| 171 | | -@ <head> |
| 172 | | -@ <base href="$baseurl/$current_page" /> |
| 173 | | -@ <title>$<project_name>: $<title></title> |
| 174 | | -@ <link rel="alternate" type="application/rss+xml" title="RSS Feed" |
| 175 | | -@ href="$home/timeline.rss"> |
| 176 | | -@ <link rel="stylesheet" href="$stylesheet_url" type="text/css" |
| 177 | | -@ media="screen"> |
| 178 | | -@ </head> |
| 179 | | -@ <body> |
| 180 | | -@ <div class="header"> |
| 181 | | -@ <div class="title"><small>$<project_name></small><br />$<title></div> |
| 182 | | -@ <div class="status"><th1> |
| 183 | | -@ if {[info exists login]} { |
| 184 | | -@ puts "Logged in as $login" |
| 185 | | -@ } else { |
| 186 | | -@ puts "Not logged in" |
| 187 | | -@ } |
| 188 | | -@ </th1></div> |
| 189 | | -@ </div> |
| 190 | | -@ <div class="mainmenu"> |
| 191 | | -@ <th1> |
| 192 | | -@ html "<a href=''$home$index_page''>Home</a>\n" |
| 193 | | -@ if {[anycap jor]} { |
| 194 | | -@ html "<a href=''$home/timeline''>Timeline</a>\n" |
| 195 | | -@ } |
| 196 | | -@ if {[hascap oh]} { |
| 197 | | -@ html "<a href=''$home/tree?ci=tip''>Files</a>\n" |
| 198 | | -@ } |
| 199 | | -@ if {[hascap o]} { |
| 200 | | -@ html "<a href=''$home/brlist''>Branches</a>\n" |
| 201 | | -@ html "<a href=''$home/taglist''>Tags</a>\n" |
| 202 | | -@ } |
| 203 | | -@ if {[hascap r]} { |
| 204 | | -@ html "<a href=''$home/reportlist''>Tickets</a>\n" |
| 205 | | -@ } |
| 206 | | -@ if {[hascap j]} { |
| 207 | | -@ html "<a href=''$home/wiki''>Wiki</a>\n" |
| 208 | | -@ } |
| 209 | | -@ if {[hascap s]} { |
| 210 | | -@ html "<a href=''$home/setup''>Admin</a>\n" |
| 211 | | -@ } elseif {[hascap a]} { |
| 212 | | -@ html "<a href=''$home/setup_ulist''>Users</a>\n" |
| 213 | | -@ } |
| 214 | | -@ if {[info exists login]} { |
| 215 | | -@ html "<a href=''$home/login''>Logout</a>\n" |
| 216 | | -@ } else { |
| 217 | | -@ html "<a href=''$home/login''>Login</a>\n" |
| 218 | | -@ } |
| 219 | | -@ </th1></div> |
| 220 | | -@ '); |
| 221 | | -@ REPLACE INTO config(name,mtime,value) |
| 222 | | -@ VALUES('footer',now(),'<div class="footer"> |
| 223 | | -@ Fossil version $manifest_version $manifest_date |
| 224 | | -@ </div> |
| 225 | | -@ </body></html> |
| 226 | | -@ '); |
| 227 | | -; |
| 228 | | - |
| 229 | | -/* |
| 230 | | -** A tan theme with the project title above the user identification |
| 231 | | -** and no logo image. |
| 232 | | -*/ |
| 233 | | -static const char zBuiltinSkin2[] = |
| 234 | | -@ REPLACE INTO config(name,mtime,value) |
| 235 | | -@ VALUES('css',now(),'/* General settings for the entire page */ |
| 236 | | -@ body { |
| 237 | | -@ margin: 0ex 0ex; |
| 238 | | -@ padding: 0px; |
| 239 | | -@ background-color: #fef3bc; |
| 240 | | -@ font-family: sans-serif; |
| 241 | | -@ } |
| 242 | | -@ |
| 243 | | -@ /* The project logo in the upper left-hand corner of each page */ |
| 244 | | -@ div.logo { |
| 245 | | -@ display: inline; |
| 246 | | -@ text-align: center; |
| 247 | | -@ vertical-align: bottom; |
| 248 | | -@ font-weight: bold; |
| 249 | | -@ font-size: 2.5em; |
| 250 | | -@ color: #a09048; |
| 251 | | -@ white-space: nowrap; |
| 252 | | -@ } |
| 253 | | -@ |
| 254 | | -@ /* The page title centered at the top of each page */ |
| 255 | | -@ div.title { |
| 256 | | -@ display: table-cell; |
| 257 | | -@ font-size: 2em; |
| 258 | | -@ font-weight: bold; |
| 259 | | -@ text-align: left; |
| 260 | | -@ padding: 0 0 0 5px; |
| 261 | | -@ color: #a09048; |
| 262 | | -@ vertical-align: bottom; |
| 263 | | -@ width: 100%; |
| 264 | | -@ } |
| 265 | | -@ |
| 266 | | -@ /* The login status message in the top right-hand corner */ |
| 267 | | -@ div.status { |
| 268 | | -@ display: table-cell; |
| 269 | | -@ text-align: right; |
| 270 | | -@ vertical-align: bottom; |
| 271 | | -@ color: #a09048; |
| 272 | | -@ padding: 5px 5px 0 0; |
| 273 | | -@ font-size: 0.8em; |
| 274 | | -@ font-weight: bold; |
| 275 | | -@ white-space: nowrap; |
| 276 | | -@ } |
| 277 | | -@ |
| 278 | | -@ /* The header across the top of the page */ |
| 279 | | -@ div.header { |
| 280 | | -@ display: table; |
| 281 | | -@ width: 100%; |
| 282 | | -@ } |
| 283 | | -@ |
| 284 | | -@ /* The main menu bar that appears at the top of the page beneath |
| 285 | | -@ ** the header */ |
| 286 | | -@ div.mainmenu { |
| 287 | | -@ padding: 5px 10px 5px 10px; |
| 288 | | -@ font-size: 0.9em; |
| 289 | | -@ font-weight: bold; |
| 290 | | -@ text-align: center; |
| 291 | | -@ letter-spacing: 1px; |
| 292 | | -@ background-color: #a09048; |
| 293 | | -@ color: black; |
| 294 | | -@ } |
| 295 | | -@ |
| 296 | | -@ /* The submenu bar that *sometimes* appears below the main menu */ |
| 297 | | -@ div.submenu, div.sectionmenu { |
| 298 | | -@ padding: 3px 10px 3px 0px; |
| 299 | | -@ font-size: 0.9em; |
| 300 | | -@ text-align: center; |
| 301 | | -@ background-color: #c0af58; |
| 302 | | -@ color: white; |
| 303 | | -@ } |
| 304 | | -@ div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited, |
| 305 | | -@ div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { |
| 306 | | -@ padding: 3px 10px 3px 10px; |
| 307 | | -@ color: white; |
| 308 | | -@ text-decoration: none; |
| 309 | | -@ } |
| 310 | | -@ div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover { |
| 311 | | -@ color: #a09048; |
| 312 | | -@ background-color: white; |
| 313 | | -@ } |
| 314 | | -@ |
| 315 | | -@ /* All page content from the bottom of the menu or submenu down to |
| 316 | | -@ ** the footer */ |
| 317 | | -@ div.content { |
| 318 | | -@ padding: 1ex 5px; |
| 319 | | -@ } |
| 320 | | -@ div.content a { color: #706532; } |
| 321 | | -@ div.content a:link { color: #706532; } |
| 322 | | -@ div.content a:visited { color: #704032; } |
| 323 | | -@ div.content a:hover { background-color: white; color: #706532; } |
| 324 | | -@ |
| 325 | | -@ /* Some pages have section dividers */ |
| 326 | | -@ div.section { |
| 327 | | -@ margin-bottom: 0px; |
| 328 | | -@ margin-top: 1em; |
| 329 | | -@ padding: 3px 3px 0 3px; |
| 330 | | -@ font-size: 1.2em; |
| 331 | | -@ font-weight: bold; |
| 332 | | -@ background-color: #a09048; |
| 333 | | -@ color: white; |
| 334 | | -@ white-space: nowrap; |
| 335 | | -@ } |
| 336 | | -@ |
| 337 | | -@ /* The "Date" that occurs on the left hand side of timelines */ |
| 338 | | -@ div.divider { |
| 339 | | -@ background: #e1d498; |
| 340 | | -@ border: 2px #a09048 solid; |
| 341 | | -@ font-size: 1em; font-weight: normal; |
| 342 | | -@ padding: .25em; |
| 343 | | -@ margin: .2em 0 .2em 0; |
| 344 | | -@ float: left; |
| 345 | | -@ clear: left; |
| 346 | | -@ white-space: nowrap; |
| 347 | | -@ } |
| 348 | | -@ |
| 349 | | -@ /* The footer at the very bottom of the page */ |
| 350 | | -@ div.footer { |
| 351 | | -@ font-size: 0.8em; |
| 352 | | -@ margin-top: 12px; |
| 353 | | -@ padding: 5px 10px 5px 10px; |
| 354 | | -@ text-align: right; |
| 355 | | -@ background-color: #a09048; |
| 356 | | -@ color: white; |
| 357 | | -@ } |
| 358 | | -@ |
| 359 | | -@ /* Hyperlink colors */ |
| 360 | | -@ div.footer a { color: white; } |
| 361 | | -@ div.footer a:link { color: white; } |
| 362 | | -@ div.footer a:visited { color: white; } |
| 363 | | -@ div.footer a:hover { background-color: white; color: #558195; } |
| 364 | | -@ |
| 365 | | -@ /* <verbatim> blocks */ |
| 366 | | -@ pre.verbatim { |
| 367 | | -@ background-color: #f5f5f5; |
| 368 | | -@ padding: 0.5em; |
| 369 | | -@ white-space: pre-wrap; |
| 370 | | -@ } |
| 371 | | -@ |
| 372 | | -@ /* The label/value pairs on (for example) the ci page */ |
| 373 | | -@ table.label-value th { |
| 374 | | -@ vertical-align: top; |
| 375 | | -@ text-align: right; |
| 376 | | -@ padding: 0.2ex 2ex; |
| 377 | | -@ }'); |
| 378 | | -@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html> |
| 379 | | -@ <head> |
| 380 | | -@ <base href="$baseurl/$current_page" /> |
| 381 | | -@ <title>$<project_name>: $<title></title> |
| 382 | | -@ <link rel="alternate" type="application/rss+xml" title="RSS Feed" |
| 383 | | -@ href="$home/timeline.rss"> |
| 384 | | -@ <link rel="stylesheet" href="$stylesheet_url" type="text/css" |
| 385 | | -@ media="screen"> |
| 386 | | -@ </head> |
| 387 | | -@ <body> |
| 388 | | -@ <div class="header"> |
| 389 | | -@ <div class="title">$<title></div> |
| 390 | | -@ <div class="status"> |
| 391 | | -@ <div class="logo">$<project_name></div><br/> |
| 392 | | -@ <th1> |
| 393 | | -@ if {[info exists login]} { |
| 394 | | -@ puts "Logged in as $login" |
| 395 | | -@ } else { |
| 396 | | -@ puts "Not logged in" |
| 397 | | -@ } |
| 398 | | -@ </th1></div> |
| 399 | | -@ </div> |
| 400 | | -@ <div class="mainmenu"> |
| 401 | | -@ <th1> |
| 402 | | -@ html "<a href=''$home$index_page''>Home</a>\n" |
| 403 | | -@ if {[anycap jor]} { |
| 404 | | -@ html "<a href=''$home/timeline''>Timeline</a>\n" |
| 405 | | -@ } |
| 406 | | -@ if {[hascap oh]} { |
| 407 | | -@ html "<a href=''$home/tree?ci=tip''>Files</a>\n" |
| 408 | | -@ } |
| 409 | | -@ if {[hascap o]} { |
| 410 | | -@ html "<a href=''$home/brlist''>Branches</a>\n" |
| 411 | | -@ html "<a href=''$home/taglist''>Tags</a>\n" |
| 412 | | -@ } |
| 413 | | -@ if {[hascap r]} { |
| 414 | | -@ html "<a href=''$home/reportlist''>Tickets</a>\n" |
| 415 | | -@ } |
| 416 | | -@ if {[hascap j]} { |
| 417 | | -@ html "<a href=''$home/wiki''>Wiki</a>\n" |
| 418 | | -@ } |
| 419 | | -@ if {[hascap s]} { |
| 420 | | -@ html "<a href=''$home/setup''>Admin</a>\n" |
| 421 | | -@ } elseif {[hascap a]} { |
| 422 | | -@ html "<a href=''$home/setup_ulist''>Users</a>\n" |
| 423 | | -@ } |
| 424 | | -@ if {[info exists login]} { |
| 425 | | -@ html "<a href=''$home/login''>Logout</a>\n" |
| 426 | | -@ } else { |
| 427 | | -@ html "<a href=''$home/login''>Login</a>\n" |
| 428 | | -@ } |
| 429 | | -@ </th1></div> |
| 430 | | -@ '); |
| 431 | | -@ REPLACE INTO config(name,mtime,value) |
| 432 | | -@ VALUES('footer',now(),'<div class="footer"> |
| 433 | | -@ Fossil version $manifest_version $manifest_date |
| 434 | | -@ </div> |
| 435 | | -@ </body></html> |
| 436 | | -@ '); |
| 437 | | -; |
| 438 | | - |
| 439 | | -/* |
| 440 | | -** Black letters on a white or cream background with the main menu |
| 441 | | -** stuck on the left-hand side. |
| 442 | | -*/ |
| 443 | | -static const char zBuiltinSkin3[] = |
| 444 | | -@ REPLACE INTO config(name,mtime,value) |
| 445 | | -@ VALUES('css',now(),'/* General settings for the entire page */ |
| 446 | | -@ body { |
| 447 | | -@ margin:0px 0px 0px 0px; |
| 448 | | -@ padding:0px; |
| 449 | | -@ font-family:verdana, arial, helvetica, "sans serif"; |
| 450 | | -@ color:#333; |
| 451 | | -@ background-color:white; |
| 452 | | -@ } |
| 453 | | -@ |
| 454 | | -@ /* consistent colours */ |
| 455 | | -@ h2 { |
| 456 | | -@ color: #333; |
| 457 | | -@ } |
| 458 | | -@ h3 { |
| 459 | | -@ color: #333; |
| 460 | | -@ } |
| 461 | | -@ |
| 462 | | -@ /* The project logo in the upper left-hand corner of each page */ |
| 463 | | -@ div.logo { |
| 464 | | -@ display: table-cell; |
| 465 | | -@ text-align: left; |
| 466 | | -@ vertical-align: bottom; |
| 467 | | -@ font-weight: bold; |
| 468 | | -@ color: #333; |
| 469 | | -@ white-space: nowrap; |
| 470 | | -@ } |
| 471 | | -@ |
| 472 | | -@ /* The page title centered at the top of each page */ |
| 473 | | -@ div.title { |
| 474 | | -@ display: table-cell; |
| 475 | | -@ font-size: 2em; |
| 476 | | -@ font-weight: bold; |
| 477 | | -@ text-align: center; |
| 478 | | -@ color: #333; |
| 479 | | -@ vertical-align: bottom; |
| 480 | | -@ width: 100%; |
| 481 | | -@ } |
| 482 | | -@ |
| 483 | | -@ /* The login status message in the top right-hand corner */ |
| 484 | | -@ div.status { |
| 485 | | -@ display: table-cell; |
| 486 | | -@ padding-right: 10px; |
| 487 | | -@ text-align: right; |
| 488 | | -@ vertical-align: bottom; |
| 489 | | -@ padding-bottom: 5px; |
| 490 | | -@ color: #333; |
| 491 | | -@ font-size: 0.8em; |
| 492 | | -@ font-weight: bold; |
| 493 | | -@ white-space: nowrap; |
| 494 | | -@ } |
| 495 | | -@ |
| 496 | | -@ /* The header across the top of the page */ |
| 497 | | -@ div.header { |
| 498 | | -@ margin:10px 0px 10px 0px; |
| 499 | | -@ padding:1px 0px 0px 20px; |
| 500 | | -@ border-style:solid; |
| 501 | | -@ border-color:black; |
| 502 | | -@ border-width:1px 0px; |
| 503 | | -@ background-color:#eee; |
| 504 | | -@ } |
| 505 | | -@ |
| 506 | | -@ /* The main menu bar that appears at the top left of the page beneath |
| 507 | | -@ ** the header. Width must be co-ordinated with the container below */ |
| 508 | | -@ div.mainmenu { |
| 509 | | -@ float: left; |
| 510 | | -@ margin-left: 10px; |
| 511 | | -@ margin-right: 10px; |
| 512 | | -@ font-size: 0.9em; |
| 513 | | -@ font-weight: bold; |
| 514 | | -@ padding:5px; |
| 515 | | -@ background-color:#eee; |
| 516 | | -@ border:1px solid #999; |
| 517 | | -@ width:8em; |
| 518 | | -@ } |
| 519 | | -@ |
| 520 | | -@ /* Main menu is now a list */ |
| 521 | | -@ div.mainmenu ul { |
| 522 | | -@ padding: 0; |
| 523 | | -@ list-style:none; |
| 524 | | -@ } |
| 525 | | -@ div.mainmenu a, div.mainmenu a:visited{ |
| 526 | | -@ padding: 1px 10px 1px 10px; |
| 527 | | -@ color: #333; |
| 528 | | -@ text-decoration: none; |
| 529 | | -@ } |
| 530 | | -@ div.mainmenu a:hover { |
| 531 | | -@ color: #eee; |
| 532 | | -@ background-color: #333; |
| 533 | | -@ } |
| 534 | | -@ |
| 535 | | -@ /* Container for the sub-menu and content so they don''t spread |
| 536 | | -@ ** out underneath the main menu */ |
| 537 | | -@ #container { |
| 538 | | -@ padding-left: 9em; |
| 539 | | -@ } |
| 540 | | -@ |
| 541 | | -@ /* The submenu bar that *sometimes* appears below the main menu */ |
| 542 | | -@ div.submenu, div.sectionmenu { |
| 543 | | -@ padding: 3px 10px 3px 10px; |
| 544 | | -@ font-size: 0.9em; |
| 545 | | -@ text-align: center; |
| 546 | | -@ border:1px solid #999; |
| 547 | | -@ border-width:1px 0px; |
| 548 | | -@ background-color: #eee; |
| 549 | | -@ color: #333; |
| 550 | | -@ } |
| 551 | | -@ div.submenu a, div.submenu a:visited, div.sectionmenu>a.button:link, |
| 552 | | -@ div.sectionmenu>a.button:visited { |
| 553 | | -@ padding: 3px 10px 3px 10px; |
| 554 | | -@ color: #333; |
| 555 | | -@ text-decoration: none; |
| 556 | | -@ } |
| 557 | | -@ div.submenu a:hover, div.sectionmenu>a.button:hover { |
| 558 | | -@ color: #eee; |
| 559 | | -@ background-color: #333; |
| 560 | | -@ } |
| 561 | | -@ |
| 562 | | -@ /* All page content from the bottom of the menu or submenu down to |
| 563 | | -@ ** the footer */ |
| 564 | | -@ div.content { |
| 565 | | -@ padding: 2ex 1ex 0ex 2ex; |
| 566 | | -@ } |
| 567 | | -@ |
| 568 | | -@ /* Some pages have section dividers */ |
| 569 | | -@ div.section { |
| 570 | | -@ margin-bottom: 0px; |
| 571 | | -@ margin-top: 1em; |
| 572 | | -@ padding: 1px 1px 1px 1px; |
| 573 | | -@ font-size: 1.2em; |
| 574 | | -@ font-weight: bold; |
| 575 | | -@ border-style:solid; |
| 576 | | -@ border-color:#999; |
| 577 | | -@ border-width:1px 0px; |
| 578 | | -@ background-color: #eee; |
| 579 | | -@ color: #333; |
| 580 | | -@ white-space: nowrap; |
| 581 | | -@ } |
| 582 | | -@ |
| 583 | | -@ /* The "Date" that occurs on the left hand side of timelines */ |
| 584 | | -@ div.divider { |
| 585 | | -@ background: #eee; |
| 586 | | -@ border: 2px #999 solid; |
| 587 | | -@ font-size: 1em; font-weight: normal; |
| 588 | | -@ padding: .25em; |
| 589 | | -@ margin: .2em 0 .2em 0; |
| 590 | | -@ float: left; |
| 591 | | -@ clear: left; |
| 592 | | -@ color: #333; |
| 593 | | -@ white-space: nowrap; |
| 594 | | -@ } |
| 595 | | -@ |
| 596 | | -@ /* The footer at the very bottom of the page */ |
| 597 | | -@ div.footer { |
| 598 | | -@ font-size: 0.8em; |
| 599 | | -@ margin-top: 12px; |
| 600 | | -@ padding: 5px 10px 5px 10px; |
| 601 | | -@ text-align: right; |
| 602 | | -@ background-color: #eee; |
| 603 | | -@ color: #555; |
| 604 | | -@ } |
| 605 | | -@ |
| 606 | | -@ /* <verbatim> blocks */ |
| 607 | | -@ pre.verbatim { |
| 608 | | -@ background-color: #f5f5f5; |
| 609 | | -@ padding: 0.5em; |
| 610 | | -@ white-space: pre-wrap; |
| 611 | | -@ } |
| 612 | | -@ |
| 613 | | -@ /* The label/value pairs on (for example) the ci page */ |
| 614 | | -@ table.label-value th { |
| 615 | | -@ vertical-align: top; |
| 616 | | -@ text-align: right; |
| 617 | | -@ padding: 0.2ex 2ex; |
| 618 | | -@ }'); |
| 619 | | -@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html> |
| 620 | | -@ <head> |
| 621 | | -@ <base href="$baseurl/$current_page" /> |
| 622 | | -@ <title>$<project_name>: $<title></title> |
| 623 | | -@ <link rel="alternate" type="application/rss+xml" title="RSS Feed" |
| 624 | | -@ href="$home/timeline.rss"> |
| 625 | | -@ <link rel="stylesheet" href="$stylesheet_url" type="text/css" |
| 626 | | -@ media="screen"> |
| 627 | | -@ </head> |
| 628 | | -@ <body> |
| 629 | | -@ <div class="header"> |
| 630 | | -@ <div class="logo"> |
| 631 | | -@ <img src="$logo_image_url" alt="logo"> |
| 632 | | -@ <br />$<project_name> |
| 633 | | -@ </div> |
| 634 | | -@ <div class="title">$<title></div> |
| 635 | | -@ <div class="status"><th1> |
| 636 | | -@ if {[info exists login]} { |
| 637 | | -@ puts "Logged in as $login" |
| 638 | | -@ } else { |
| 639 | | -@ puts "Not logged in" |
| 640 | | -@ } |
| 641 | | -@ </th1></div> |
| 642 | | -@ </div> |
| 643 | | -@ <div class="mainmenu"> |
| 644 | | -@ <th1> |
| 645 | | -@ html "<a href=''$home$index_page''>Home</a>\n" |
| 646 | | -@ if {[anycap jor]} { |
| 647 | | -@ html "<a href=''$home/timeline''>Timeline</a>\n" |
| 648 | | -@ } |
| 649 | | -@ if {[hascap oh]} { |
| 650 | | -@ html "<a href=''$home/tree?ci=tip''>Files</a>\n" |
| 651 | | -@ } |
| 652 | | -@ if {[hascap o]} { |
| 653 | | -@ html "<a href=''$home/brlist''>Branches</a>\n" |
| 654 | | -@ html "<a href=''$home/taglist''>Tags</a>\n" |
| 655 | | -@ } |
| 656 | | -@ if {[hascap r]} { |
| 657 | | -@ html "<a href=''$home/reportlist''>Tickets</a>\n" |
| 658 | | -@ } |
| 659 | | -@ if {[hascap j]} { |
| 660 | | -@ html "<a href=''$home/wiki''>Wiki</a>\n" |
| 661 | | -@ } |
| 662 | | -@ if {[hascap s]} { |
| 663 | | -@ html "<a href=''$home/setup''>Admin</a>\n" |
| 664 | | -@ } elseif {[hascap a]} { |
| 665 | | -@ html "<a href=''$home/setup_ulist''>Users</a>\n" |
| 666 | | -@ } |
| 667 | | -@ if {[info exists login]} { |
| 668 | | -@ html "<a href=''$home/login''>Logout</a>\n" |
| 669 | | -@ } else { |
| 670 | | -@ html "<a href=''$home/login''>Login</a>\n" |
| 671 | | -@ } |
| 672 | | -@ </th1></ul></div> |
| 673 | | -@ <div id="container"> |
| 674 | | -@ '); |
| 675 | | -@ REPLACE INTO config(name,mtime,value) VALUES('footer',now(),'</div> |
| 676 | | -@ <div class="footer"> |
| 677 | | -@ Fossil version $manifest_version $manifest_date |
| 678 | | -@ </div> |
| 679 | | -@ </body></html> |
| 680 | | -@ '); |
| 681 | | -; |
| 682 | | - |
| 683 | | - |
| 684 | | -/* |
| 685 | | -** Shadow boxes and rounded corners. |
| 686 | | -*/ |
| 687 | | -static const char zBuiltinSkin4[] = |
| 688 | | -@ REPLACE INTO config(name,mtime,value) |
| 689 | | -@ VALUES('css',now(),'/* General settings for the entire page */ |
| 690 | | -@ html { |
| 691 | | -@ min-height: 100%; |
| 692 | | -@ } |
| 693 | | -@ body { |
| 694 | | -@ margin: 0ex 1ex; |
| 695 | | -@ padding: 0px; |
| 696 | | -@ background-color: white; |
| 697 | | -@ color: #333; |
| 698 | | -@ font-family: Verdana, sans-serif; |
| 699 | | -@ font-size: 0.8em; |
| 700 | | -@ } |
| 701 | | -@ |
| 702 | | -@ /* The project logo in the upper left-hand corner of each page */ |
| 703 | | -@ div.logo { |
| 704 | | -@ display: table-cell; |
| 705 | | -@ text-align: right; |
| 706 | | -@ vertical-align: bottom; |
| 707 | | -@ font-weight: normal; |
| 708 | | -@ white-space: nowrap; |
| 709 | | -@ } |
| 710 | | -@ |
| 711 | | -@ /* Widths */ |
| 712 | | -@ div.header, div.mainmenu, div.submenu, div.content, div.footer { |
| 713 | | -@ max-width: 900px; |
| 714 | | -@ margin: auto; |
| 715 | | -@ padding: 3px 20px 3px 20px; |
| 716 | | -@ clear: both; |
| 717 | | -@ } |
| 718 | | -@ |
| 719 | | -@ /* The page title at the top of each page */ |
| 720 | | -@ div.title { |
| 721 | | -@ display: table-cell; |
| 722 | | -@ padding-left: 10px; |
| 723 | | -@ font-size: 2em; |
| 724 | | -@ margin: 10px 0 10px -20px; |
| 725 | | -@ vertical-align: bottom; |
| 726 | | -@ text-align: left; |
| 727 | | -@ width: 80%; |
| 728 | | -@ font-family: Verdana, sans-serif; |
| 729 | | -@ font-weight: bold; |
| 730 | | -@ color: #558195; |
| 731 | | -@ text-shadow: 0px 2px 2px #999999; |
| 732 | | -@ } |
| 733 | | -@ |
| 734 | | -@ /* The login status message in the top right-hand corner */ |
| 735 | | -@ div.status { |
| 736 | | -@ display: table-cell; |
| 737 | | -@ text-align: right; |
| 738 | | -@ vertical-align: bottom; |
| 739 | | -@ color: #333; |
| 740 | | -@ margin-right: -20px; |
| 741 | | -@ white-space: nowrap; |
| 742 | | -@ } |
| 743 | | -@ |
| 744 | | -@ /* The main menu bar that appears at the top of the page beneath |
| 745 | | -@ ** the header */ |
| 746 | | -@ div.mainmenu { |
| 747 | | -@ text-align: center; |
| 748 | | -@ color: white; |
| 749 | | -@ border-top-left-radius: 5px; |
| 750 | | -@ border-top-right-radius: 5px; |
| 751 | | -@ vertical-align: middle; |
| 752 | | -@ padding-top: 8px; |
| 753 | | -@ padding-bottom: 8px; |
| 754 | | -@ background-color: #446979; |
| 755 | | -@ box-shadow: 0px 3px 4px #333333; |
| 756 | | -@ } |
| 757 | | -@ |
| 758 | | -@ /* The submenu bar that *sometimes* appears below the main menu */ |
| 759 | | -@ div.submenu { |
| 760 | | -@ padding-top:10px; |
| 761 | | -@ padding-bottom:0; |
| 762 | | -@ text-align: right; |
| 763 | | -@ color: #000; |
| 764 | | -@ background-color: #fff; |
| 765 | | -@ height: 1.5em; |
| 766 | | -@ vertical-align:middle; |
| 767 | | -@ box-shadow: 0px 3px 4px #999; |
| 768 | | -@ } |
| 769 | | -@ div.mainmenu a, div.mainmenu a:visited { |
| 770 | | -@ padding: 3px 10px 3px 10px; |
| 771 | | -@ color: white; |
| 772 | | -@ text-decoration: none; |
| 773 | | -@ } |
| 774 | | -@ div.submenu a, div.submenu a:visited, a.button, |
| 775 | | -@ div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { |
| 776 | | -@ padding: 2px 8px; |
| 777 | | -@ color: #000; |
| 778 | | -@ font-family: Arial; |
| 779 | | -@ text-decoration: none; |
| 780 | | -@ margin:auto; |
| 781 | | -@ border-radius: 5px; |
| 782 | | -@ background-color: #e0e0e0; |
| 783 | | -@ text-shadow: 0px -1px 0px #eee; |
| 784 | | -@ border: 1px solid #000; |
| 785 | | -@ } |
| 786 | | -@ |
| 787 | | -@ div.mainmenu a:hover { |
| 788 | | -@ color: #000; |
| 789 | | -@ background-color: white; |
| 790 | | -@ } |
| 791 | | -@ |
| 792 | | -@ div.submenu a:hover, div.sectionmenu>a.button:hover { |
| 793 | | -@ background-color: #c0c0c0; |
| 794 | | -@ } |
| 795 | | -@ |
| 796 | | -@ /* All page content from the bottom of the menu or submenu down to |
| 797 | | -@ ** the footer */ |
| 798 | | -@ div.content { |
| 799 | | -@ background-color: #fff; |
| 800 | | -@ box-shadow: 0px 3px 4px #999; |
| 801 | | -@ border-bottom-right-radius: 5px; |
| 802 | | -@ border-bottom-left-radius: 5px; |
| 803 | | -@ padding-bottom: 1em; |
| 804 | | -@ min-height:40%; |
| 805 | | -@ } |
| 806 | | -@ |
| 807 | | -@ |
| 808 | | -@ /* Some pages have section dividers */ |
| 809 | | -@ div.section { |
| 810 | | -@ margin-bottom: 0.5em; |
| 811 | | -@ margin-top: 1em; |
| 812 | | -@ margin-right: auto; |
| 813 | | -@ padding: 1px 1px 1px 1px; |
| 814 | | -@ font-size: 1.2em; |
| 815 | | -@ font-weight: bold; |
| 816 | | -@ text-align: center; |
| 817 | | -@ color: white; |
| 818 | | -@ border-radius: 5px; |
| 819 | | -@ background-color: #446979; |
| 820 | | -@ box-shadow: 0px 3px 4px #333333; |
| 821 | | -@ white-space: nowrap; |
| 822 | | -@ } |
| 823 | | -@ |
| 824 | | -@ /* The "Date" that occurs on the left hand side of timelines */ |
| 825 | | -@ div.divider { |
| 826 | | -@ font-size: 1.2em; |
| 827 | | -@ font-family: Georgia, serif; |
| 828 | | -@ font-weight: bold; |
| 829 | | -@ margin-top: 1em; |
| 830 | | -@ white-space: nowrap; |
| 831 | | -@ } |
| 832 | | -@ |
| 833 | | -@ /* The footer at the very bottom of the page */ |
| 834 | | -@ div.footer { |
| 835 | | -@ font-size: 0.9em; |
| 836 | | -@ text-align: right; |
| 837 | | -@ margin-bottom: 1em; |
| 838 | | -@ color: #666; |
| 839 | | -@ } |
| 840 | | -@ |
| 841 | | -@ /* Hyperlink colors in the footer */ |
| 842 | | -@ div.footer a { color: white; } |
| 843 | | -@ div.footer a:link { color: white; } |
| 844 | | -@ div.footer a:visited { color: white; } |
| 845 | | -@ div.footer a:hover { background-color: white; color: #558195; } |
| 846 | | -@ |
| 847 | | -@ /* <verbatim> blocks */ |
| 848 | | -@ pre.verbatim, blockquote pre { |
| 849 | | -@ font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace; |
| 850 | | -@ background-color: #f3f3f3; |
| 851 | | -@ padding: 0.5em; |
| 852 | | -@ white-space: pre-wrap; |
| 853 | | -@ } |
| 854 | | -@ |
| 855 | | -@ blockquote pre { |
| 856 | | -@ border: 1px #000 dashed; |
| 857 | | -@ } |
| 858 | | -@ |
| 859 | | -@ /* The label/value pairs on (for example) the ci page */ |
| 860 | | -@ table.label-value th { |
| 861 | | -@ vertical-align: top; |
| 862 | | -@ text-align: right; |
| 863 | | -@ padding: 0.2ex 2ex; |
| 864 | | -@ } |
| 865 | | -@ |
| 866 | | -@ table.report tr th { |
| 867 | | -@ padding: 3px 5px; |
| 868 | | -@ text-transform: capitalize; |
| 869 | | -@ cursor: pointer; |
| 870 | | -@ } |
| 871 | | -@ |
| 872 | | -@ table.report tr td { |
| 873 | | -@ padding: 3px 5px; |
| 874 | | -@ cursor: pointer; |
| 875 | | -@ } |
| 876 | | -@ |
| 877 | | -@ textarea { |
| 878 | | -@ font-size: 1em; |
| 879 | | -@ } |
| 880 | | -@ |
| 881 | | -@ .fullsize-text { |
| 882 | | -@ font-size: 1.25em; |
| 883 | | -@ }'); |
| 884 | | -@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html> |
| 885 | | -@ <head> |
| 886 | | -@ <base href="$baseurl/$current_page" /> |
| 887 | | -@ <title>$<project_name>: $<title></title> |
| 888 | | -@ <link rel="alternate" type="application/rss+xml" title="RSS Feed" |
| 889 | | -@ href="$home/timeline.rss"> |
| 890 | | -@ <link rel="stylesheet" href="$stylesheet_url" type="text/css" |
| 891 | | -@ media="screen"> |
| 892 | | -@ </head> |
| 893 | | -@ <body> |
| 894 | | -@ <div class="header"> |
| 895 | | -@ <div class="logo"> |
| 896 | | -@ <img src="$logo_image_url" alt="logo"> |
| 897 | | -@ <br />$<project_name> |
| 898 | | -@ </div> |
| 899 | | -@ <div class="title">$<title></div> |
| 900 | | -@ <div class="status"><th1> |
| 901 | | -@ if {[info exists login]} { |
| 902 | | -@ puts "Logged in as $login" |
| 903 | | -@ } else { |
| 904 | | -@ puts "Not logged in" |
| 905 | | -@ } |
| 906 | | -@ </th1></div> |
| 907 | | -@ </div> |
| 908 | | -@ <div class="mainmenu"> |
| 909 | | -@ <th1> |
| 910 | | -@ html "<a href=''$home$index_page''>Home</a>\n" |
| 911 | | -@ if {[anycap jor]} { |
| 912 | | -@ html "<a href=''$home/timeline''>Timeline</a>\n" |
| 913 | | -@ } |
| 914 | | -@ if {[hascap oh]} { |
| 915 | | -@ html "<a href=''$home/tree?ci=tip''>Files</a>\n" |
| 916 | | -@ } |
| 917 | | -@ if {[hascap o]} { |
| 918 | | -@ html "<a href=''$home/brlist''>Branches</a>\n" |
| 919 | | -@ html "<a href=''$home/taglist''>Tags</a>\n" |
| 920 | | -@ } |
| 921 | | -@ if {[hascap r]} { |
| 922 | | -@ html "<a href=''$home/reportlist''>Tickets</a>\n" |
| 923 | | -@ } |
| 924 | | -@ if {[hascap j]} { |
| 925 | | -@ html "<a href=''$home/wiki''>Wiki</a>\n" |
| 926 | | -@ } |
| 927 | | -@ if {[hascap s]} { |
| 928 | | -@ html "<a href=''$home/setup''>Admin</a>\n" |
| 929 | | -@ } elseif {[hascap a]} { |
| 930 | | -@ html "<a href=''$home/setup_ulist''>Users</a>\n" |
| 931 | | -@ } |
| 932 | | -@ if {[info exists login]} { |
| 933 | | -@ html "<a href=''$home/login''>Logout</a>\n" |
| 934 | | -@ } else { |
| 935 | | -@ html "<a href=''$home/login''>Login</a>\n" |
| 936 | | -@ } |
| 937 | | -@ </th1></div> |
| 938 | | -@ <div id="container"> |
| 939 | | -@ '); |
| 940 | | -@ REPLACE INTO config(name,mtime,value) VALUES('footer',now(),'</div> |
| 941 | | -@ <div class="footer"> |
| 942 | | -@ Fossil version $manifest_version $manifest_date |
| 943 | | -@ </div> |
| 944 | | -@ </body></html> |
| 945 | | -@ '); |
| 946 | | -; |
| 947 | | - |
| 948 | | - |
| 949 | | -/* |
| 950 | | -** This skin is intended to be almost identical to the default one, with the |
| 951 | | -** following changes to the header and footer: |
| 952 | | -** |
| 953 | | -** 1. The logo image in the header has been modified to be a hyperlink to the |
| 954 | | -** root of the web site containing the repository using the same scheme |
| 955 | | -** (i.e. HTTP or HTTPS) as the base URL for the repository. The header |
| 956 | | -** contains a TH1 script block to help accomplish these tasks. |
| 957 | | -** |
| 958 | | -** 2. The Fossil version information in the footer has been augmented with |
| 959 | | -** hyperlinks to the corresponding points on the timeline in the official |
| 960 | | -** Fossil repository. Additionally, if the Tcl integration feature is |
| 961 | | -** enabled, the loaded version of Tcl is included, with a hyperlink to the |
| 962 | | -** official Tcl/Tk web site. The footer also contains a TH1 script block |
| 963 | | -** to help accomplish these tasks. |
| 964 | | -*/ |
| 965 | | -static const char zBuiltinSkin5[] = |
| 966 | | -@ REPLACE INTO config(name,mtime,value) |
| 967 | | -@ VALUES('css',now(),'/* General settings for the entire page */ |
| 968 | | -@ body { |
| 969 | | -@ margin: 0ex 1ex; |
| 970 | | -@ padding: 0px; |
| 971 | | -@ background-color: white; |
| 972 | | -@ font-family: sans-serif; |
| 973 | | -@ } |
| 974 | | -@ |
| 975 | | -@ /* The project logo in the upper left-hand corner of each page */ |
| 976 | | -@ div.logo { |
| 977 | | -@ display: table-cell; |
| 978 | | -@ text-align: center; |
| 979 | | -@ vertical-align: bottom; |
| 980 | | -@ font-weight: bold; |
| 981 | | -@ color: #558195; |
| 982 | | -@ min-width: 200px; |
| 983 | | -@ white-space: nowrap; |
| 984 | | -@ } |
| 985 | | -@ |
| 986 | | -@ /* The page title centered at the top of each page */ |
| 987 | | -@ div.title { |
| 988 | | -@ display: table-cell; |
| 989 | | -@ font-size: 2em; |
| 990 | | -@ font-weight: bold; |
| 991 | | -@ text-align: center; |
| 992 | | -@ padding: 0 0 0 1em; |
| 993 | | -@ color: #558195; |
| 994 | | -@ vertical-align: bottom; |
| 995 | | -@ width: 100%; |
| 996 | | -@ } |
| 997 | | -@ |
| 998 | | -@ /* The login status message in the top right-hand corner */ |
| 999 | | -@ div.status { |
| 1000 | | -@ display: table-cell; |
| 1001 | | -@ text-align: right; |
| 1002 | | -@ vertical-align: bottom; |
| 1003 | | -@ color: #558195; |
| 1004 | | -@ font-size: 0.8em; |
| 1005 | | -@ font-weight: bold; |
| 1006 | | -@ min-width: 200px; |
| 1007 | | -@ white-space: nowrap; |
| 1008 | | -@ } |
| 1009 | | -@ |
| 1010 | | -@ /* The header across the top of the page */ |
| 1011 | | -@ div.header { |
| 1012 | | -@ display: table; |
| 1013 | | -@ width: 100%; |
| 1014 | | -@ } |
| 1015 | | -@ |
| 1016 | | -@ /* The main menu bar that appears at the top of the page beneath |
| 1017 | | -@ ** the header */ |
| 1018 | | -@ div.mainmenu { |
| 1019 | | -@ padding: 5px 10px 5px 10px; |
| 1020 | | -@ font-size: 0.9em; |
| 1021 | | -@ font-weight: bold; |
| 1022 | | -@ text-align: center; |
| 1023 | | -@ letter-spacing: 1px; |
| 1024 | | -@ background-color: #558195; |
| 1025 | | -@ border-top-left-radius: 8px; |
| 1026 | | -@ border-top-right-radius: 8px; |
| 1027 | | -@ color: white; |
| 1028 | | -@ } |
| 1029 | | -@ |
| 1030 | | -@ /* The submenu bar that *sometimes* appears below the main menu */ |
| 1031 | | -@ div.submenu, div.sectionmenu { |
| 1032 | | -@ padding: 3px 10px 3px 0px; |
| 1033 | | -@ font-size: 0.9em; |
| 1034 | | -@ text-align: center; |
| 1035 | | -@ background-color: #456878; |
| 1036 | | -@ color: white; |
| 1037 | | -@ } |
| 1038 | | -@ div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited, |
| 1039 | | -@ div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited { |
| 1040 | | -@ padding: 3px 10px 3px 10px; |
| 1041 | | -@ color: white; |
| 1042 | | -@ text-decoration: none; |
| 1043 | | -@ } |
| 1044 | | -@ div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover { |
| 1045 | | -@ color: #558195; |
| 1046 | | -@ background-color: white; |
| 1047 | | -@ } |
| 1048 | | -@ |
| 1049 | | -@ /* All page content from the bottom of the menu or submenu down to |
| 1050 | | -@ ** the footer */ |
| 1051 | | -@ div.content { |
| 1052 | | -@ padding: 0ex 1ex 1ex 1ex; |
| 1053 | | -@ border: solid #aaa; |
| 1054 | | -@ border-width: 1px; |
| 1055 | | -@ } |
| 1056 | | -@ |
| 1057 | | -@ /* Some pages have section dividers */ |
| 1058 | | -@ div.section { |
| 1059 | | -@ margin-bottom: 0px; |
| 1060 | | -@ margin-top: 1em; |
| 1061 | | -@ padding: 1px 1px 1px 1px; |
| 1062 | | -@ font-size: 1.2em; |
| 1063 | | -@ font-weight: bold; |
| 1064 | | -@ background-color: #558195; |
| 1065 | | -@ color: white; |
| 1066 | | -@ white-space: nowrap; |
| 1067 | | -@ } |
| 1068 | | -@ |
| 1069 | | -@ /* The "Date" that occurs on the left hand side of timelines */ |
| 1070 | | -@ div.divider { |
| 1071 | | -@ background: #a1c4d4; |
| 1072 | | -@ border: 2px #558195 solid; |
| 1073 | | -@ font-size: 1em; font-weight: normal; |
| 1074 | | -@ padding: .25em; |
| 1075 | | -@ margin: .2em 0 .2em 0; |
| 1076 | | -@ float: left; |
| 1077 | | -@ clear: left; |
| 1078 | | -@ white-space: nowrap; |
| 1079 | | -@ } |
| 1080 | | -@ |
| 1081 | | -@ /* The footer at the very bottom of the page */ |
| 1082 | | -@ div.footer { |
| 1083 | | -@ clear: both; |
| 1084 | | -@ font-size: 0.8em; |
| 1085 | | -@ padding: 5px 10px 5px 10px; |
| 1086 | | -@ text-align: right; |
| 1087 | | -@ background-color: #558195; |
| 1088 | | -@ border-bottom-left-radius: 8px; |
| 1089 | | -@ border-bottom-right-radius: 8px; |
| 1090 | | -@ color: white; |
| 1091 | | -@ } |
| 1092 | | -@ |
| 1093 | | -@ /* Hyperlink colors in the footer */ |
| 1094 | | -@ div.footer a { color: white; } |
| 1095 | | -@ div.footer a:link { color: white; } |
| 1096 | | -@ div.footer a:visited { color: white; } |
| 1097 | | -@ div.footer a:hover { background-color: white; color: #558195; } |
| 1098 | | -@ |
| 1099 | | -@ /* verbatim blocks */ |
| 1100 | | -@ pre.verbatim { |
| 1101 | | -@ background-color: #f5f5f5; |
| 1102 | | -@ padding: 0.5em; |
| 1103 | | -@ white-space: pre-wrap; |
| 1104 | | -@ } |
| 1105 | | -@ |
| 1106 | | -@ /* The label/value pairs on (for example) the ci page */ |
| 1107 | | -@ table.label-value th { |
| 1108 | | -@ vertical-align: top; |
| 1109 | | -@ text-align: right; |
| 1110 | | -@ padding: 0.2ex 2ex; |
| 1111 | | -@ }'); |
| 1112 | | -@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html> |
| 1113 | | -@ <head> |
| 1114 | | -@ <base href="$baseurl/$current_page" /> |
| 1115 | | -@ <title>$<project_name>: $<title></title> |
| 1116 | | -@ <link rel="alternate" type="application/rss+xml" title="RSS Feed" |
| 1117 | | -@ href="$home/timeline.rss" /> |
| 1118 | | -@ <link rel="stylesheet" href="$stylesheet_url" type="text/css" |
| 1119 | | -@ media="screen" /> |
| 1120 | | -@ </head> |
| 1121 | | -@ <body> |
| 1122 | | -@ <div class="header"> |
| 1123 | | -@ <div class="logo"> |
| 1124 | | -@ <th1> |
| 1125 | | -@ ## |
| 1126 | | -@ ## NOTE: The purpose of this procedure is to take the base URL of the |
| 1127 | | -@ ## Fossil project and return the root of the entire web site using |
| 1128 | | -@ ## the same URI scheme as the base URL (e.g. http or https). |
| 1129 | | -@ ## |
| 1130 | | -@ proc getLogoUrl { baseurl } { |
| 1131 | | -@ set idx(first) [string first // $baseurl] |
| 1132 | | -@ if {$idx(first) != -1} { |
| 1133 | | -@ ## |
| 1134 | | -@ ## NOTE: Skip second slash. |
| 1135 | | -@ ## |
| 1136 | | -@ set idx(first+1) [expr {$idx(first) + 2}] |
| 1137 | | -@ ## |
| 1138 | | -@ ## NOTE: (part 1) The [string first] command does NOT actually |
| 1139 | | -@ ## the optional startIndex argument as specified in the |
| 1140 | | -@ ## TH1 support manual; therefore, we fake it by using the |
| 1141 | | -@ ## [string range] command and then adding the necessary |
| 1142 | | -@ ## offset to the resulting index manually (below). In Tcl, |
| 1143 | | -@ ## we could use the following instead: |
| 1144 | | -@ ## |
| 1145 | | -@ ## set idx(next) [string first / $baseurl $idx(first+1)] |
| 1146 | | -@ ## |
| 1147 | | -@ set idx(nextRange) [string range $baseurl $idx(first+1) end] |
| 1148 | | -@ set idx(next) [string first / $idx(nextRange)] |
| 1149 | | -@ if {$idx(next) != -1} { |
| 1150 | | -@ ## |
| 1151 | | -@ ## NOTE: (part 2) Add the necessary offset to the result of the |
| 1152 | | -@ ## search for the next slash (i.e. the one after the initial |
| 1153 | | -@ ## search for the two slashes). |
| 1154 | | -@ ## |
| 1155 | | -@ set idx(next) [expr {$idx(next) + $idx(first+1)}] |
| 1156 | | -@ ## |
| 1157 | | -@ ## NOTE: Back up one character from the next slash. |
| 1158 | | -@ ## |
| 1159 | | -@ set idx(next-1) [expr {$idx(next) - 1}] |
| 1160 | | -@ ## |
| 1161 | | -@ ## NOTE: Extract the URI scheme and host from the base URL. |
| 1162 | | -@ ## |
| 1163 | | -@ set scheme [string range $baseurl 0 $idx(first)] |
| 1164 | | -@ set host [string range $baseurl $idx(first+1) $idx(next-1)] |
| 1165 | | -@ ## |
| 1166 | | -@ ## NOTE: Try to stay in SSL mode if we are there now. |
| 1167 | | -@ ## |
| 1168 | | -@ if {[string compare $scheme http:/] == 0} { |
| 1169 | | -@ set scheme http:// |
| 1170 | | -@ } else { |
| 1171 | | -@ set scheme https:// |
| 1172 | | -@ } |
| 1173 | | -@ set logourl $scheme$host/ |
| 1174 | | -@ } else { |
| 1175 | | -@ set logourl $baseurl |
| 1176 | | -@ } |
| 1177 | | -@ } else { |
| 1178 | | -@ set logourl $baseurl |
| 1179 | | -@ } |
| 1180 | | -@ return $logourl |
| 1181 | | -@ } |
| 1182 | | -@ set logourl [getLogoUrl $baseurl] |
| 1183 | | -@ </th1> |
| 1184 | | -@ <a href="$logourl"> |
| 1185 | | -@ <img src="$logo_image_url" border="0" alt="$project_name"> |
| 1186 | | -@ </a> |
| 1187 | | -@ </div> |
| 1188 | | -@ <div class="title"><small>$<project_name></small><br />$<title></div> |
| 1189 | | -@ <div class="status"><th1> |
| 1190 | | -@ if {[info exists login]} { |
| 1191 | | -@ puts "Logged in as $login" |
| 1192 | | -@ } else { |
| 1193 | | -@ puts "Not logged in" |
| 1194 | | -@ } |
| 1195 | | -@ </th1></div> |
| 1196 | | -@ </div> |
| 1197 | | -@ <div class="mainmenu"> |
| 1198 | | -@ <th1> |
| 1199 | | -@ html "<a href=''$home$index_page''>Home</a>\n" |
| 1200 | | -@ if {[anycap jor]} { |
| 1201 | | -@ html "<a href=''$home/timeline''>Timeline</a>\n" |
| 1202 | | -@ } |
| 1203 | | -@ if {[hascap oh]} { |
| 1204 | | -@ html "<a href=''$home/tree?ci=tip''>Files</a>\n" |
| 1205 | | -@ } |
| 1206 | | -@ if {[hascap o]} { |
| 1207 | | -@ html "<a href=''$home/brlist''>Branches</a>\n" |
| 1208 | | -@ html "<a href=''$home/taglist''>Tags</a>\n" |
| 1209 | | -@ } |
| 1210 | | -@ if {[hascap r]} { |
| 1211 | | -@ html "<a href=''$home/reportlist''>Tickets</a>\n" |
| 1212 | | -@ } |
| 1213 | | -@ if {[hascap j]} { |
| 1214 | | -@ html "<a href=''$home/wiki''>Wiki</a>\n" |
| 1215 | | -@ } |
| 1216 | | -@ if {[hascap s]} { |
| 1217 | | -@ html "<a href=''$home/setup''>Admin</a>\n" |
| 1218 | | -@ } elseif {[hascap a]} { |
| 1219 | | -@ html "<a href=''$home/setup_ulist''>Users</a>\n" |
| 1220 | | -@ } |
| 1221 | | -@ if {[info exists login]} { |
| 1222 | | -@ html "<a href=''$home/login''>Logout</a>\n" |
| 1223 | | -@ } else { |
| 1224 | | -@ html "<a href=''$home/login''>Login</a>\n" |
| 1225 | | -@ } |
| 1226 | | -@ </th1></div> |
| 1227 | | -@ '); |
| 1228 | | -@ REPLACE INTO config(name,mtime,value) |
| 1229 | | -@ VALUES('footer',now(),'<div class="footer"> |
| 1230 | | -@ <th1> |
| 1231 | | -@ proc getTclVersion {} { |
| 1232 | | -@ if {[catch {tclEval info patchlevel} tclVersion] == 0} { |
| 1233 | | -@ return "<a href=\"http://www.tcl.tk/\">Tcl</a> version $tclVersion" |
| 1234 | | -@ } |
| 1235 | | -@ return "" |
| 1236 | | -@ } |
| 1237 | | -@ proc getVersion { version } { |
| 1238 | | -@ set length [string length $version] |
| 1239 | | -@ return [string range $version 1 [expr {$length - 2}]] |
| 1240 | | -@ } |
| 1241 | | -@ set version [getVersion $manifest_version] |
| 1242 | | -@ set tclVersion [getTclVersion] |
| 1243 | | -@ set fossilUrl http://www.fossil-scm.org |
| 1244 | | -@ </th1> |
| 1245 | | -@ This page was generated in about |
| 1246 | | -@ <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by |
| 1247 | | -@ <a href="$fossilUrl/">Fossil</a> |
| 1248 | | -@ version $release_version $tclVersion |
| 1249 | | -@ <a href="$fossilUrl/index.html/info/$version">$manifest_version</a> |
| 1250 | | -@ <a href="$fossilUrl/index.html/timeline?c=$manifest_date&y=ci">$manifest_date</a> |
| 1251 | | -@ </div> |
| 1252 | | -@ </body></html> |
| 1253 | | -@ '); |
| 1254 | | -; |
| 1255 | | - |
| 1256 | 24 | /* |
| 1257 | 25 | ** An array of available built-in skins. |
| 26 | +** |
| 27 | +** To add new built-in skins: |
| 28 | +** |
| 29 | +** 1. Pick a name for the new skin. (Here we use "xyzzy"). |
| 30 | +** |
| 31 | +** 2. Install files skins/xyzzy/css.txt, skins/xyzzy/header.txt, |
| 32 | +** and skins/xyzzy/footer.txt into the source tree. |
| 33 | +** |
| 34 | +** 3. Rerun "tclsh makemake.tcl" in the src/ folder in order to |
| 35 | +** rebuild the makefiles to reference the new CSS, headers, and footers. |
| 36 | +** |
| 37 | +** 4. Make an entry in the following array for the new skin. |
| 1258 | 38 | */ |
| 1259 | 39 | static struct BuiltinSkin { |
| 1260 | | - const char *zName; |
| 1261 | | - const char *zValue; |
| 40 | + const char *zDesc; /* Description of this skin */ |
| 41 | + const char *zLabel; /* The directory under skins/ holding this skin */ |
| 42 | + char *zSQL; /* Filled in at run-time with SQL to insert this skin */ |
| 1262 | 43 | } aBuiltinSkin[] = { |
| 1263 | | - { "Default", 0 /* Filled in at runtime */ }, |
| 1264 | | - { "Plain Gray, No Logo", zBuiltinSkin1 }, |
| 1265 | | - { "Khaki, No Logo", zBuiltinSkin2 }, |
| 1266 | | - { "Black & White, Menu on Left", zBuiltinSkin3 }, |
| 1267 | | - { "Shadow boxes & Rounded Corners", zBuiltinSkin4 }, |
| 1268 | | - { "Enhanced Default", zBuiltinSkin5 }, |
| 44 | + { "Default", "default", 0 }, |
| 45 | + { "Plain Gray, No Logo", "plain_gray", 0 }, |
| 46 | + { "Khaki, No Logo", "khaki", 0 }, |
| 47 | + { "Black & White, Menu on Left", "black_and_white", 0 }, |
| 48 | + { "Shadow boxes & Rounded Corners", "rounded1", 0 }, |
| 49 | + { "Enhanced Default", "enhanced1", 0 }, |
| 1269 | 50 | }; |
| 1270 | 51 | |
| 1271 | 52 | /* |
| 1272 | 53 | ** For a skin named zSkinName, compute the name of the CONFIG table |
| 1273 | 54 | ** entry where that skin is stored and return it. |
| | @@ -1286,57 +67,65 @@ |
| 1286 | 67 | } |
| 1287 | 68 | return z; |
| 1288 | 69 | } |
| 1289 | 70 | |
| 1290 | 71 | /* |
| 1291 | | -** Construct and return a string that represents the current skin if |
| 1292 | | -** useDefault==0 or a string for the default skin if useDefault==1. |
| 72 | +** Construct and return an string of SQL statements that represents |
| 73 | +** a "skin" setting. If zName==0 then return the skin currently |
| 74 | +** installed. Otherwise, return one of the built-in skins designated |
| 75 | +** by zName. |
| 1293 | 76 | ** |
| 1294 | 77 | ** Memory to hold the returned string is obtained from malloc. |
| 1295 | 78 | */ |
| 1296 | | -static char *getSkin(int useDefault){ |
| 79 | +static char *getSkin(const char *zName){ |
| 80 | + const char *z; |
| 81 | + char *zLabel; |
| 82 | + static const char *azType[] = { "css", "header", "footer" }; |
| 83 | + int i; |
| 1297 | 84 | Blob val; |
| 1298 | 85 | blob_zero(&val); |
| 1299 | | - blob_appendf(&val, |
| 1300 | | - "REPLACE INTO config(name,value,mtime) VALUES('css',%Q,now());\n", |
| 1301 | | - useDefault ? zDefaultCSS : db_get("css", (char*)zDefaultCSS) |
| 1302 | | - ); |
| 1303 | | - blob_appendf(&val, |
| 1304 | | - "REPLACE INTO config(name,value,mtime) VALUES('header',%Q,now());\n", |
| 1305 | | - useDefault ? zDefaultHeader : db_get("header", (char*)zDefaultHeader) |
| 1306 | | - ); |
| 1307 | | - blob_appendf(&val, |
| 1308 | | - "REPLACE INTO config(name,value,mtime) VALUES('footer',%Q,now());\n", |
| 1309 | | - useDefault ? zDefaultFooter : db_get("footer", (char*)zDefaultFooter) |
| 1310 | | - ); |
| 86 | + for(i=0; i<sizeof(azType)/sizeof(azType[0]); i++){ |
| 87 | + if( zName ){ |
| 88 | + zLabel = mprintf("skins/%s/%s.txt", zName, azType[i]); |
| 89 | + z = builtin_text(zLabel); |
| 90 | + fossil_free(zLabel); |
| 91 | + }else{ |
| 92 | + z = db_get(azType[i], 0); |
| 93 | + if( z==0 ){ |
| 94 | + zLabel = mprintf("skins/default/%s.txt", azType[i]); |
| 95 | + z = builtin_text(zLabel); |
| 96 | + fossil_free(zLabel); |
| 97 | + } |
| 98 | + } |
| 99 | + blob_appendf(&val, |
| 100 | + "REPLACE INTO config(name,value,mtime) VALUES(%Q,%Q,now());\n", |
| 101 | + azType[i], z |
| 102 | + ); |
| 103 | + } |
| 1311 | 104 | return blob_str(&val); |
| 1312 | 105 | } |
| 1313 | 106 | |
| 1314 | | -/* |
| 1315 | | -** Construct the default skin string and fill in the corresponding |
| 1316 | | -** entry in aBuildinSkin[] |
| 1317 | | -*/ |
| 1318 | | -static void setDefaultSkin(void){ |
| 1319 | | - aBuiltinSkin[0].zValue = getSkin(1); |
| 1320 | | -} |
| 1321 | | - |
| 1322 | 107 | /* |
| 1323 | 108 | ** WEBPAGE: setup_skin |
| 1324 | 109 | */ |
| 1325 | 110 | void setup_skin(void){ |
| 1326 | 111 | const char *z; |
| 1327 | 112 | char *zName; |
| 1328 | 113 | char *zErr = 0; |
| 1329 | | - const char *zCurrent; /* Current skin */ |
| 1330 | | - int i; /* Loop counter */ |
| 114 | + const char *zCurrent = 0; /* Current skin */ |
| 115 | + int i; /* Loop counter */ |
| 1331 | 116 | Stmt q; |
| 1332 | 117 | |
| 1333 | 118 | login_check_credentials(); |
| 1334 | 119 | if( !g.perm.Setup ){ |
| 1335 | 120 | login_needed(); |
| 1336 | 121 | } |
| 1337 | 122 | db_begin_transaction(); |
| 123 | + zCurrent = getSkin(0); |
| 124 | + for(i=0; i<sizeof(aBuiltinSkin)/sizeof(aBuiltinSkin[0]); i++){ |
| 125 | + aBuiltinSkin[i].zSQL = getSkin(aBuiltinSkin[i].zLabel); |
| 126 | + } |
| 1338 | 127 | |
| 1339 | 128 | /* Process requests to delete a user-defined skin */ |
| 1340 | 129 | if( P("del1") && (zName = skinVarName(P("sn"), 1))!=0 ){ |
| 1341 | 130 | style_header("Confirm Custom Skin Delete"); |
| 1342 | 131 | @ <form action="%s(g.zTop)/setup_skin" method="post"><div> |
| | @@ -1351,14 +140,10 @@ |
| 1351 | 140 | return; |
| 1352 | 141 | } |
| 1353 | 142 | if( P("del2")!=0 && (zName = skinVarName(P("sn"), 1))!=0 ){ |
| 1354 | 143 | db_multi_exec("DELETE FROM config WHERE name=%Q", zName); |
| 1355 | 144 | } |
| 1356 | | - |
| 1357 | | - setDefaultSkin(); |
| 1358 | | - zCurrent = getSkin(0); |
| 1359 | | - |
| 1360 | 145 | if( P("save")!=0 && (zName = skinVarName(P("save"),0))!=0 ){ |
| 1361 | 146 | if( db_exists("SELECT 1 FROM config WHERE name=%Q", zName) |
| 1362 | 147 | || fossil_strcmp(zName, "Default")==0 ){ |
| 1363 | 148 | zErr = mprintf("Skin name \"%h\" already exists. " |
| 1364 | 149 | "Choose a different name.", P("sn")); |
| | @@ -1367,35 +152,39 @@ |
| 1367 | 152 | zName, zCurrent |
| 1368 | 153 | ); |
| 1369 | 154 | } |
| 1370 | 155 | } |
| 1371 | 156 | |
| 1372 | | - /* The user pressed the "Use This Skin" button. */ |
| 157 | + /* The user pressed one of the "Install" buttons. */ |
| 1373 | 158 | if( P("load") && (z = P("sn"))!=0 && z[0] ){ |
| 1374 | 159 | int seen = 0; |
| 160 | + |
| 161 | + /* Check to see if the current skin is already saved. If it is, there |
| 162 | + ** is no need to create a backup */ |
| 163 | + zCurrent = getSkin(0); |
| 1375 | 164 | for(i=0; i<sizeof(aBuiltinSkin)/sizeof(aBuiltinSkin[0]); i++){ |
| 1376 | | - if( fossil_strcmp(aBuiltinSkin[i].zValue, zCurrent)==0 ){ |
| 165 | + if( fossil_strcmp(aBuiltinSkin[i].zSQL, zCurrent)==0 ){ |
| 1377 | 166 | seen = 1; |
| 1378 | 167 | break; |
| 1379 | 168 | } |
| 1380 | 169 | } |
| 1381 | 170 | if( !seen ){ |
| 1382 | 171 | seen = db_exists("SELECT 1 FROM config WHERE name GLOB 'skin:*'" |
| 1383 | 172 | " AND value=%Q", zCurrent); |
| 1384 | | - } |
| 1385 | | - if( !seen ){ |
| 1386 | | - db_multi_exec( |
| 1387 | | - "INSERT INTO config(name,value,mtime) VALUES(" |
| 1388 | | - " strftime('skin:Backup On %%Y-%%m-%%d %%H:%%M:%%S')," |
| 1389 | | - " %Q,now())", zCurrent |
| 1390 | | - ); |
| 173 | + if( !seen ){ |
| 174 | + db_multi_exec( |
| 175 | + "INSERT INTO config(name,value,mtime) VALUES(" |
| 176 | + " strftime('skin:Backup On %%Y-%%m-%%d %%H:%%M:%%S')," |
| 177 | + " %Q,now())", zCurrent |
| 178 | + ); |
| 179 | + } |
| 1391 | 180 | } |
| 1392 | 181 | seen = 0; |
| 1393 | 182 | for(i=0; i<sizeof(aBuiltinSkin)/sizeof(aBuiltinSkin[0]); i++){ |
| 1394 | | - if( fossil_strcmp(aBuiltinSkin[i].zName, z)==0 ){ |
| 183 | + if( fossil_strcmp(aBuiltinSkin[i].zDesc, z)==0 ){ |
| 1395 | 184 | seen = 1; |
| 1396 | | - zCurrent = aBuiltinSkin[i].zValue; |
| 185 | + zCurrent = aBuiltinSkin[i].zSQL; |
| 1397 | 186 | db_multi_exec("%s", zCurrent/*safe-for-%s*/); |
| 1398 | 187 | break; |
| 1399 | 188 | } |
| 1400 | 189 | } |
| 1401 | 190 | if( !seen ){ |
| | @@ -1409,48 +198,50 @@ |
| 1409 | 198 | if( zErr ){ |
| 1410 | 199 | @ <p><font color="red">%h(zErr)</font></p> |
| 1411 | 200 | } |
| 1412 | 201 | @ <p>A "skin" is a combination of |
| 1413 | 202 | @ <a href="setup_editcss">CSS</a>, |
| 1414 | | - @ <a href="setup_header">Header</a>, |
| 1415 | | - @ <a href="setup_footer">Footer</a>, and |
| 1416 | | - @ <a href="setup_logo">Logo</a> that determines the look and feel |
| 203 | + @ <a href="setup_header">Header</a>, and |
| 204 | + @ <a href="setup_footer">Footer</a> that determines the look and feel |
| 1417 | 205 | @ of the web interface.</p> |
| 1418 | 206 | @ |
| 1419 | 207 | @ <h2>Available Skins:</h2> |
| 1420 | | - @ <ol> |
| 208 | + @ <table border="0"> |
| 1421 | 209 | for(i=0; i<sizeof(aBuiltinSkin)/sizeof(aBuiltinSkin[0]); i++){ |
| 1422 | | - z = aBuiltinSkin[i].zName; |
| 1423 | | - if( fossil_strcmp(aBuiltinSkin[i].zValue, zCurrent)==0 ){ |
| 1424 | | - @ <li><p>%h(z). <b>Currently In Use</b></p> |
| 210 | + z = aBuiltinSkin[i].zDesc; |
| 211 | + @ <tr><td>%d(i+1).<td>%h(z)<td> <td> |
| 212 | + if( fossil_strcmp(aBuiltinSkin[i].zSQL, zCurrent)==0 ){ |
| 213 | + @ (Currently In Use) |
| 1425 | 214 | }else{ |
| 1426 | | - @ <li><form action="%s(g.zTop)/setup_skin" method="post"><div> |
| 1427 | | - @ %h(z). |
| 215 | + @ <form action="%s(g.zTop)/setup_skin" method="post"> |
| 1428 | 216 | @ <input type="hidden" name="sn" value="%h(z)" /> |
| 1429 | | - @ <input type="submit" name="load" value="Use This Skin" /> |
| 1430 | | - @ </div></form></li> |
| 217 | + @ <input type="submit" name="load" value="Install" /> |
| 218 | + @ </form> |
| 1431 | 219 | } |
| 220 | + @ </tr> |
| 1432 | 221 | } |
| 1433 | 222 | db_prepare(&q, |
| 1434 | 223 | "SELECT substr(name, 6), value FROM config" |
| 1435 | 224 | " WHERE name GLOB 'skin:*'" |
| 1436 | 225 | " ORDER BY name" |
| 1437 | 226 | ); |
| 1438 | 227 | while( db_step(&q)==SQLITE_ROW ){ |
| 1439 | 228 | const char *zN = db_column_text(&q, 0); |
| 1440 | 229 | const char *zV = db_column_text(&q, 1); |
| 230 | + i++; |
| 231 | + @ <tr><td>%d(i).<td>%h(zN)<td> <td> |
| 1441 | 232 | if( fossil_strcmp(zV, zCurrent)==0 ){ |
| 1442 | | - @ <li><p>%h(zN). <b>Currently In Use</b></p> |
| 233 | + @ (Currently In Use) |
| 1443 | 234 | }else{ |
| 1444 | | - @ <li><form action="%s(g.zTop)/setup_skin" method="post"> |
| 1445 | | - @ %h(zN). |
| 235 | + @ <form action="%s(g.zTop)/setup_skin" method="post"> |
| 1446 | 236 | @ <input type="hidden" name="sn" value="%h(zN)"> |
| 1447 | | - @ <input type="submit" name="load" value="Use This Skin"> |
| 1448 | | - @ <input type="submit" name="del1" value="Delete This Skin"> |
| 1449 | | - @ </form></li> |
| 237 | + @ <input type="submit" name="load" value="Install"> |
| 238 | + @ <input type="submit" name="del1" value="Delete"> |
| 239 | + @ </form> |
| 1450 | 240 | } |
| 241 | + @ </tr> |
| 1451 | 242 | } |
| 1452 | 243 | db_finalize(&q); |
| 1453 | | - @ </ol> |
| 244 | + @ </table> |
| 1454 | 245 | style_footer(); |
| 1455 | 246 | db_end_transaction(0); |
| 1456 | 247 | } |
| 1457 | 248 | |