aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/base.html
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-22 06:23:04 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-22 06:23:04 +0200
commite30713b84bc9e66f7a8e8d2f51e953472cac28e4 (patch)
tree3098b1c77a978dcad0c828f57386d1c8999aa26b /templates/repo/base.html
parent84a9a0ccee713e26a28ff5e54ea3776085d93b5f (diff)
Committing all the libgit2 progress before throwing it away
I don't think libgit2 is the way forward to make any of this work. There's so much work involved in parsing the git k-v store, and the library itself is essentially of zero help for most of the heavy lifting.
Diffstat (limited to 'templates/repo/base.html')
-rw-r--r--templates/repo/base.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/repo/base.html b/templates/repo/base.html
index 9927a4a..1099455 100644
--- a/templates/repo/base.html
+++ b/templates/repo/base.html
@@ -1,10 +1,10 @@
{% extends "../core.html" %}
-{% block title %}<title>octopus | /{{ repo.data.owner }}/{{ repo.data.name }}</title>{% endblock %}
+{% block title %}<title>octopus | /{{ repo.owner }}/{{ repo.name }}</title>{% endblock %}
{% block content %}
<div class="tagline-container">
<img class="repo-logo" src="/static/{{ repo.logo }}" />
- <h1><a href="">{{ repo.data.owner }}</a> / <a href="">{{ repo.data.name }}</a></h1>
+ <h1><a href="">{{ repo.owner }}</a> / <a href="">{{ repo.name }}</a></h1>
<p>🐙 It's a water animal</p>
<div class="starbox">
<a href="">Clone</a>
@@ -14,22 +14,22 @@
</div> <!-- tagline container -->
<div class="subheader">
- <a href="">{{ repo.data.num_commit }} commits</a>
- <a href="">{{ repo.data.num_branch}} branch</a>
- <a href="">{{ repo.data.num_tag }} tags</a>
- <a href="">{{ repo.data.num_contributor }} contributor</a>
- <a href="">size: {{ repo.data.size }}</a>
+ <a href="">{{ repo.num_commit }} commits</a>
+ <a href="">{{ repo.num_branch}} branch</a>
+ <a href="">{{ repo.num_tag }} tags</a>
+ <a href="">{{ repo.num_contributor }} contributor</a>
+ <a href="">size: {{ repo.size }}</a>
<input id="repo-search" type="search" placeholder="Search repository" />
<!-- <label for="repo-search">Search for files in the repository</label> -->
</div> <!-- subheader -->
<hr />
<div class="repo-navigation">
- <a href="about.html" class="nav-item nav-active">about</a>
- <a href="details.html " class="nav-item">details</a>
- <a href="" class="nav-item">files</a>
- <a href="" class="nav-item">log</a>
- <a href="" class="nav-item">patches</a>
- <a href="" class="nav-item">contribute</a>
+ <a href="{{ base.url }}/{{ repo.name }}" class="nav-item">about</a>
+ <a href="{{ base.url }}/{{ repo.name }}/details" class="nav-item">details</a>
+ <a href="{{ base.url }}/{{ repo.name }}/files" class="nav-item">files</a>
+ <a href="{{ base.url }}/{{ repo.name }}/log" class="nav-item">log</a>
+ <a href="{{ base.url }}/{{ repo.name }}/patches" class="nav-item">patches</a>
+ <a href="{{ base.url }}/{{ repo.name }}/contribute" class="nav-item">contribute</a>
</div>
{% block child_content %}{% endblock %}