summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-04-28 21:06:57 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-04-28 21:06:57 (UTC)
commit90f64ad96d2e4490d68db71554ebce7a54206f80 (patch) (unidiff)
tree15805142523538ffce7748a014e9a455b3b08f67
parentd188ed4f2905e6d10abd26c45572a0d48eb53969 (diff)
downloadcgit-90f64ad96d2e4490d68db71554ebce7a54206f80.zip
cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.gz
cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.bz2
Prepare for 'about repo' page
Each repo can include an external file which used to be included on the top of the summary page, but it will now soon get a page of it own. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-summary.c14
-rw-r--r--ui-summary.h1
2 files changed, 10 insertions, 5 deletions
diff --git a/ui-summary.c b/ui-summary.c
index 318148a..ad0b4a7 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -15,7 +15,2 @@ void cgit_print_summary()
15{ 15{
16 if (ctx.repo->readme) {
17 html("<div id='summary'>");
18 html_include(ctx.repo->readme);
19 html("</div>");
20 }
21 html("<table summary='repository info' class='list nowrap'>"); 16 html("<table summary='repository info' class='list nowrap'>");
@@ -31 +26,10 @@ void cgit_print_summary()
31} 26}
27
28void cgit_print_repo_readme()
29{
30 if (ctx.repo->readme) {
31 html("<div id='summary'>");
32 html_include(ctx.repo->readme);
33 html("</div>");
34 }
35}
diff --git a/ui-summary.h b/ui-summary.h
index 37aedd2..3e13039 100644
--- a/ui-summary.h
+++ b/ui-summary.h
@@ -4,2 +4,3 @@
4extern void cgit_print_summary(); 4extern void cgit_print_summary();
5extern void cgit_print_repo_readme();
5 6