mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-19 14:58:12 +01:00
The name of the project is now shown in the title of the HTML output.
Moved the gitinspector version number from the title down to the top text box of the HTML page.
This commit is contained in:
parent
722ca9b91a
commit
93b18cdd9a
2 changed files with 7 additions and 6 deletions
gitinspector
|
@ -82,16 +82,17 @@ def output_header():
|
|||
else:
|
||||
jquery_js = " src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js\">"
|
||||
|
||||
print(html_header.format(version = version.__version__,
|
||||
print(html_header.format(title = _("Repository statistics for {0}").format(os.path.basename(basedir.get_basedir_git())),
|
||||
jquery = jquery_js,
|
||||
jquery_tablesorter = tablesorter_js,
|
||||
jquery_flot = flot_js,
|
||||
jquery_flot_pie = pie_js,
|
||||
jquery_flot_resize = resize_js,
|
||||
logo = logo.decode("utf-8", "replace"),
|
||||
logo_text = _("The output has been generated by {0}; the statistical analysis tool"
|
||||
logo_text = _("The output has been generated by {0} {1}. The statistical analysis tool"
|
||||
" for git repositories.").format(
|
||||
"<a href=\"http://gitinspector.googlecode.com\">gitinspector</a>"),
|
||||
"<a href=\"http://gitinspector.googlecode.com\">gitinspector</a>",
|
||||
version.__version__),
|
||||
repo_text = _("Statistical information for the repository '{0}' was gathered on {1}.").format(
|
||||
os.path.basename(basedir. get_basedir_git()), localization.get_date()),
|
||||
show_minor_authors = _("Show minor authors"),
|
||||
|
@ -105,7 +106,7 @@ def output_header():
|
|||
print("\t<report-date>" + time.strftime("%Y/%m/%d") + "</report-date>")
|
||||
else:
|
||||
print(textwrap.fill(_("Statistical information for the repository '{0}' was gathered on {1}.").format(
|
||||
os.path.basename(basedir. get_basedir_git()), localization.get_date()), width=terminal.get_size()[0]))
|
||||
os.path.basename(basedir.get_basedir_git()), localization.get_date()), width=terminal.get_size()[0]))
|
||||
|
||||
def output_footer():
|
||||
if __selected_format__ == "html":
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
|
||||
<title>Generated by gitinspector {version}</title>
|
||||
<title>{title}</title>
|
||||
<script type="application/javascript"{jquery}</script>
|
||||
<script type="application/javascript">{jquery_tablesorter}</script>
|
||||
<script type="application/javascript">{jquery_flot}</script>
|
||||
|
@ -352,5 +352,5 @@
|
|||
<body>
|
||||
<div><div class="box logo">
|
||||
<img src="data:image/png;base64,{logo}" />
|
||||
<p>{repo_text} {logo_text}</p>
|
||||
<p>{repo_text}<br>{logo_text}</p>
|
||||
</div></div>
|
||||
|
|
Loading…
Add table
Reference in a new issue