diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/core.html | 6 | ||||
-rw-r--r-- | templates/repo/base.html | 26 | ||||
-rw-r--r-- | templates/repo/details.html | 85 |
3 files changed, 18 insertions, 99 deletions
diff --git a/templates/core.html b/templates/core.html index 808dc4c..aaa95ce 100644 --- a/templates/core.html +++ b/templates/core.html @@ -11,8 +11,10 @@ <div class="container"> {% block content %}{% endblock %} - <hr/> - <pre>Generated by octopus v0.0.0</pre> +<pre> +Generated by <strong>octopus {{ base.version }}</strong> +In compliance with the <a href="https://en.wikipedia.org/wiki/Affero_General_Public_License">AGPL</a> you can find the sources for this software <strong><a href="{{ base.source }}">here</a></strong>! +</pre> <div> </body> </html> 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 %} diff --git a/templates/repo/details.html b/templates/repo/details.html index 6a13a77..46bf9b6 100644 --- a/templates/repo/details.html +++ b/templates/repo/details.html @@ -39,94 +39,11 @@ <td>{{ c.message }}</td> <td>{{ c.author }}</td> <td>{{ c.date }}</td> + <td>+{{ c.diff.0 }}/ -{{ c.diff.1 }} </tr> {% endfor %} </tbody> </table> -<div class="details-grid"> - <h3>Branch</h3> - <h3>Commit message</h3> - <h3>Author</h3> - <h3 class="details-span">Date</h3> - - <a href="">fn-verify-9324832</a> - <a href="">Updating to actix 2.0.0 and adding 404 handler</a> - <p>Katharina Fey</p> - <p class="details-span">5 months ago</p> - - <a href="">master</a> - <a href="">Rebuilding the entire htlm and css styles</a> - <p>Katharina Fey</p> - <p class="details-span">18 hours ago</p> - - <!-- Switch to last commits --> - <h3>Commit Hash</h3> - <h3>Commit message</h3> - <h3>Author</h3> - <h3>Date</h3> - <h3>Lines</h3> - - <a href="">270cb70</a> - <a href="">Rebuilding the entire htlm and css stiles</a> - <p>Katharina Fey</p> - <p>19 hours ago</p> - <p>-214/+75</p> - - <a href="">5db4c57</a> - <a href="">Updating to actix 2.0.0 and adding 404 handler</a> - <p>Katharina Fey</p> - <p>2020-01-23</p> - <p>-610/+455</p> - - <a href="">5e16c64</a> - <a href="">Adding project documentation and roadmap planning</a> - <p>Katharina Fey</p> - <p>2020-01-23</p> - <p>-3/+61</p> - - <a href="">8b38bdd</a> - <a href="">data: adding a small wrapper around libgit2</a> - <p>Katharina Fey</p> - <p>2019-12-29</p> - <p>-36/+32</p> - - <a href="">c896fcd</a> - <a href="">material-ish design with gitea-style tabs</a> - <p>Milan PƤssler</p> - <p>2019-12-29</p> - <p>-102/+169</p> - - <a href="">f2f49bb</a> - <a href="">material-ish design with gitea-style tabs</a> - <p>Milan PƤssler</p> - <p>2019-12-29</p> - <p>-1/+2</p> - - <a href="">4be56ee</a> - <a href="">Adding a small limgit2 example usage</a> - <p>Katharina Fey</p> - <p>2019-12-29</p> - <p>-2/+17</p> - - <a href="">81ae20b</a> - <a href="">Refactoring basic project structure</a> - <p>Katharina Fey</p> - <p>2019-12-28</p> - <p>-76/+209</p> - - <a href="">baf496a</a> - <a href="">initial styling</a> - <p>Milan PƤssler</p> - <p>2019-12-13</p> - <p>-38/+149</p> - - <a href="">d43a02e</a> - <a href="">Adding AGPL-3.0 license</a> - <p>Katharina Fey</p> - <p>2019-12-10</p> - <p>-0/+661</p> -</div> - {% endblock %} |