List for cgit developers and users
 help / color / mirror / Atom feed
* do not show diff controls when only the commit diff stat is shown
@ 2011-09-13 12:33 florent.vial
  0 siblings, 0 replies; only message in thread
From: florent.vial @ 2011-09-13 12:33 UTC (permalink / raw)


Hi,

Another patch attached.

HTH,
Florent

---
ui-commit.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui-commit.c b/ui-commit.c
index 237e26a..a0198f9 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -41,7 +41,7 @@ void cgit_print_commit(char *hex, const char *prefix)
                load_ref_decorations(DECORATE_FULL_REFS);

-              cgit_print_diff_ctrls();
+             if (show_full_diff) cgit_print_diff_ctrls();
               html("<table summary='commit info' class='commit-info'>\n");
               html("<tr><th>author</th><td>");
               html_txt(info->author);
--
1.7.0.4




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-13 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13 12:33 do not show diff controls when only the commit diff stat is shown florent.vial

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).