project_detail.html 807 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% extends 'base.html' %}
{% load django_tables2 bootstrap3 %}

{% block content %}

<div class="clearfix">
  {% if project.main_namespace %}<h2 class="pull-right">{{ project.main_namespace }}</h2>{% endif %}
  <h1>{{ project }}</h1>

  <div class="pull-right">
  {% if project.license %}
  {% bootstrap_label project.license label_class='label label-primary' %}
  {% else %}
  {% bootstrap_label 'UNLICENSED' label_class='label label-warning' %}
  {% endif %}

  {% if project.private %}
  {% bootstrap_label 'private' label_class='label label-danger' %}
  {% else %}
  {% bootstrap_label 'public' label_class='label label-success' %}
  {% endif %}
  </div>

  {% if project.homepage %}<a href="{{ project.homepage }}">{{ project.homepage }}</a>{% endif %}
</div>

{% render_table repos %}

{% endblock %}