]> Pileus Git - ~andy/aweather-web/commitdiff
Add RSL page, misc fixes
authorAndy Spencer <andy753421@gmail.com>
Sun, 19 Jun 2011 21:06:35 +0000 (21:06 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 19 Jun 2011 21:06:35 +0000 (21:06 +0000)
data/global.css
html.ct
html.h
index.c

index 6b8df850906622efc9ee4c579198f0560993665b..d2ae1762fa596ef440693049c67947887903855d 100644 (file)
@@ -59,6 +59,14 @@ div.code {
        font-weight: bold;
 }
 
+dt {
+       font-weight: bold;
+}
+
+dd {
+       margin-left:   10px;
+}
+
 /* Layout */
 body {
        background: fixed;
@@ -270,10 +278,8 @@ body {
 }
 .news dt {
        clear: both;
-       font-weight: bold;
 }
 .news dd {
-       margin-left:   10px;
        margin-bottom: 15px;
 }
 .note { 
diff --git a/html.ct b/html.ct
index 56d5430bcf2fcfacfe74ae770207bef06d112362..8fc31617e6413897c504082417d5a8f2b03b2dd4 100644 (file)
--- a/html.ct
+++ b/html.ct
@@ -35,7 +35,7 @@ Content-Type: text/html; charset=UTF-8
                        <h2 class="nav">
                                <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
                                <span class="sep"></span>
-                               <% print_nav(&grits[0], page); %>
+                               <% for (int i = 0; other[i].link;  i++) print_nav(&other[i],  page); %>
                        </h2>
                </div>
                <div class="content">
@@ -199,7 +199,11 @@ Content-Type: text/html; charset=UTF-8
        <ul>
                <li class="linux"><dl class="inline">
                        <dt>Source code</dt>
-                       <dd><a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a></dd>
+                       <dd>
+                       <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
+                       <a href="../grits/grits-<%= VERSION %>.tar.gz">grits-<%= VERSION %>.tar.gz</a>,
+                       <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
+                       </dd>
 
                        <dt>Gentoo</dt>
                        <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
@@ -215,7 +219,7 @@ Content-Type: text/html; charset=UTF-8
                        <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a> (Use this if you know what you're doing)</dd>
                </dl></li>
                <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
-                       <dt>Mac OSX</dt>
+                       <dt>Mac OS X</dt>
                        <dd>Coming soon (hopefully)</dd>
                </dl></li>
        </ul>
@@ -310,6 +314,35 @@ Content-Type: text/html; charset=UTF-8
        </ul>
 <% } %>
 
+<% void print_rsl(void) { %>
+       <h2>Radar Software Library</h2>
+       AWeather uses a custom version of the
+       <a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/">TRMM Radar Software Library</a>
+       for accessing Level-II radar files.
+
+       <h2>Changes</h2>
+       <ul>
+               <li>Dual Pole support</li>
+               <li>Added additional radars</li>
+               <li>Improved code organization</li>
+               <li>Fixed most compiler warnings</li>
+               <li>Miscellaneous bug fixes</li>
+       </ul>
+
+       <h2>Download</h2>
+       <h3>TRMM version</h3>
+       <ul>
+               <li><a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/">TRMM RSL Website</a></li>
+               <li><a href="ftp://trmm-fc.gsfc.nasa.gov/software/rsl-v1.40.tar.gz">rsl-v1.40.tar.gz</a></li>
+       </ul>
+       <h3>AWeather's version</h3>
+       <ul>
+               <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
+               <li><a href="/git/?p=~spenceal/rsl">Gitweb</a></li>
+               <li><div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div></li>
+       </ul>
+<% } %>
+
 <% /* Footer Pages */ %>
 <% void print_contact(void) { %>
        <h1>Contact</h1>
@@ -328,7 +361,7 @@ Content-Type: text/html; charset=UTF-8
                another weather dockapp that displays a pre-computed forecast.
                It is designed to be an easy to use program that integrates a
                variety of weather data in simple unified interface; see
-               <a href="features">features</a> for more details.
+               <a href="about">about</a> page for more details.
        </p>
        <hr />
        <div class="buttons">
diff --git a/html.h b/html.h
index dd58b8488613b83b92e805d6324f077ce69483e6..6993664a1de045455b580f734051f33bc0e80b4b 100644 (file)
--- a/html.h
+++ b/html.h
@@ -14,7 +14,7 @@ typedef struct {
 
 /* Data */
 extern page_t header[];
-extern page_t grits[];
+extern page_t other[];
 extern page_t footer[];
 extern page_t special[];
 
@@ -29,6 +29,7 @@ void print_screenshots(void);
 void print_download(void);
 void print_development(void);
 void print_grits(void);
+void print_rsl(void);
 
 void print_contact(void);
 void print_legal(void);
diff --git a/index.c b/index.c
index 7fa87d22b401f9edf6db4eac21624ac0404bbc7d..f43a9d83ab25f596ed8dcd1c5f0e79732fdffe26 100644 (file)
--- a/index.c
+++ b/index.c
@@ -10,20 +10,21 @@ page_t header[] = {
        {"development", "Development", print_development},
        {NULL,          NULL,          NULL},
 };
-page_t grits[] = {
-       {"grits",   "Grits",   print_grits},
-       {NULL,      NULL,      NULL},
+page_t other[] = {
+       {"grits",       "Grits",       print_grits},
+       {"rsl",         "RSL",         print_rsl},
+       {NULL,          NULL,          NULL},
 };
 page_t footer[] = {
-       {"contact", "Contact", print_contact},
-       {NULL,      NULL,      NULL},
+       {"contact",     "Contact",     print_contact},
+       {NULL,          NULL,          NULL},
 };
 page_t special[] = {
-       {"index.cgi", NULL,        print_index},
-       {"notfound",  "Not found", print_notfound},
-       {NULL,        NULL,        NULL},
+       {"index.cgi",   NULL,          print_index},
+       {"notfound",    "Not found",   print_notfound},
+       {NULL,          NULL,          NULL},
 };
-page_t *everything[] = {header, grits, footer, special, NULL};
+page_t *everything[] = {header, other, footer, special, NULL};
 const page_t *index    = &special[0];
 const page_t *notfound = &special[1];