summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95cad1f)
raw | patch | inline | side by side (parent: 95cad1f)
author | Florian Forster <ff@octo.it> | |
Sat, 26 Jun 2010 10:31:47 +0000 (12:31 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 26 Jun 2010 10:31:47 +0000 (12:31 +0200) |
share/style.css | patch | blob | history | |
src/utils_cgi.c | patch | blob | history | |
src/utils_cgi.h | patch | blob | history |
diff --git a/share/style.css b/share/style.css
index 740ae3365f2dd85b847630c57a9b918e0cd466c2..ac00a2b838ce45f39c797ae98e76529efd548b29 100644 (file)
--- a/share/style.css
+++ b/share/style.css
vertical-align: top;
}
+#logo-canvas
+{
+ display: block;
+ text-decoration: none;
+ color: black;
+}
+
+#logo-canvas h1
+{
+ margin: 0;
+}
+
+#logo-subscript
+{
+ font-size: 90%;
+ font-style: italic;
+}
+
#search-form
{
position: relative;
diff --git a/src/utils_cgi.c b/src/utils_cgi.c
index 92bda3e960fdd8946c67d8f0af03def2589084a4..96b1b82e7a8a9f93684ab0bfd5970f51fbd87701 100644 (file)
--- a/src/utils_cgi.c
+++ b/src/utils_cgi.c
" <td id=\"layout-top-left\">");
if (cb->top_left != NULL)
(*cb->top_left) (user_data);
+ else
+ html_print_logo (NULL);
printf ("</td>\n"
" <td id=\"layout-top-center\">");
if (cb->top_center != NULL)
return (0);
} /* }}} int html_print_page */
+int html_print_logo (__attribute__((unused)) void *user_data) /* {{{ */
+{
+ printf ("<a href=\"%s?action=list_graphs\" id=\"logo-canvas\">\n"
+ " <h1>c<sup>4</sup></h1>\n"
+ " <div id=\"logo-subscript\">collection 4</div>\n"
+ "</a>\n");
+
+ return (0);
+} /* }}} int html_print_search_box */
+
int html_print_search_box (__attribute__((unused)) void *user_data) /* {{{ */
{
char *term_html;
diff --git a/src/utils_cgi.h b/src/utils_cgi.h
index 2cd8bc95294f46886fefa3e07ffc2a06257e3af1..67e20656b2c6caa48edfc15ee4c1f48a84da01c4 100644 (file)
--- a/src/utils_cgi.h
+++ b/src/utils_cgi.h
int html_print_page (const char *title,
const page_callbacks_t *cb, void *user_data);
+int html_print_logo (void *user_data);
+
int html_print_search_box (void *user_data);
/* vim: set sw=2 sts=2 et fdm=marker : */