diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-04-20 19:27:50 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-04-20 19:27:50 -0300 |
commit | c02d1fb18373f115bf10bd11993f4944cb2d777a (patch) | |
tree | c4a656c47f76863b4c726a67ab2a607c718430b6 | |
parent | 4a23fbfbccd30292f0fc6dcc6f7080752793cc87 (diff) |
Display project commit details
-rwxr-xr-x | ganarchy.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ganarchy.py b/ganarchy.py index e6fe620..f44a71f 100755 --- a/ganarchy.py +++ b/ganarchy.py @@ -49,6 +49,9 @@ TEMPLATE = """<!DOCTYPE html> {% if project_desc %}<meta name="description" content="{{ project_desc|e }}" />{% endif %} </head> <body> + <h1>{{ project_title|e }}</h1> + <p>Tracking <span id="project_commit">{{ project_commit }}</span></p> + <div id="project_body"><p>{{ project_body|e|replace("\n\n", "</p><p>") }}</p></div> <ul> {% for url, msg, img in repos -%} <li><a href="{{ url|e }}">{{ url|e }}</a>: {{ msg|e }}</li> @@ -217,7 +220,11 @@ def cron_target(): project_title, project_desc = ("Error parsing project commit",)*2 if project_desc: project_desc = project_desc.strip() - click.echo(template.render(project_title = project_title, project_desc = project_desc, repos = html_entries)) + click.echo(template.render(project_title = project_title, + project_desc = project_desc, + project_body = project, + project_commit = project_commit, + repos = html_entries)) if __name__ == "__main__": ganarchy() |