]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add parameter to adjust max message length in log listings
[ps-cgit] / ui-shared.c
index b9c124393741bb290de02a79f91292dd7a23bf3e..630051653dc47060da9af56214295a3011638492 100644 (file)
@@ -25,7 +25,7 @@ static char *http_date(time_t t)
                   tm->tm_hour, tm->tm_min, tm->tm_sec);
 }
 
-static int ttl_seconds(int ttl)
+static long ttl_seconds(long ttl)
 {
        if (ttl<0)
                return 60 * 60 * 24 * 365;
@@ -107,12 +107,13 @@ void cgit_print_docstart(char *title, struct cacheitem *item)
 
 void cgit_print_docend()
 {
+       html("</td></tr></table>");
        html("</body>\n</html>\n");
 }
 
 void cgit_print_pageheader(char *title, int show_search)
 {
-       html("<div id='header'>");
+       html("<table id='layout'><tr><td id='header'>");
        htmlf("<a href='%s'>", cgit_logo_link);
        htmlf("<img id='logo' src='%s'/>\n", cgit_logo);
        htmlf("</a>");
@@ -135,5 +136,5 @@ void cgit_print_pageheader(char *title, int show_search)
        html_txt(title);
        if (cgit_query_repo)
                html("</a>");
-       html("</div>");
+       html("</td></tr><tr><td id='content'>");
 }