repo.html
HTML document, ASCII text
1{% extends "default.html" %} 2{% block title %} 3{{ username }}/{{ repository }} 4{% endblock %} 5{% block breadcrumbs %} 6<li><a href="/{{ username }}">{{ username }}</li> 7<li><a href="/{{ username }}/{{ repository }}">{{ repository }}</a></li> 8{% endblock %} 9 10{% block nav %} 11<dialog id="clone-info"> 12<article class="card"> 13<header class="card-top"> 14<div class="navbar navbar-mini"> 15<ul> 16<li><b>Clone</b></li> 17</ul> 18<x-buttonbox class="dialog-tools"> 19<button class="button-flat button-neutral big-button" type="submit" form="clone-form"><iconify-icon icon="mdi:close"></iconify-icon></button> 20</x-buttonbox> 21</div> 22</header> 23<section class="card-main"> 24<form id="clone-form"> 25<x-vbox class="nopad"> 26<label for="clone-url">Clone over HTTP</label> 27<input id="clone-url" readonly value="{{ remote }}" size="80"> 28</x-vbox> 29</form> 30</section> 31</article> 32</dialog> 33<nav id="repo-nav" class="navbar"> 34<ul id="repo-tabs"> 35<li><a href="/{{ username }}/{{ repository }}/tree">Tree</a></li> 36<li><a href="/{{ username }}/{{ repository }}/branches">Branches</a></li> 37<li><a href="/{{ username }}/{{ repository }}/log">History</a></li> 38<li><a href="/{{ username }}/{{ repository }}/prs">PRs</a></li> 39<li><a href="/{{ username }}/{{ repository }}/forum">Forum</a></li> 40<li><a href="/{{ username }}/{{ repository }}/users">Users</a></li> 41<li><a href="/{{ username }}/{{ repository }}/settings">Settings</a></li> 42</ul> 43<x-buttonbox> 44{% if logged_in_user %} 45<a class="button" href="/{{ username }}/{{ repository }}/favourite"> 46{% if not is_favourite %} 47<iconify-icon icon="mdi:star"></iconify-icon> 48Favourite 49{% else %} 50<iconify-icon icon="mdi:star"></iconify-icon> 51Remove favourite 52{% endif %} 53</a> 54{% endif %} 55<!-- <button>--> 56<!-- <iconify-icon icon="mdi:chat-alert"></iconify-icon>--> 57<!-- follow--> 58<!-- </button>--> 59<button onclick="document.getElementById('clone-info').showModal();"> 60<iconify-icon icon="mdi:swap-vertical-bold"></iconify-icon> 61Clone 62</button> 63<!-- <button>--> 64<!-- <iconify-icon icon="mdi:directions-fork"></iconify-icon>--> 65<!-- fork--> 66<!-- </button>--> 67</x-buttonbox> 68</nav> 69{% endblock %} 70