Skip to content

Commit

Permalink
Prepare for 'about repo' page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hjemli committed Apr 28, 2008
1 parent d188ed4 commit 90f64ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ui-summary.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
Expand All @@ -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>");
}
}
1 change: 1 addition & 0 deletions ui-summary.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#define UI_SUMMARY_H

extern void cgit_print_summary();
extern void cgit_print_repo_readme();

#endif /* UI_SUMMARY_H */

0 comments on commit 90f64ad

Please sign in to comment.