change log view from table to divs
authorCillian de Roiste <cillian.deroiste@gmail.com>
Sat, 26 Jan 2008 14:16:30 +0000 (14:16 +0000)
committerCillian de Roiste <cillian.deroiste@gmail.com>
Sat, 26 Jan 2008 14:16:30 +0000 (14:16 +0000)
src/log.c

index 2f6b799..8c6e662 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -125,13 +125,17 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
 
       html_list_append (table,
                         html (
-                              html_tag ("tr",
+                              html_tag ("div",
                                         html_attr ("class", (row & 1) ? "odd" : "even")
                                         ),
-                              html(html_tag ("td"),
+                              html(html_tag ("div"
+                                             html_attr ("class", "date")
+                                             ),
                                    html_strndup (pretty_date, 254)
                                    ),
-                              html(html_tag ("td"),
+                              html(html_tag ("div",
+                                   html_attr ("class", "test1")
+                                   ),
                                    webgit_object_link (query,
                                                        query->repo,
                                                        strlen (query->repo),
@@ -148,16 +152,17 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
       if (verbosity > 0)
         html_list_append (table,
                           html (
-                                html_tag ("tr",
-                                          html_attr ("class", (row & 1) ? "odd" : "even")
-                                          ),
-                                html(html_tag ("td"),
+                                html(html_tag ("div",
+                                               html_attr ("class", "author")
+                                               ),
                                      webgit_email_link (
                                                         webgit_object_commit_author_name_parse (commit),
                                                         webgit_object_commit_author_email_parse (commit)
                                                         )
                                      ),
-                                html (html_tag ("td"),
+                                html (html_tag ("div",
+                                                html_attr ("class", "action")
+                                                ),
                                       html(
                                            "Diff ",
                                            " ",
@@ -178,14 +183,10 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
       if (verbosity > 1)
         html_list_append (table,
                           html (
-                                html_tag ("tr",
-                                          html_attr ("class", (row & 1) ? "odd" : "even")
-                                          ),
-                                html(html_tag ("td", html_attr ("colspan", "2")),
+                                html(html_tag ("div", html_attr ("class", "message")),
                                      html(html_tag ("pre"),
                                           webgit_object_commit_message_parse (commit)
                                           ),
-                                     html (html_tag ("hr"))
                                      )
                                 )
                           );
@@ -204,7 +205,7 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
       commit->parents = NULL;
     }
 
-  return html (html( html_tag ("table", html_attr ("id", "log")), table), cont);
+  return html (html( html_tag ("div", html_attr ("id", "log")), table), cont);
 }