summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-04-28 23:06:57 +0200
committerLars Hjemli <hjemli@gmail.com>2008-04-28 23:06:57 +0200
commit90f64ad96d2e4490d68db71554ebce7a54206f80 (patch)
tree15805142523538ffce7748a014e9a455b3b08f67
parentd188ed4f2905e6d10abd26c45572a0d48eb53969 (diff)
downloadcgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.gz
cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.bz2
cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.zip
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>
-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
@@ -13,11 +13,6 @@
void cgit_print_summary()
{
- if (ctx.repo->readme) {
- html("<div id='summary'>");
- html_include(ctx.repo->readme);
- html("</div>");
- }
html("<table summary='repository info' class='list nowrap'>");
cgit_print_branches(ctx.cfg.summary_branches);
html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
@@ -29,3 +24,12 @@ void cgit_print_summary()
}
html("</table>");
}
+
+void cgit_print_repo_readme()
+{
+ if (ctx.repo->readme) {
+ html("<div id='summary'>");
+ html_include(ctx.repo->readme);
+ html("</div>");
+ }
+}
diff --git a/ui-summary.h b/ui-summary.h
index 37aedd2..3e13039 100644
--- a/ui-summary.h
+++ b/ui-summary.h
@@ -2,5 +2,6 @@
#define UI_SUMMARY_H
extern void cgit_print_summary();
+extern void cgit_print_repo_readme();
#endif /* UI_SUMMARY_H */
sertions'>+17 2010-12-01robustify config parsingLucas Nussbaum1-11/+22 2010-11-30Also add reupload_if_updated for MaildirsLucas Nussbaum1-1/+4 2010-11-30Add a reupload_if_updated option (default: true)Lucas Nussbaum4-8/+20 2010-07-05Patch to use feed item pubDate in Maildir file namesBernie Maier1-6/+10 2010-04-18update websiteLucas Nussbaum2-2/+15 2010-04-18prepare releaseLucas Nussbaum4-5/+5 2010-04-18provide a way to disable SSL certificate verificationLucas Nussbaum4-1/+12 2010-04-18update changelogLucas Nussbaum1-0/+4 2010-04-18Update rubyimap.rbLucas Nussbaum1-5/+38 2010-03-17Document the maildir targetSandra Snan3-5/+5 2009-12-26Avoid using "acme.com"Lucas Nussbaum4-10/+19 2009-09-04fix to use Message-Id instead of X-CacheIndexLucas Nussbaum1-5/+2 2009-09-03added the forth arg to ConfigFeed::new for maildirLucas Nussbaum1-1/+1