/contrib done!
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-10-13 20:53:40 +02:00
parent 8c0f002e21
commit 4e85732ed8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 87 additions and 23 deletions

35
static/css/contrib.css Normal file
View file

@ -0,0 +1,35 @@
h2 {
padding-left: 1rem;
}
/* Element of lists */
main li {
display: inline-block;
}
main h1,
h2 {
font-weight: 800;
}
/* Links */
main a {
text-decoration: none;
font-weight: 600;
}
main a:hover {
text-decoration: underline;
}
p {
margin: 0;
}
main p::after {
content: ", ";
}
main li:last-child p::after {
content: "";
}

View file

@ -2,41 +2,70 @@
<html class="index" lang="fr">
<head dir="ltr">
{{>head.html}}
<link rel="stylesheet" href="/css/contrib.css" />
</head>
<body>
<header>{{>navbar.html}}</header>
{{#data}} {{#error}}
{{#data}}
<main>
<p>Github ne veut pas que tu vois ces informations...</p>
</div>
<h1>Mes contributions GitHub</h1>
{{#error}}
<p>GitHub ne veut pas que tu vois ces informations...</p>
{{/error}} {{^error}}
<div id="content">
<h1 class="subtitle">Mes contributions</h1>
<!-- Add URL? -->
<!-- Add URL of projects repo to projects title? -->
{{#projects}}
<h2 class="subtitle">{{name}}</h2>
<p>
<h2>{{name}}</h2>
<ul>
{{#pulls_merged}}
<a target="_blank" title="{{title}} " href="{{url}} ">#{{id}}</a>
<li>
<!-- prettier-ignore -->
<p>
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>#{{id}}</a></p>
</li>
{{/pulls_merged}}
</p>
</ul>
{{/projects}}
<h1 class="subtitle">En attente</h1>
<p>
<h1>En attente</h1>
<ul>
{{#waiting}} {{#pulls_open}}
<a target="_blank" title="{{title}} " href="{{url}} "
>{{name_repo}}#{{id}}</a
>
{{/pulls_open}} {{/waiting}}
</p>
<h1 class="subtitle">Non mergées</h1>
<li>
<!-- prettier-ignore -->
<p>
{{#closed}} {{#pulls_closed}}
<a target="_blank" title="{{title}} " href="{{url}} "
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>{{name_repo}}#{{id}}</a
>
></p>
</li>
{{/pulls_open}} {{/waiting}}
</ul>
<h1>Non mergées</h1>
<ul>
{{#closed}} {{#pulls_closed}}
<li>
<!-- prettier-ignore -->
<p>
<a
href="{{url}} "
target="_blank"
rel="noreferrer"
title="{{title}} "
>{{name_repo}}#{{id}}</a
></p>
</li>
{{/pulls_closed}} {{/closed}}
</p>
</ul>
</main>
{{/error}} {{/data}} {{>footer.html}}
</body>