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

index 44bdb39..e564658 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -147,7 +147,8 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                                        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,6 +176,7 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int
                                                )
                                           )
                                     )
+                              : html()
 
                               )
                         );