]> Pileus Git - ~andy/aweather-web/commitdiff
Split news into news/oldnews
authorAndy Spencer <andy753421@gmail.com>
Mon, 12 Sep 2011 01:14:43 +0000 (01:14 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 12 Sep 2011 01:19:21 +0000 (01:19 +0000)
html.ct
html.h
index.c

diff --git a/html.ct b/html.ct
index c529679e6c39b6f54eb1fc913af600bf06e6347a..af1abf3a39389e51f934d1cc18e51983aba9d283 100644 (file)
--- a/html.ct
+++ b/html.ct
@@ -132,6 +132,7 @@ Content-Type: text/html; charset=UTF-8
                                <li>Added new desktop icons</li>
                                <li>Miscellaneous bug fixes</li>
                        </ul>
+                       Improved organization of the <a href="<%= WIKI_INDEX %>">Wiki</a>
                </dd>
 
                <dt>2011-08-25</dt>
@@ -169,7 +170,14 @@ Content-Type: text/html; charset=UTF-8
                        <li>Added an option to automatically refresh after a timeout</li>
                        <li>New fullscreen mode</li>
                </ul></dd>
+       </dl>
+       <p class="note">See also: <a href="oldnews">Older news</a>,
+                                 <a href="<%= GW_AWEATHER %>">gitweb</a></p>
+<% } %>
 
+<% void print_oldnews(void) { %>
+       &lt; <a href="news">News</a>
+       <dl class="news">
                <dt>2010-05-17</dt>
                <dd>AWeather 0.4.1:<ul>
                        <li>Win32 fixes and improved debug support</li>
@@ -197,7 +205,6 @@ Content-Type: text/html; charset=UTF-8
                    progress is being made on libgis, which is now able to display
                    a virtual globe using data from NASA servers.</dd>
        </dl>
-       <p class="note">See also: AWeather's <a href="<%= GW_AWEATHER %>">gitweb</a></p>
 <% } %>
 
 <% void print_screenshots(void) { %>
diff --git a/html.h b/html.h
index 2215a5accd48be7a16c23549efc9472762eb385e..254695ccba74e5b2e7dd5bfd568275dd26c126d8 100644 (file)
--- a/html.h
+++ b/html.h
@@ -52,6 +52,7 @@ void print_page(const page_t *which);
 /* Pages */
 void print_about(void);
 void print_news(void);
+void print_oldnews(void);
 void print_screenshots(void);
 void print_download(void);
 void print_development(void);
diff --git a/index.c b/index.c
index b4a23af409fd1ffe7c67975dc2a6c820e04ddaf2..32423a36d23f5f0976a0fcf0b2120b9789630cb7 100644 (file)
--- a/index.c
+++ b/index.c
@@ -26,6 +26,7 @@ page_t footer[] = {
 };
 page_t special[] = {
        {"",            NULL,          print_index,        1.0, desc},
+       {"oldnews",     "Old News",    print_oldnews,      0.2, NULL},
        {NULL,          "Not found",   print_notfound,    -1.0, NULL},
        {NULL,          NULL,          NULL,               0.0, NULL},
 };