ne compile pas encore

This commit is contained in:
Hubert 2021-07-03 08:22:23 +02:00
parent 8ffcf6c9e0
commit f8256e3f3a
4 changed files with 9258 additions and 3 deletions

View File

@ -97,6 +97,9 @@ async fn git_main(web::Path((owner, reponame, commitname, rootname)): web::Path<
let user = User { name : "Hubert".to_string()};
GitMainTemplate { repo, browse : browse, root : path, user_opt : Some(user)}
}
#[derive(Template)]
#[template(path = "fontawesome.css")]
struct CSSFontAwsome{}
#[post("/echo")]
async fn echo(req_body: String) -> impl Responder {

4619
static/fontawesome.css vendored Normal file

File diff suppressed because it is too large Load Diff

4619
templates/fontawesome.css vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
{% block content %}
<div class="w3-bar">
<span class="w3-bar-item"><span class="w3-xxlarge">{{repo.owner.name}}/{{repo.name}}</span></span>
<span class="w3-bar-item"><span class="w3-xlarge">{{repo.owner.name}}/{{repo.name}}</span></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>
@ -21,8 +21,22 @@
</div>
<div id="Code" class="w3-container w3-border repoview">
<h2>Code</h2>
<p>London is the capital city of England.</p>
<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>
</div>
<div id="Issues" class="w3-container w3-border repoview" style="display:none">