Follow/track/fork

This commit is contained in:
Hubert 2021-07-03 07:24:43 +02:00
parent 5ad31a8ca4
commit 37129afc31
2 changed files with 11 additions and 9 deletions

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>{{repo.name}}</title> <title>{{repo.name}}</title>
</head> </head>
<body> <body class="w3-white">
<div class="w3-container"> <div class="w3-container">
<div class="w3-bar w3-border w3-light-grey"> <div class="w3-bar w3-border w3-light-grey">
<a href="#" class="w3-bar-item w3-button w3-green"><i class="fa fa-home"></i> Home</a> <a href="#" class="w3-bar-item w3-button w3-green"><i class="fa fa-home"></i> Home</a>

View File

@ -1,6 +1,16 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="w3-bar">
<span class="w3-bar-item">{{repo.owner.name}}/{{repo.name}}</span>
<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>
{% for (dir, prev) in root %}/<a href="{{prev}}">{{dir}}</a>{% endfor %} {% for (dir, prev) in root %}/<a href="{{prev}}">{{dir}}</a>{% endfor %}
<ul> <ul>
@ -9,12 +19,4 @@
{% endfor %} {% endfor %}
</ul> </ul>
<div class="w3-container w3-raw w3-center">
<div class="w3-col m3 w3-center"><p></p></div>
<div class="w3-col m6 w3-left-align">
<div class="w3-container w3-amber w3-round w3-margin">
<h1>{{repo.owner.name}}/{{repo.name}}</h1>
</div>
</div>
</div>
{% endblock %} {% endblock %}