File tree Expand file tree Collapse file tree 1 file changed +29
-27
lines changed
ckanext/versions/templates/package/snippets Expand file tree Collapse file tree 1 file changed +29
-27
lines changed Original file line number Diff line number Diff line change 1
1
{% set versions = h.get_package_version_list(pkg.id) %}
2
2
{% if versions|length > 0 %}
3
3
4
- < h3 > Versions</ h3 >
4
+ < section class ="version-info ">
5
+ < h3 > Versions</ h3 >
5
6
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 %}
30
31
31
- </ tbody >
32
- </ table >
32
+ </ tbody >
33
+ </ table >
34
+ </ section >
33
35
{% endif %}
You can’t perform that action at this time.
0 commit comments