Documentation Source Text

Check-in [c032a10b8b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Put a yellow background on the prerelease snapshots on the download page.
Timelines: family | ancestors | descendants | both | 3.7.17
Files: files | file ages | folders
SHA1: c032a10b8b941ea615552246c3922fd38cc1fa6f
User & Date: drh 2013-07-19 20:22:14
Context
2013-07-19
20:41
Further tweaks to the look of the Download page. check-in: c90897b38c user: drh tags: 3.7.17
20:22
Put a yellow background on the prerelease snapshots on the download page. check-in: c032a10b8b user: drh tags: 3.7.17
2013-07-15
11:17
The log file for althttpd is now RFC-4180 CSV. check-in: 52bfa21f48 user: drh tags: 3.7.17
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to pages/download.in.

     1      1   <title>SQLite Download Page</title>
     2      2   
     3      3   <h2>SQLite Download Page</h2>
     4         -<table width="100%" cellpadding="5">
            4  +<table width="100%" cellpadding="5" cellspacing="0">
     5      5   
     6      6   <tcl>
     7      7   hd_keywords {download page}
     8      8   set nDownload 0
            9  +set BG {}
     9     10   proc Product {pattern desc {frag {}}} {
    10     11     regsub VVV $pattern {*} p3
    11     12     regsub DATE $p3 {20*} p3
    12     13     regsub YEAR $p3 {20[134][0-9]} p3
    13     14     regsub VVV $pattern {(30\d{5})} pattern
    14     15     regsub DATE $pattern {(\d{12})} pattern
    15     16     regsub YEAR $pattern {\d{4}} pattern
................................................................................
    36     37       if {$size>1024*1024} {
    37     38         set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
    38     39         set units MiB
    39     40       } elseif {$size>1024} {
    40     41         set size [format %.2f [expr {$size/(1024.0)}]]
    41     42         set units KiB
    42     43       }
    43         -    global pending_heading pending_tag
           44  +    global pending_heading pending_tag BG
           45  +    if {$BG!=""} {
           46  +      set tr "<tr bgcolor=\"$BG\">"
           47  +    } else {
           48  +      set tr "<tr>"
           49  +    }
    44     50       if {$pending_heading!=""} {
    45     51         if {$pending_tag!=""} {
    46     52           set tg "<a name=\"$pending_tag\"></a>"
    47     53           set pending_tag {}
    48     54         } else {
    49     55           set tg ""
    50     56         }
    51         -      hd_puts "<tr><td colspan=\"4\">$tg<b>$pending_heading</b></td></tr>\n"
           57  +      hd_puts "$tr<td colspan=\"4\">$tg<b>$pending_heading</b></td></tr>\n"
    52     58         set pending_heading {}
    53     59       }
    54         -    hd_puts "<tr><td width=\"10\"></td>"
           60  +    hd_puts "$tr<td width=\"10\"></td>"
    55     61       hd_puts "<td valign=\"top\" align=\"right\">"
    56     62       if {$frag!=""} {
    57     63         eval hd_fragment $frag
    58     64         set frag {}
    59     65       }
    60     66       hd_puts "<a href=\"$file\">[file tail $file]</a><br>($size $units)</td>\n"
    61     67       hd_puts "<td width=\"5\"></td>"
................................................................................
    67     73     }
    68     74     if {$frag!=""} {
    69     75       eval hd_keywords [lrange $frag 1 end]
    70     76     }
    71     77   }
    72     78   cd $::DEST
    73     79   
    74         -proc Heading {title {tag {}}} {
           80  +proc Heading {title {tag {}} {bgcolor {}}} {
    75     81     set ::pending_heading $title
    76     82     set ::pending_tag $tag
           83  +  set ::BG $bgcolor
    77     84     # hd_puts "<tr><td colspan=4><big><b>$title</b></big></td></tr>"
    78     85   }
    79     86   
    80         -Heading {Pre-release Source Code Snapshots}
           87  +set Caution #fff1c8
           88  +
           89  +Heading {Pre-release Snapshots} {} $Caution
    81     90   
    82     91   
    83     92   Product {snapshot/sqlite-amalgamation-DATE.zip} {
    84     93     This is a snapshot (as of VERSION) of the current SQLite code under 
    85     94     development.  Use this snapshot for testing only.  This is not a release.
    86     95     This ZIP archive contains all preprocessed C code combined into a
    87     96     single source file (the [amalgamation]).
................................................................................
   105    114   }
   106    115   Product {snapshot/sqlite-shell-win64-x64-DATE.zip} {
   107    116     This is a snapshot (as of VERSION) build of the 
   108    117     <a href="sqlite.html">sqlite3.exe command-line shell</a>
   109    118     shell program for 64-bit windows.
   110    119   }
   111    120   
   112         -
   113         -Heading {Pre-release Snapshots} binsnap
   114         -
   115    121   Product {snapshot/sqlite-winrt81-DATE.vsix} {
   116    122     This is a snapshot (as of VERSION) for
   117    123     a complete VSIX package with an extension SDK and all other components
   118    124     needed to use SQLite for WinRT 8.1 application development with Visual Studio
   119    125     2013.  This is not a release.
   120    126   }
   121    127