aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/base.html
diff options
context:
space:
mode:
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 %}