aboutsummaryrefslogtreecommitdiffstats
path: root/templates/layerindex/reviewdetail.html
blob: 7885d1b1808a2ad6d3fb1183344b9e1a65dae85d (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{% extends "base.html" %}
{% load i18n %}
{% load static %}

{% comment %}

  layerindex-web - review layer detail page template

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

{% endcomment %}


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

{% block content %}

{% autoescape on %}


        <div class="container-fluid">
            <div class="row-fluid">
                <div class="page-header">
                    <h1>{{ layeritem.name }}
                        {% if layerbranch.yp_compatible_version %}
                        <a href="{{layerbranch.yp_compatible_version.link_url }}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
                        {% endif %}
                        {% if layeritem.status == "N" %}
                            <span class="label label-warning">Unpublished</span>
                        {% else %}
                            <span class="label label-info">Published</span>
                        {% endif %}
                        {% if user.is_authenticated %}
                            <span class="pull-right">
                                {% if perms.layerindex.publish_layer or useredit %}
                                    <a href="{% url 'edit_layer' 'master' layeritem.name %}?returnto=layer_review" class="btn">Edit layer</a>
                                    {% if layeritem.layernote_set.count == 0 %}
                                        <a href="{% url 'add_layernote' layeritem.name %}" class="btn">Add note</a>
                                    {% endif %}
                                {% endif %}
                                {% if layeritem.status == "N" and perms.layerindex.publish_layer %}
                                    <a href="{% url 'delete_layer' layeritem.name %}" class="btn btn-warning">Delete layer</a>
                                    <a href="{% url 'publish' layeritem.name %}" class="btn btn-primary">Publish layer</a>
                                {% endif %}
                            </span>
                        {% endif %}
                    </h1>
                </div>
            </div> <!--  end of row-fluid -->
        </div> <!-- end of container-fluid -->

        <div class="container-fluid">
            <div class="row-fluid">
                {% for note in layeritem.layernote_set.all %}
                    <div class="alert">
                        <p>{{ note.text }}</p>
                        {% if perms.layerindex.publish_layer or useredit %}
                            <p>
                                <a href="{% url 'edit_layernote' layeritem.name note.pk %}" class="btn">Edit note</a>
                                <a href="{% url 'delete_layernote' layeritem.name note.pk %}" class='btn'>Delete note</a>
                            </p>
                        {% endif %}
                    </div>
                {% endfor %}
            </div>

            <div class="row-fluid">
                <div>

                    <table class="table table-striped table-bordered">
                        <tbody>
                            <tr>
                                <th>Name</th>
                                <td>{{ layeritem.name }}</td>
                            </tr>
                            <tr>
                                <th>Type</th>
                                <td>{{ layeritem.get_layer_type_display }}</td>
                            </tr>
                            <tr>
                                <th>Summary</th>
                                <td>{{ layeritem.summary }}</td>
                            </tr>
                            <tr>
                                <th>Description</th>
                                <td>{{ layeritem.description }}</td>
                            </tr>
                            <tr>
                                <th>Repository</th>
                                <td>{{ layeritem.vcs_url }}</td>
                            </tr>
                            <tr>
                                <th>Repository subdirectory</th>
                                <td>{{ layerbranch.vcs_subdir }}</td>
                            </tr>
                            <tr>
                                <th>Repo web interface</th>
                                <td>
                                    {% if layeritem.vcs_web_url %}
                                        <a href="{{ layeritem.vcs_web_url }}">{{ layeritem.vcs_web_url }}</a>
                                    {% endif %}
                                </td>
                            </tr>
                            <tr>
                                <th>Repo web interface test links</th>
                                <td>
                                    {% if layeritem.vcs_web_file_base_url %}
                                    <span class="label label-important">
                                        <a href="{{ layerbranch.test_file_url }}">test file link</a>
                                    </span>
                                    {% else %}
                                    <span class="label">
                                        No base file URL provided
                                    </span>
                                    {% endif %}
                                    {% if layeritem.vcs_web_tree_base_url %}
                                    <span class="label label-important">
                                        <a href="{{ layerbranch.test_tree_url }}">test tree link</a>
                                    </span>
                                    {% else %}
                                    <span class="label">
                                        No base tree URL provided
                                    </span>
                                    {% endif %}
                                </td>
                            </tr>
                            <tr>
                                <th>Setup info URL</th>
                                <td>
                                    {% if layeritem.usage_url %}
                                        <a href="{{ layerbranch.get_usage_url }}">{{ layeritem.usage_url }}</a>
                                    {% endif %}
                                </td>
                            </tr>
                            <tr>
                                <th>Mailing list URL</th>
                                <td>
                                    {% if layeritem.mailing_list_url %}
                                        <a href="{{ layerbranch.mailing_list_url }}">{{ layeritem.mailing_list_url }}</a>
                                    {% endif %}
                                </td>
                            </tr>
                            <tr>
                                <th>Maintainers</th>
                                <td>
                                    <ul class="unstyled">
                                        {% for maintainer in layerbranch.active_maintainers %}
                                        <li>
                                            {{ maintainer.name }}
                                            {% if maintainer.responsibility %}
                                                <span>({{ maintainer.responsibility }})</span>
                                            {% endif %}
                                            - <a href="mailto:{{ maintainer.email }}">{{ maintainer.email }}</a>
                                        </li>
                                        {% endfor %}
                                    </ul>
                                </td>
                            </tr>
                            <tr>
                                <th>Dependencies</th>
                                <td>
                                    <ul class="unstyled">
                                        {% for dep in layerbranch.dependencies_set.all %}
                                            <li><a href="{% url 'layer_item' 'master' dep.dependency.name %}">{{ dep.dependency.name }}</a></li>
                                        {% endfor %}
                                    </ul>
                                </td>
                            </tr>
                        </tbody>
                    </table>


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


{% endautoescape %}

{% endblock %}