putting in verbosity 0 more comma fun .. now with logic .. and more
authorCillian de Roiste <cillian.deroiste@gmail.com>
Sat, 26 Jan 2008 17:31:37 +0000 (17:31 +0000)
committerCillian de Roiste <cillian.deroiste@gmail.com>
Sat, 26 Jan 2008 17:31:37 +0000 (17:31 +0000)
src/log.c

index e564658..8df8730 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -177,23 +177,24 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                           )
                                     )
                               : html()
                                           )
                                     )
                               : 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 */
 
 
 #if 0 /* traverse parents */