You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/12/15 18:33:29 UTC

[GitHub] [daffodil-site] stevedlawrence commented on a diff in pull request #102: Update release artifact and checksum URLs

stevedlawrence commented on code in PR #102:
URL: https://github.com/apache/daffodil-site/pull/102#discussion_r1050009014


##########
site/_includes/download-list.html:
##########
@@ -1,7 +1,8 @@
 {% for file in include.artifacts %}
 <div class="row">
   <div class="col-sm-6">
-    <a href="{{ include.artifact-root | append: include.prefix | append: file }}">{{ file }}</a>
+    {% if include.apache %} {% assign params = "?action=download" %} {% endif %}
+    <a href="{{ include.artifact-root | append: include.prefix | append: file | append: params }}">{{ file }}</a>

Review Comment:
   On our download page we list both Apache releases and non-Apache release made before Daffodil joined the apache incubator. This condition makes it so only releases made after that get the `?action=download` thing. The `page.apache` thing is a flag in each release page that says whether or not it's one of these Apache release.



##########
site/_layouts/release.html:
##########
@@ -45,6 +45,7 @@ <h4>Source</h4>
              checksum-root=page.checksum-root
              artifact-root=page.artifact-root
              prefix=prefix
+             apache=page.apache

Review Comment:
   Yep



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org