Changeset View
Standalone View
swh/web/templates/add_forge_now/requests-moderation.html
- This file was added.
{% extends "../layout.html" %} | |||||
{% comment %} | |||||
Copyright (C) 2022 The Software Heritage developers | |||||
See the AUTHORS file at the top-level directory of this distribution | |||||
License: GNU Affero General Public License version 3, or any later version | |||||
See top-level LICENSE file for more information | |||||
{% endcomment %} | |||||
{% load render_bundle from webpack_loader %} | |||||
{% load static %} | |||||
{% block header %} | |||||
{% render_bundle 'add_forge' %} | |||||
{% endblock %} | |||||
{% block title %}{{ heading }} – Software Heritage archive{% endblock %} | |||||
vlorentz: `{{ heading }}` is empty | |||||
Done Inline ActionsPlease, provide something actionable to fill in. Will that do? {"heading": "Add forge now requests moderation"}, @anlambert any issue with my proposal? ardumont: Please, provide something actionable to fill in.
Will that do?
```
{"heading": "Add… | |||||
Done Inline Actionslooks good to me anlambert: looks good to me | |||||
{% block navbar-content %} | |||||
<h4>Add forge now moderation</h4> | |||||
{% endblock %} | |||||
{% block content %} | |||||
<div class="col-md-8 offset-md-1"> | |||||
<div id="swh-add-forge-requests-list"> | |||||
<table id="swh-add-forge-now-moderation-list" class="table swh-table swh-table-striped"> | |||||
<thead> | |||||
<tr> | |||||
<th>ID</th> | |||||
<th>Submission date</th> | |||||
<th>Forge type</th> | |||||
<th>Forge URL</th> | |||||
<th>Status</th> | |||||
</tr> | |||||
</thead> | |||||
</table> | |||||
<p id="swh-add-forge-now-moderation-list-error"></p> | |||||
Not Done Inline Actionsplease show something in this div, in case wh.add_forge.onModerationPageLoad() for some reason. vlorentz: please show something in this div, in case `wh.add_forge.onModerationPageLoad()` for some… | |||||
Done Inline Actionsi did not get it, do you have something in mind to show in there? It's filled in when an issue occurs by the js. ardumont: i did not get it, do you have something in mind to show in there?
It's filled in when an issue… | |||||
Not Done Inline Actions"Could not load request list" or something
Assuming the JS code is loaded, which is not guaranteed. See https://sentry.softwareheritage.org/organizations/swh/issues/?project=13&query=is%3Aunresolved+highlightjs&statsPeriod=14d for example, this shows how often the main JS code is successfully loaded but highlightjs isn't. I can guess the main JS code fails to load way more often than that, but we don't have the data to know that exactly. vlorentz: "Could not load request list" or something
> It's filled in when an issue occurs by the js. | |||||
Done Inline ActionsI've done nothing but aligned with a <p> like other views we have. I guess we should open a task for that. ardumont: I've done nothing but aligned with a `<p>` like other views we have.
So it's not really… | |||||
Not Done Inline Actionsok vlorentz: ok | |||||
</div> | |||||
</div> | |||||
<script> | |||||
swh.add_forge.onModerationPageLoad(); | |||||
</script> | |||||
{% endblock %} |
{{ heading }} is empty