gitust/templates/git.html

129 lines
4.9 KiB
HTML
Raw Normal View History

2021-07-01 06:52:04 +02:00
{% extends "base.html" %}
{% block content %}
2021-07-03 07:24:43 +02:00
<div class="w3-bar">
2021-07-03 08:22:23 +02:00
<span class="w3-bar-item"><span class="w3-xlarge">{{repo.owner.name}}/{{repo.name}}</span></span>
2021-07-03 07:24:43 +02:00
<span class="w3-bar-item w3-right"><button class="w3-button w3-round w3-border">Fork</button></span>
<span class="w3-bar-item w3-right"><button class="w3-button w3-round w3-border">Star</button></span>
<span class="w3-bar-item w3-right"><button class="w3-button w3-round w3-border">Follow</button></span>
</div>
2021-07-03 07:38:12 +02:00
<div class="w3-bar w3-light-grey">
<button class="w3-bar-item w3-button repotablink w3-grey" onclick="openCity(event,'Code')">Code</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Issues')">Issues</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Pull')">Pull requests</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Projects')">Projects</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Versions')">Versions</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Wiki')">Wiki</button>
<button class="w3-bar-item w3-button repotablink" onclick="openCity(event,'Activity')">Activity</button>
</div>
<div id="Code" class="w3-container w3-border repoview">
2021-07-04 08:01:48 +02:00
<p><a href="https://www.wikipedia.org">https://www.wikipedia.org</a></p>
<p>Repository description</p>
2021-07-03 10:27:10 +02:00
2021-07-04 08:01:48 +02:00
<div class="w3-panel w3-border w3-cell-row">
2021-07-04 07:10:51 +02:00
<div class="w3-center w3-cell">
2021-07-03 08:22:23 +02:00
<i class="fa fa-history"></i> 112 revisions
</div>
2021-07-04 07:10:51 +02:00
<div class="w3-center w3-cell">
2021-07-03 10:21:54 +02:00
<i class="fa fa-code-branch"></i> 10 branches
2021-07-03 08:22:23 +02:00
</div>
2021-07-04 07:10:51 +02:00
<div class="w3-center w3-cell">
2021-07-03 08:22:23 +02:00
<i class="fa fa-tag"></i> 5 tags
</div>
2021-07-04 07:10:51 +02:00
<div class="w3-center w3-cell">
2021-07-03 13:21:46 +02:00
<i class="fa fa-database"></i> 10 KiB
2021-07-03 08:22:23 +02:00
</div>
</div>
2021-07-03 10:27:10 +02:00
2021-07-04 08:01:48 +02:00
<div class="w3-cell-row">
2021-07-04 07:28:25 +02:00
<div class="w3-cell w3-cell-middle">
2021-07-03 13:21:22 +02:00
<button class="w3-button w3-round w3-border">Branch: master</button>
<button class="w3-button w3-round w3-border">New merge request</button>
2021-07-03 10:27:10 +02:00
</div>
2021-07-04 07:10:51 +02:00
<div class="w3-center w3-cell w3-cell-middle">
2021-07-03 13:21:22 +02:00
<button class="w3-button w3-round w3-border">New file</button>
2021-07-04 07:28:25 +02:00
<button class="w3-button w3-round w3-border"><i class="fa fa-upload"></i></button>
2021-07-03 10:27:10 +02:00
</div>
2021-07-04 08:01:48 +02:00
<div class="w3-right w3-cell w3-cell-middle">
2021-07-04 07:20:45 +02:00
<div class="w3-bar">
<button class="w3-button w3-border w3-round w3-bar-item">HTTPS</button>
<button class="w3-button w3-border w3-round w3-bar-item">SSH</button>
<input class="w3-input w3-border w3-bar-item w3-round" type="text" value="git@domain.net:plop/plip.git">
2021-07-04 07:28:25 +02:00
<button class="w3-button w3-border w3-round w3-bar-item"><i class="fa fa-copy"></i></button>
<button class="w3-button w3-border w3-round w3-bar-item"><i class="fa fa-download"></i></button>
2021-07-04 07:10:51 +02:00
</div>
2021-07-03 10:27:10 +02:00
</div>
</div>
2021-07-04 08:01:48 +02:00
<div class="w3-panel w3-border">
Coucou
2021-07-04 07:43:03 +02:00
<ul class="breadcrumb">
{% for (dir, prev) in root %}
<li><a href="{{prev}}">{{dir}}</a></li>
{% endfor %}
</ul>
2021-07-04 08:01:48 +02:00
<ul class="filebrowser">
{% for entry in browse %}
<li><i class="fa fa-folder"></i> {{ entry }}</li>
{% endfor %}
</ul>
2021-07-04 07:43:03 +02:00
</div>
2021-07-03 07:38:12 +02:00
</div>
<div id="Issues" class="w3-container w3-border repoview" style="display:none">
<h2>Issues</h2>
<p>Paris is the capital of France.</p>
</div>
<div id="Pull" class="w3-container w3-border repoview" style="display:none">
<h2>Pull</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
<div id="Projects" class="w3-container w3-border repoview" style="display:none">
<h2>Projects</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
<div id="Versions" class="w3-container w3-border repoview" style="display:none">
<h2>Versions</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
<div id="Wiki" class="w3-container w3-border repoview" style="display:none">
<h2>Wiki</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
<div id="Activity" class="w3-container w3-border repoview" style="display:none">
<h2>Activity</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
<script>
function openCity(evt, viewName) {
var i, x, tablinks;
x = document.getElementsByClassName("repoview");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("repotablink");
for (i = 0; i < x.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" w3-grey", "");
}
document.getElementById(viewName).style.display = "block";
evt.currentTarget.className += " w3-grey";
}
</script>
2021-07-03 07:24:43 +02:00
2021-07-01 06:52:04 +02:00
{% endblock %}