Group base template parameters
This commit is contained in:
parent
729b3ba672
commit
90a446a576
7 changed files with 46 additions and 33 deletions
|
|
@ -3,19 +3,19 @@
|
|||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{% block title %}{% endblock %} - {{ repo_name }}</title>
|
||||
<title>{% block title %}{% endblock %} - {{ base.repo_name }}</title>
|
||||
<link rel="icon" href="/logo.svg">
|
||||
<link rel="stylesheet" href="{{ base }}/base.css" />
|
||||
<link rel="stylesheet" href="{{ base.root }}/base.css" />
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<a href="{{ base }}/" {% if current=="index" %} class="current" {% endif %}>
|
||||
<img src="{{ base }}/logo.svg">
|
||||
{{ repo_name }}
|
||||
<a href="{{ base.root }}/" {% if base.current=="index" %} class="current" {% endif %}>
|
||||
<img src="{{ base.root }}/logo.svg">
|
||||
{{ base.repo_name }}
|
||||
</a>
|
||||
<a href="{{ base }}/commit/" {% if current=="commit" %} class="current" {% endif %}>
|
||||
<a href="{{ base.root }}/commit/" {% if base.current=="commit" %} class="current" {% endif %}>
|
||||
commit
|
||||
</a>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<dl>
|
||||
{% for ref in tracked_refs %}
|
||||
<dt>{{ ref.name }}</dt>
|
||||
<dd><a href="{{ base }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
|
||||
<dd><a href="{{ base.root }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</details>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<dl>
|
||||
{% for ref in untracked_refs %}
|
||||
<dt>{{ ref.name }}</dt>
|
||||
<dd><a href="{{ base }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
|
||||
<dd><a href="{{ base.root }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</details>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue