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:29:38 UTC

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

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


##########
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:
   I assume the reason for this new line is to make the params conditional?



##########
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:
   Why make the params conditional?



-- 
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