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-23 13:35:14 +02:00
|
|
|
<i class="fa fa-history"></i> {{ revisions_nbr }} revisions
|
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-23 13:35:14 +02:00
|
|
|
<i class="fa fa-code-branch"></i> {{ branches_nbr }} 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-23 13:35:14 +02:00
|
|
|
<i class="fa fa-tag"></i> {{ tags_nbr }} tags
|
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-23 13:35:14 +02:00
|
|
|
<i class="fa fa-database"></i> {{ size }}
|
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 10:41:11 +02:00
|
|
|
|
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">
|
2021-07-04 10:41:11 +02:00
|
|
|
<div class="w3-cell-row">
|
|
|
|
<div class="w3-cell">
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li><a href="#">{{repo.name}}</a></li>
|
2021-07-24 06:52:46 +02:00
|
|
|
{% for (dir, prev) in breadcrumb %}
|
2021-07-04 10:41:11 +02:00
|
|
|
<li><a href="{{prev}}">{{dir}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="w3-right w3-cell w3-cell-middle">
|
|
|
|
<button class="w3-button w3-round w3-border">New file</button>
|
|
|
|
<button class="w3-button w3-round w3-border"><i class="fa fa-upload"></i></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2021-07-04 08:01:48 +02:00
|
|
|
<ul class="filebrowser">
|
|
|
|
{% for entry in browse %}
|
2021-07-18 07:46:14 +02:00
|
|
|
{% match entry %}
|
|
|
|
{% when Entry::Dir with (name) %}
|
|
|
|
<li><i class="fa fa-folder"></i> {{ name }}</li>
|
|
|
|
{% when Entry::File with (name) %}
|
2021-07-18 21:13:04 +02:00
|
|
|
<li><i class="fa fa-file"></i> {{ name }}</li>
|
2021-07-18 07:46:14 +02:00
|
|
|
{% endmatch %}
|
2021-07-04 08:01:48 +02:00
|
|
|
{% 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 %}
|