From: Andy Spencer Date: Sun, 19 Jun 2011 21:06:35 +0000 (+0000) Subject: Add RSL page, misc fixes X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-web;a=commitdiff_plain;h=c5486810f56749bdbd1c81a55d3bf4a7601f2217 Add RSL page, misc fixes --- diff --git a/data/global.css b/data/global.css index 6b8df85..d2ae176 100644 --- a/data/global.css +++ b/data/global.css @@ -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 56d5430..8fc3161 100644 --- a/html.ct +++ b/html.ct @@ -35,7 +35,7 @@ Content-Type: text/html; charset=UTF-8
@@ -199,7 +199,11 @@ Content-Type: text/html; charset=UTF-8 @@ -310,6 +314,35 @@ Content-Type: text/html; charset=UTF-8 <% } %> +<% void print_rsl(void) { %> +

Radar Software Library

+ AWeather uses a custom version of the + TRMM Radar Software Library + for accessing Level-II radar files. + +

Changes

+ + +

Download

+

TRMM version

+ +

AWeather's version

+ +<% } %> + <% /* Footer Pages */ %> <% void print_contact(void) { %>

Contact

@@ -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 - features for more details. + about page for more details.


diff --git a/html.h b/html.h index dd58b84..6993664 100644 --- 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 7fa87d2..f43a9d8 100644 --- 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];