{% 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 %} {% load heliport %} {% block content %}

Version Control

{% if vc_list %}
{% csrf_token %} {% for repo, actions in vc_list|zip:vc_actions %} {% endfor %}
ID Name
{{ repo.version_control_id }} {% if repo.is_subdir %} {% else %} {% endif %} {{ repo.label }}
{% if update == False %} {% for action in actions %} {% endfor %}
{% else %} {% for action in actions %} {% endfor %}
{% endif %}
{% endif %}
{% if update == False %}

Add a Source Code Repository

{% else %}

Update a Source Code Repository

{% endif %} {% comment %} import tabs {% endcomment %}
{% comment %} import gitlab projects {% endcomment %} {% if projects_found %} {% for project in projects %} {% endfor %}
{% if project.avatar_url %} Project Avatar {% 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 management 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 %}
{% comment %} import arbitrary repository {% endcomment %}
{% csrf_token %}
Name
Link
{% if update == False %} {% else %} {% endif %}
Cancel
{% comment %} create new repository {% endcomment %}
Select where you want to create your new repository
HZDR GitLab repository GitHub repository
{% endblock content %} {% block script %} {% endblock script %}