Skip to content

Commit 635cbc7

Browse files
committed
BUG: Fix download links
The examplename macro stopped working. Use explicit metadata in the header to provide the example name for the zip file.
1 parent 567b01c commit 635cbc7

File tree

408 files changed

+818
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

408 files changed

+818
-12
lines changed

Formatting/templates/relations.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{%- endif %}
2020
{%- endfor -%}
2121
{%- endmacro %}
22-
{%- set tarballname = examplename(pagename)%}
22+
{%- set archivename = examplename(pagename)%}
2323

2424
{%- if prev %}
2525
{%- if slashcount == 4 %}
@@ -62,17 +62,9 @@
6262

6363
{%- if slashcount == 4 %}
6464
<li class="dropdown">
65-
<a role="button"
66-
id="dDownload"
67-
data-toggle="dropdown"
68-
data-target="#"
69-
href="#"><span class="glyphicon glyphicon-download-alt"></span> <span class="hidden-sm hidden-tablet">&nbsp; {{ _('Download') }} <b class="caret"> </span></b></a>
70-
<ul class="dropdown-menu"
71-
role="menu"
72-
aria-labelledby="dDownload">
73-
<li><a href="{{ tarballname ~ ".zip" }}">Packed as .zip</a></li>
74-
<li><a href="{{ tarballname ~ ".tar.gz" }}">Packed as .tar.gz</a></li>
75-
</ul>
65+
<a href="{{ meta.get("name") ~ ".zip" }}">
66+
<span class="glyphicon glyphicon-download-alt"></span> <span class="hidden-sm hidden-tablet">&nbsp; {{ _('Download') }}</span>
67+
</a>
7668
</li>
7769
{%- endif %}
7870

Utilities/CookieCutter/{{cookiecutter.example_name}}/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/ConvertRGBvtkImageDataToAnitkImage/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/VTKImageToITKImage/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/Documentation.rst

Lines changed: 2 additions & 0 deletions

src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/Documentation.rst

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)