aboutsummaryrefslogtreecommitdiff
path: root/apps/servers/octopus/templates
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-10-31 18:57:39 +0100
committerMx Kookie <kookie@spacekookie.de>2020-12-21 05:10:08 +0100
commit9dacf748651ea7139c0e9f3dee9ae66d949bf73f (patch)
tree7101bc20d5a531218ccd1b4cb9e04c67995f6d0e /apps/servers/octopus/templates
parent4e09fe2509904ee64d2470ca8d41006d51e4ffd6 (diff)
Add 'apps/servers/octopus/' from commit '623954d19fdf0dca47db319e5c88ee561aa8d25c'
git-subtree-dir: apps/servers/octopus git-subtree-mainline: 4e09fe2509904ee64d2470ca8d41006d51e4ffd6 git-subtree-split: 623954d19fdf0dca47db319e5c88ee561aa8d25c
Diffstat (limited to 'apps/servers/octopus/templates')
-rw-r--r--apps/servers/octopus/templates/404.html11
-rw-r--r--apps/servers/octopus/templates/core.html40
-rw-r--r--apps/servers/octopus/templates/files.html17
-rw-r--r--apps/servers/octopus/templates/index.html7
-rw-r--r--apps/servers/octopus/templates/repo/about.html6
-rw-r--r--apps/servers/octopus/templates/repo/base.html37
-rw-r--r--apps/servers/octopus/templates/repo/details.html49
7 files changed, 167 insertions, 0 deletions
diff --git a/apps/servers/octopus/templates/404.html b/apps/servers/octopus/templates/404.html
new file mode 100644
index 000000000000..02168e78d059
--- /dev/null
+++ b/apps/servers/octopus/templates/404.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>404 - octopus</title>
+ </head>
+
+ <body>
+ <h1>404</h1>
+ <p>This ain't it chief</p>
+ </body>
+</html>
diff --git a/apps/servers/octopus/templates/core.html b/apps/servers/octopus/templates/core.html
new file mode 100644
index 000000000000..4112cc669436
--- /dev/null
+++ b/apps/servers/octopus/templates/core.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <link href="/static/main.css" rel="stylesheet">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta http-equiv="Cache-control" content="no-cache">
+
+ {% block title %}{% endblock %}
+ </head>
+ <body>
+
+ <header>
+ <div class="nav">
+ <img src="/static/octopus.png" />
+ <h1>{{ base.sitename }}</h1>
+ </div>
+ <div class="nav">
+ <a href="{{ base.siteurl }}/">Overview</a>
+ <a href="{{ base.siteurl }}/tree">File Browser</a>
+ <a href="{{ base.siteurl }}/wiki">Wiki</a>
+ </div>
+ </header>
+
+ {# Limits the width #}
+ <div class="wrap">
+ <div class="content">
+ {% block content %}{% endblock %}
+ </div>
+
+ <div class="footer">
+<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>
+
+ </div>
+ </body>
+</html>
diff --git a/apps/servers/octopus/templates/files.html b/apps/servers/octopus/templates/files.html
new file mode 100644
index 000000000000..02b02018f68f
--- /dev/null
+++ b/apps/servers/octopus/templates/files.html
@@ -0,0 +1,17 @@
+{% extends "core.html" %}
+
+{% block content %}
+
+<h1>File Tree</h1>
+
+<p>Following is a copy of the file tree. You can clone any sub-directry that is marked as a "project".</p>
+
+<div class="explorer">
+
+ {# header section #}
+ <div class="expl-header">
+ <span><strong>Mx Kookie</strong> <a href="">Just fucking around with stuff</a></span>
+ </div>
+</div>
+
+{% endblock %}
diff --git a/apps/servers/octopus/templates/index.html b/apps/servers/octopus/templates/index.html
new file mode 100644
index 000000000000..fd23cc2c311a
--- /dev/null
+++ b/apps/servers/octopus/templates/index.html
@@ -0,0 +1,7 @@
+{% extends "core.html" %}
+
+{% block content %}
+
+{{ readme }}
+
+{% endblock %}
diff --git a/apps/servers/octopus/templates/repo/about.html b/apps/servers/octopus/templates/repo/about.html
new file mode 100644
index 000000000000..5c476aa79df1
--- /dev/null
+++ b/apps/servers/octopus/templates/repo/about.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block child_content %}
+<pre class="readme">{{ readme }}</pre>
+{% endblock %}
+
diff --git a/apps/servers/octopus/templates/repo/base.html b/apps/servers/octopus/templates/repo/base.html
new file mode 100644
index 000000000000..10994557285b
--- /dev/null
+++ b/apps/servers/octopus/templates/repo/base.html
@@ -0,0 +1,37 @@
+{% extends "../core.html" %}
+{% 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.owner }}</a> / <a href="">{{ repo.name }}</a></h1>
+ <p>🐙 It's a water animal</p>
+ <div class="starbox">
+ <a href="">Clone</a>
+ <a href="">Star</a>
+ <a href="">RSS</a>
+ </div>
+</div> <!-- tagline container -->
+<div class="subheader">
+
+ <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="{{ 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 %}
+
+{% endblock %}
diff --git a/apps/servers/octopus/templates/repo/details.html b/apps/servers/octopus/templates/repo/details.html
new file mode 100644
index 000000000000..46bf9b6461f2
--- /dev/null
+++ b/apps/servers/octopus/templates/repo/details.html
@@ -0,0 +1,49 @@
+{% extends "base.html" %}
+
+{% block child_content %}
+<table class="details-table">
+ <thead>
+ <tr>
+ <th>Branch</th>
+ <th>Commit message</th>
+ <th>Author</th>
+ <th>Date</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for b in branches %}
+ <tr>
+ <td>{{ b.name }}</td>
+ <td>{{ b.last_commit.message }}</td>
+ <td>{{ b.last_commit.author }}</td>
+ <td>{{ b.last_commit.date }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+<table class="details-table">
+ <thead>
+ <tr>
+ <th>Hash</th>
+ <th>Commit message</th>
+ <th>Author</th>
+ <th>Date</th>
+ <th>Lines</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for c in commits %}
+ <tr>
+ <td>{{ c.hash }}</td>
+ <td>{{ c.message }}</td>
+ <td>{{ c.author }}</td>
+ <td>{{ c.date }}</td>
+ <td>+{{ c.diff.0 }}/ -{{ c.diff.1 }}
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+
+{% endblock %}