changed provisonal css class for test1 to message-summary .. cehteh, perhaps this...
[webgit] / src / log.c
index f603ea4..679eac7 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -135,7 +135,7 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                    html_strndup (pretty_date, 254)
                                    ),
                               html(html_tag ("div",
-                                             html_attr ("class", "test1")
+                                             html_attr ("class", "message-summary")
                                              ),
                                    webgit_object_link (query,
                                                        query->repo,
@@ -146,8 +146,9 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                                        NULL,
                                                        webgit_object_commit_header_parse (commit)
                                                        )
-                                   )
-                              if (verbosity > 0)
+                                   ),
+                              // TODO please refactor this if it's really silly
+                              (verbosity > 0) ?
                               html (
                                     html(html_tag ("div",
                                                    html_attr ("class", "author")
@@ -175,25 +176,24 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                                )
                                           )
                                     )
+                              : html()
+                              ,
+
+                              (verbosity > 1) ?
+                              html (
+                                    html(html_tag ("div",
+                                                   html_attr ("class", "message")
+                                                   ),
+                                         html(html_tag ("pre"),
+                                              webgit_object_commit_message_parse (commit)
+                                              )
+                                         )
+                                    )
+                              : html()
 
                               )
                         );
 
-      
-      if (verbosity > 1)
-        html_list_append (table,
-                          html (
-                                html(html_tag ("div",
-                                               html_attr ("class", "message")
-                                               ),
-                                     html(html_tag ("pre"),
-                                           webgit_object_commit_message_parse (commit)
-                                          )
-                                     )
-                                )
-                          );
-
-
 #if 0 /* traverse parents */
       struct commit *parent;
       while ((parent = pop_commit (&commit->parents)))