forgery/templates/index.html
2024-11-23 13:13:27 +01:00

98 lines
2.6 KiB
HTML

{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Forgejo Spam Admin</title>
<!-- Font Awesome -->
<!-- <link -->
<!-- rel="stylesheet" -->
<!-- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" -->
<!-- /> -->
<!-- Google Fonts Roboto -->
<!-- <link -->
<!-- rel="stylesheet" -->
<!-- href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" -->
<!-- /> -->
<!-- MDB -->
<!-- <link rel="stylesheet" href="css/mdb.min.css" /> -->
</head>
<style>
.flex-wrapper {
display: flex;
flex-direction: column;
gap: 15px;
}
.user {
display: flex;
flex-direction: row;
gap: 10px;
}
.user-card {
display: flex;
flex-direction: column;
}
.user-name {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
.user-info {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
</style>
<body>
<form method="post">
<input type="submit" value="Apply"/>
<div class="flex-wrapper">
{% for user in users %}
<div class="user">
<div class="user-classification">
<input type="checkbox" name="{{user.login}}" style="scale: 1.2"/>
</div>
<div class="user-card">
<div class="user-name">
<div>{{ user.login }}</div>
{%- if user.full_name %}<div>({{ user.full_name }})</div>{% endif -%}
</div>
<div class="user-info">
{%- if user.location %}<div>[L] {{ user.location }}</div>{% endif -%}
{%- if user.website %}<div>[W] {{ user.website }}</div>{% endif -%}
</div>
{%- if user.description %}<div>[D] {{ user.description }}</div>{% endif -%}
{%- if user.repos | length > 0 %}
<div class="user-repos">
<div>Repositories:</div>
{% for repo in user.repos %}
<div>{{ macros::compact(name=repo[1].name, desc=repo[1].description) }}</div>
{% endfor %}
</div>
{% endif -%}
{%- if user.issues | length > 0 %}
<div class="user-issues">
<div>Issues:</div>
{% for issue in user.issues %}
<div>{{ macros::compact(name=issue[1].title, desc=issue[1].body) }}</div>
{% endfor %}
</div>
{% endif -%}
</div>
</div>
{% endfor %}
</div>
</form>
</body>
</html>