Code

src/utils_cgi.[ch]: Implement "html_print_logo".
[collection4.git] / src / utils_cgi.c
index 92bda3e960fdd8946c67d8f0af03def2589084a4..96b1b82e7a8a9f93684ab0bfd5970f51fbd87701 100644 (file)
@@ -573,6 +573,8 @@ int html_print_page (const char *title, /* {{{ */
       "        <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)
@@ -621,6 +623,16 @@ int html_print_page (const char *title, /* {{{ */
   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&nbsp;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;