Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/add_forge_now/common.html
Show All 17 Lines | |||||
Add forge now – Software Heritage archive | Add forge now – Software Heritage archive | ||||
{% endblock %} | {% endblock %} | ||||
{% block navbar-content %} | {% block navbar-content %} | ||||
<h4>Request the addition of a forge into the archive</h4> | <h4>Request the addition of a forge into the archive</h4> | ||||
{% endblock %} | {% endblock %} | ||||
{% block content %} | {% block content %} | ||||
<div class="col-md-12 offset-md-1"> | <div class="row mt-3"> | ||||
<div class="col-md-8"> | <p> | ||||
<h5 class="d-flex justify-content-between align-items-center mb-3"> | |||||
</h5> | |||||
<p style="margin-top: 1rem;"> | |||||
“Add forge now” provides a service for Software Heritage users to save a | “Add forge now” provides a service for Software Heritage users to save a | ||||
complete forge in the Software Heritage archive by requesting the addition | complete forge in the Software Heritage archive by requesting the addition | ||||
of the forge URL into the list of regularly visited forges. | of the forge URL into the list of regularly visited forges. | ||||
</p> | |||||
{% if not user.is_authenticated %} | {% if not user.is_authenticated %} | ||||
<p> | <p> | ||||
You can submit an “Add forge now” request only when you are authenticated, | You can submit an “Add forge now” request only when you are authenticated, | ||||
please login to submit the request. | please login to submit the request. | ||||
</p> | </p> | ||||
{% endif %} | {% endif %} | ||||
</p> | |||||
</div> | </div> | ||||
<!-- Tabs in the page --> | <!-- Tabs in the page --> | ||||
<div class="col-md-8"> | |||||
<ul class="nav nav-tabs"> | <ul class="nav nav-tabs"> | ||||
<li class="nav-item"><a class="nav-link {% if request.resolver_match.view_name == 'forge-add-create' %}active{% endif %}" href="{% url 'forge-add-create' %}" id="swh-add-forge-tab">Submit a Request</a></li> | <li class="nav-item"> | ||||
<li class="nav-item"><a class="nav-link {% if request.resolver_match.view_name == 'forge-add-list' %}active{% endif %}" href="{% url 'forge-add-list' %}" id="swh-add-forge-requests-list-tab">Browse Requests</a></li> | <a class="nav-link {% if request.resolver_match.view_name == 'forge-add-create' %}active{% endif %}" | ||||
<li class="nav-item"><a class="nav-link {% if request.resolver_match.view_name == 'forge-add-help' %}active{% endif %}" href="{% url 'forge-add-help' %}" id="swh-add-forge-requests-help-tab">Help</a></li> | href="{% url 'forge-add-create' %}" id="swh-add-forge-tab"> | ||||
Submit a Request | |||||
</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link {% if request.resolver_match.view_name == 'forge-add-list' %}active{% endif %}" | |||||
href="{% url 'forge-add-list' %}" id="swh-add-forge-requests-list-tab"> | |||||
Browse Requests | |||||
</a> | |||||
</li> | |||||
<li class="nav-item"> | |||||
<a class="nav-link {% if request.resolver_match.view_name == 'forge-add-help' %}active{% endif %}" | |||||
href="{% url 'forge-add-help' %}" id="swh-add-forge-requests-help-tab"> | |||||
Help | |||||
</a> | |||||
</li> | |||||
</ul> | </ul> | ||||
<div class="tab-content"> | <div class="tab-content"> | ||||
{% block tab_content %} | {% block tab_content %} | ||||
{% endblock %} | {% endblock %} | ||||
</div> | </div> | ||||
</div> | |||||
<script> | <script> | ||||
swh.add_forge.onCreateRequestPageLoad(); | swh.add_forge.onCreateRequestPageLoad(); | ||||
</script> | </script> | ||||
{% endblock %} | {% endblock %} |