Make most links typesafe
This commit is contained in:
parent
30ddf1e9b2
commit
e64ea7ac12
10 changed files with 82 additions and 100 deletions
|
|
@ -5,17 +5,17 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>{% block title %}{% endblock %} - {{ base.repo_name }}</title>
|
||||
<link rel="icon" href="{{ base.root }}/logo.svg">
|
||||
<link rel="stylesheet" href="{{ base.root }}/base.css" />
|
||||
<link rel="icon" href="{{ base.link_logo_svg }}">
|
||||
<link rel="stylesheet" href="{{ base.link_base_css }}" />
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<a href="{{ base.root }}/" {% if base.current=="index" %} class="current" {% endif %}>
|
||||
<img src="{{ base.root }}/logo.svg" alt="">{{ base.repo_name }}
|
||||
<a href="{{ base.link_index }}" {% if base.tab=="index" %} class="current" {% endif %}>
|
||||
<img src="{{ base.link_logo_svg }}" alt="">{{ base.repo_name }}
|
||||
</a>
|
||||
<a href="{{ base.root }}/queue/" {% if base.current=="queue" %} class="current" {% endif %}>
|
||||
<a href="{{ base.link_queue }}" {% if base.tab=="queue" %} class="current" {% endif %}>
|
||||
queue
|
||||
</a>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
title="{% call util::commit_title(reachable) %}">{{ message }}</pre>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{{ base.root }}{{ link_admin_queue_add }}">
|
||||
<form method="post" action="{{ link_admin_queue_add }}">
|
||||
<input type="hidden" name="hash" value="{{ hash }}">
|
||||
<label>Priority: <input type="number" name="priority" value="0" min="-2147483648" max="2147483647"></label>
|
||||
<button>Add to queue</button>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{% block title %}queue ({{ inner.tasks.len() }}){% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<script type="module" src="{{ base.root }}/queue.js"></script>
|
||||
<script type="module" src="{{ link_queue_js }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue