{% extends 'core/base/base.html' %} {% comment %} SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden-Rossendorf (HZDR) SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} {% load static %} {% block content %}
Projects {% if project.label %}{{ project.label }}{% else %}New Project{% endif %} Version Control

Version Control

{% if vc_set %}
{% csrf_token %} {% for repo in vc_set %} {% endfor %}
ID Name
{{ repo.version_control_id }} {{ repo.label }}
{% if update == False %}
{% else %}
{% endif %}
{% endif %}
{% if update == False %}

Add a Source Code Repository

{% else %}

Update a Source Code Repository

{% endif%}
{% if projects_found %} {% for project in projects %} {% endfor %}
{% if project.avatar_url %} {% else %}
{{ project.name.0 }}
{% endif %}
{{ project.name_with_namespace }} {% if project.description %}
{{ project.description }}
{% endif %}
{% csrf_token %}
{% else %}

No GitLab projects found. Make sure you have a valid GitLab token added to HELIPORT.

Steps to generate and add a GitLab token to HELIPORT:
  • Go to GitLabs token managment page
  • Insert arbitrary "token name". Select "read_api" permission. Create token.
  • Copy and paste resulting character sequence as "authentication token" login here (with arbitrary name).
{% endif %}
{% csrf_token %}
Name
Link
{% if update == False %} {% else %} {% endif %}
Cancel
Select where you want to create your new repository
HZDR GitLab repository GitHub repository
{% endblock %} {% block script %} {% endblock %}