gitust/templates/git.html

99 lines
3.6 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-03 08:22:23 +02:00
<p><a href="https://www.wikipedia.org">https://www.wikipedia.org</a></p>
<p>Repository description</p>
<div class="w3-cell-row">
<div class="w3-container w3-center w3-cell">
<i class="fa fa-history"></i> 112 revisions
</div>
<div class="w3-container w3-center w3-cell">
<i class="fa fa-code-branch"></i>\f126 10 branches
</div>
<div class="w3-container w3-center w3-cell">
<i class="fa fa-tag"></i> 5 tags
</div>
<div class="w3-container w3-center w3-cell">
<i class="fa fa-database"></i> 10 KiB
</div>
</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
{% for (dir, prev) in root %}/<a href="{{prev}}">{{dir}}</a>{% endfor %}
<ul>
{% for entry in browse %}
<li>{{ entry }}</li>
{% endfor %}
</ul>
{% endblock %}