summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2f5199)
raw | patch | inline | side by side (parent: f2f5199)
author | Florian Forster <ff@octo.it> | |
Sat, 19 Jun 2010 09:32:07 +0000 (11:32 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 19 Jun 2010 09:32:07 +0000 (11:32 +0200) |
share/Makefile.am | patch | blob | history | |
share/style.css | [new file with mode: 0644] | patch | blob |
src/action_list_graphs.c | patch | blob | history |
diff --git a/share/Makefile.am b/share/Makefile.am
index 98d31c5feb83399248c81dc2063a95e8b1188a44..1262750111822b94e23068dea23c2f1b49dd271a 100644 (file)
--- a/share/Makefile.am
+++ b/share/Makefile.am
dist_sysconf_DATA = collection.conf
+dist_data_DATA = style.css
diff --git a/share/style.css b/share/style.css
--- /dev/null
+++ b/share/style.css
@@ -0,0 +1,36 @@
+body
+{
+ font-family: sans-serif;
+}
+
+ul.graph_list
+{
+ margin: 0;
+ padding: 1ex;
+ width: 50ex;
+}
+
+li.graph
+{
+ display: block;
+ border: 1px solid gray;
+ margin-top: 1ex;
+
+ background-color: rgb(245,245,255);
+}
+
+ul.instance_list
+{
+ margin: 0;
+ padding: 1ex;
+ border-top: 1px solid gray;
+
+ background-color: rgb(252,252,252);
+}
+
+li.instance
+{
+ display: block;
+
+ font-size: 90%;
+}
index 964a436c53ef6435850a43a62f146c29e7f03c6c..6e4f0d42c18d45f2a8f5de12ffd9167e52ecd43e 100644 (file)
--- a/src/action_list_graphs.c
+++ b/src/action_list_graphs.c
graph_get_title (cfg, desc, sizeof (desc));
html_escape_buffer (desc, sizeof (desc));
- printf (" <li>%s\n <ul>\n", desc);
+ printf (" <li class=\"graph\">%s\n"
+ " <ul class=\"instance_list\">\n", desc);
data->cfg = cfg;
}
inst_describe (cfg, inst, desc, sizeof (desc));
html_escape_buffer (desc, sizeof (desc));
- printf (" <li><a href=\"%s?action=graph;%s\">%s</a></li>\n",
+ printf (" <li class=\"instance\"><a href=\"%s?action=graph;%s\">%s</a></li>\n",
script_name (), params, desc);
if (data->limit > 0)
printf (" <title>c4: Graphs matching "%s"</title>\n", term);
else
printf (" <title>c4: List of all graphs</title>\n");
+ printf (" <link rel=\"stylesheet\" type=\"text/css\" href=\"../share/style.css\" />\n");
printf (" </head>\n <body>\n");
printf ("<form action=\"%s\" method=\"get\">\n"
free (term_html);
- printf (" <ul>\n");
+ printf (" <ul class=\"graph_list\">\n");
if (term == NULL)
gl_instance_get_all (print_graph_inst_html, /* user_data = */ &data);
else