project_detail.html 3.22 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
5
6
7
8
9
{% extends 'base.html' %}
{% load django_tables2 bootstrap3 %}

{% block content %}

<div class="clearfix">
  <h1>{{ project }}</h1>

  <div class="pull-right">
Guilhem Saurel's avatar
Guilhem Saurel committed
10
11
12
13
14
15
    {% if project.license %}
    {% bootstrap_label project.license label_class='label label-primary' %}
    {% else %}
    {% bootstrap_label 'UNLICENSED' label_class='label label-warning' %}
    {% endif %}

Guilhem Saurel's avatar
Guilhem Saurel committed
16
    {% if project.public %}
Guilhem Saurel's avatar
Guilhem Saurel committed
17
    {% bootstrap_label 'public' label_class='label label-success' %}
Guilhem Saurel's avatar
Guilhem Saurel committed
18
19
    {% else %}
    {% bootstrap_label 'private' label_class='label label-danger' %}
Guilhem Saurel's avatar
Guilhem Saurel committed
20
    {% endif %}
Guilhem Saurel's avatar
Guilhem Saurel committed
21
22
  </div>

Guilhem Saurel's avatar
Guilhem Saurel committed
23
  <dl class="dl-horizontal">
Guilhem Saurel's avatar
Guilhem Saurel committed
24
25
26
27
28
        <dt>Main forge</dt> <dd>{{ project.main_forge.get_link }}</dd>
    <dt>Main namespace</dt> <dd>{{ project.main_namespace }}</dd>
       <dt>Main branch</dt> <dd>{{ project.main_branch }}</dd>
       <dt>Description</dt> <dd>{{ project.description }}</dd>
          <dt>Homepage</dt> <dd>{% if project.homepage %}<a href="{{ project.homepage }}">{{ project.homepage }}</a>{% else %}—{% endif %}</dd>
Guilhem Saurel's avatar
Guilhem Saurel committed
29
30
31
           <dt>Updated</dt> <dd>{{ project.updated }}</dd>
           <dt>Version</dt> <dd>{{ project.version|default:"—" }}</dd>
     <dt>Commits since</dt> <dd>{{ project.commits_since }}</dd>
Guilhem Saurel's avatar
Guilhem Saurel committed
32
  </dl>
Guilhem Saurel's avatar
Guilhem Saurel committed
33
34
</div>

Guilhem Saurel's avatar
Guilhem Saurel committed
35
<ul class="nav nav-tabs">
36
37
  <li role="presentation" {% if 'robotpkg' in request.path %}class="active"{% endif %}><a href="{% url 'rainboard:project'          slug=project.slug %}">Robotpkg</a></h2></li>
  <li role="presentation" {% if 'repos'    in request.path %}class="active"{% endif %}><a href="{% url 'rainboard:project-repos'    slug=project.slug %}">Repos   </a></h2></li>
Guilhem Saurel's avatar
Guilhem Saurel committed
38
  <li role="presentation" {% if 'branches' in request.path %}class="active"{% endif %}><a href="{% url 'rainboard:project-branches' slug=project.slug %}">Branches</a></h2></li>
39
  <li role="presentation" {% if 'images'   in request.path %}class="active"{% endif %}><a href="{% url 'rainboard:project-images'   slug=project.slug %}">Images  </a></h2></li>
Guilhem Saurel's avatar
Guilhem Saurel committed
40
41
</ul>

42
43
44
45
46
{% if table %}

{% render_table table %}
{% if 'images' in request.path %}
<pre>
47
48
49
50
51
52
# Pull {% for image in object_list %}
{{ image.pull|join:' ' }}{% endfor %}
# Build {% for image in object_list %}
{{ image.build|join:' ' }}{% endfor %}
# Push {% for image in object_list %}
{{ image.push|join:' ' }}{% endfor %}
53
54
55
56
57
</pre>
{% endif %}

{% else %}

Guilhem Saurel's avatar
Guilhem Saurel committed
58
59
<h2>Robotpkg</h2>

Guilhem Saurel's avatar
détail    
Guilhem Saurel committed
60
{% for rpkg in project.robotpkg_set.all %}
Guilhem Saurel's avatar
Guilhem Saurel committed
61

Guilhem Saurel's avatar
détail    
Guilhem Saurel committed
62
<h3>{{ rpkg.category }} / {{ rpkg }}</h3>
Guilhem Saurel's avatar
Guilhem Saurel committed
63

Guilhem Saurel's avatar
détail    
Guilhem Saurel committed
64
{{ rpkg.description }}
Guilhem Saurel's avatar
Guilhem Saurel committed
65
66

<dl class="dl-horizontal">
Guilhem Saurel's avatar
détail    
Guilhem Saurel committed
67
68
69
70
71
72
73
74
75
76
               <dt>Base</dt> <dd>{{ rpkg.pkgbase }}</dd>
            <dt>Version</dt> <dd>{{ rpkg.pkgversion }}</dd>
       <dt>Master Sites</dt> <dd>{{ rpkg.master_sites }}</dd>
  <dt>Master Repository</dt> <dd>{{ rpkg.master_repository }}</dd>
         <dt>Maintainer</dt> <dd>{{ rpkg.maintainer }}</dd>
            <dt>Comment</dt> <dd>{{ rpkg.comment }}</dd>
            <dt>License</dt> <dd>{{ rpkg.license }}</dd>
            <dt>Updated</dt> <dd>{{ rpkg.updated }}</dd>
          <dt>Main page</dt> <dd>{% if rpkg.main_page %}<a href="{{ rpkg.main_page }}">{{ rpkg.main_page }}</a>{% else %}—{% endif %}</dd>
         <dt>Build page</dt> <dd><a href="{{ rpkg.build_page }}">{{ rpkg.build_page }}</a></dd>
Guilhem Saurel's avatar
Guilhem Saurel committed
77
78
</dl>

79
80
81
82
83
<h4>gitlab-ci configuration</h4>
<pre>
{{ rpkg.gitlabciyml }}
</pre>

Guilhem Saurel's avatar
Guilhem Saurel committed
84
{% endfor %}
85
{% endif %}
Guilhem Saurel's avatar
Guilhem Saurel committed
86

Guilhem Saurel's avatar
Guilhem Saurel committed
87
{% endblock %}