aboutsummaryrefslogtreecommitdiffstats
path: root/templates/gitrefinery/release_oneline.html
blob: 0987f04c3a868e8bfd4ab7264375f51a7db1b2fb (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{% extends "base.html" %}
{% load i18n %}
{% load static %}

{% comment %}

  git-refinery-web - release one-line list page template

  Copyright (C) 2014 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}


<!--
{% autoescape on %}
{% block title_append %} - {{ release.name }}{% endblock %}
{% endautoescape %}
-->

{% block content %}

{% autoescape on %}
        <ul class="breadcrumb">
            <li><a href="{% url 'repositories' %}">repositories</a> <span class="divider">&rarr;</span></li>
            <li><a href="{% url 'repository' release.repository.name %}">{{ release.repository.name }}</a> <span class="divider">&rarr;</span></li>
            <li class="active">{{ release.name }}</li>
        </ul>

        <div class="container-fluid">
            <div class="row">
                <div class="page-header">
                    <h1>{{ release.name }}</h1>
                </div>
            </div> <!--  end of row -->
        </div> <!-- end of container-fluid -->

        <div class="container-fluid">

            <div class="row">
                <form id="filter-form" class="form-inline" action="{% url 'release' release.id %}" method="get">
                    <input type="text" class="input-xlarge" placeholder="Search commits" name="q" value="{{ search_keyword }}" />
                    <input type="text" class="input-small" placeholder="label" name="label" value="{{ search_label }}" />
                    <button class="btn btn-default" type="submit">Search</button>
                </form>
            </div>

            {% if commits %}

                    <table class="table table-striped table-bordered">
                        <thead>
                            <tr>
                                <th class="col-md-8">Message</th>
                            </tr>
                        </thead>

                        <tbody>
                            {% for commit in commits %}
                                <tr>
                                    <td>{{ commit.shortlog }}</td>
                                </tr>
                            {% endfor %}
                        </tbody>
                    </table>
                </form>

            {% else %}
                <p>No matching commits found for this release.</p>
            {% endif %}

        </div> <!-- end of container-fluid -->


{% endautoescape %}

{% endblock %}