mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Github Navigator</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Github Navigator</h1>
|
||
|
<form method="get">
|
||
|
<p>
|
||
|
Search term: <input type="text" name="search_term" value="{{ search_term if search_term }}">
|
||
|
Limit: <input type="text" name="limit" value="{{ limit }}">
|
||
|
<input type="submit">
|
||
|
</p>
|
||
|
</form>
|
||
|
<h2>Search results</h2>
|
||
|
{% if repositories|length == 0 %}
|
||
|
<small>No search results</small>
|
||
|
{% endif %}
|
||
|
{% for repository, latest_commit in repositories %} {{n}}
|
||
|
<p>
|
||
|
<small>Search result # {{ loop.index }} from {{ repositories|length }}</small>
|
||
|
</p>
|
||
|
<p>
|
||
|
Repository: <a href="{{ repository['html_url'] }}">{{ repository['name'] }}</a>
|
||
|
</p>
|
||
|
<p>
|
||
|
Repository owner:
|
||
|
<a href="{{ repository['owner']['html_url'] }}"><img src="{{ repository['owner']['avatar_url'] }}" alt="avatar" height="24" width="24"/></a>
|
||
|
<a href="{{ repository['owner']['html_url'] }}">{{ repository['owner']['login'] }}</a>
|
||
|
</p>
|
||
|
<p>
|
||
|
Created at: {{ repository['created_at'] }}
|
||
|
</p>
|
||
|
<p>
|
||
|
LastCommit: <a href="{{ latest_commit['html_url'] }}">{{ latest_commit['sha'] }}</a> {{ latest_commit['commit']['message'] }} {{ latest_commit['commit']['author']['name'] }}
|
||
|
</p>
|
||
|
<hr/>
|
||
|
{% endfor %}
|
||
|
</body>
|
||
|
</html>
|