Skip to content

Commit bded77a

Browse files
committed
Fix: Section tag in version info
1 parent 7c6b6d5 commit bded77a

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed
Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
{% set versions = h.get_package_version_list(pkg.id) %}
22
{% if versions|length > 0 %}
33

4-
<h3>Versions</h3>
4+
<section class="version-info">
5+
<h3>Versions</h3>
56

6-
<table class="table table-striped table-bordered table-condensed">
7-
<thead>
8-
<tr>
9-
<th scope="col">Version</th>
10-
<th scope="col">Notes</th>
11-
<th scope="col">Published</th>
12-
</tr>
13-
</thead>
14-
<tbody>
15-
{% for version in h.get_package_version_list(pkg.id) %}
16-
<tr>
17-
<td>
18-
{% if (loop.first) %}
19-
{{ version.name }} <span class="badge bg-success pull-right">Latest</span>
20-
{% else %}
21-
<a href="{{ url_for('dataset_version.view_dataset', id=pkg.id, version_id=version.id) }}">
22-
{{ version.name }}
23-
</a>
24-
{% endif %}
25-
</td>
26-
<td>{{ version.notes or "" }}</td>
27-
<td>{{ version.created }}</td>
28-
</tr>
29-
{% endfor %}
7+
<table class="table table-striped table-bordered table-condensed">
8+
<thead>
9+
<tr>
10+
<th scope="col">Version</th>
11+
<th scope="col">Notes</th>
12+
<th scope="col">Published</th>
13+
</tr>
14+
</thead>
15+
<tbody>
16+
{% for version in h.get_package_version_list(pkg.id) %}
17+
<tr>
18+
<td>
19+
{% if (loop.first) %}
20+
{{ version.name }} <span class="badge bg-success pull-right">Latest</span>
21+
{% else %}
22+
<a href="{{ url_for('dataset_version.view_dataset', id=pkg.id, version_id=version.id) }}">
23+
{{ version.name }}
24+
</a>
25+
{% endif %}
26+
</td>
27+
<td>{{ version.notes or "" }}</td>
28+
<td>{{ version.created }}</td>
29+
</tr>
30+
{% endfor %}
3031

31-
</tbody>
32-
</table>
32+
</tbody>
33+
</table>
34+
</section>
3335
{% endif %}

0 commit comments

Comments
 (0)