#2896 Drop download link from deleted build
Merged 11 months ago by tkopecek. Opened a year ago by jcupova.
jcupova/koji issue-2557  into  master

file modified
+7 -1
@@ -137,6 +137,8 @@ 

              <td></td>

              #if $rpm.metadata_only

              <td>$rpmfile (<a href="rpminfo?rpmID=$rpm.id">info</a>) (metadata only)</td>

+             #elif $build.state == $koji.BUILD_STATES.DELETED

+             <td>$rpmfile (<a href="rpminfo?rpmID=$rpm.id">info</a>)

              #else

              <td>$rpmfile (<a href="rpminfo?rpmID=$rpm.id">info</a>) (<a href="$nvrpath/$rpmpath">download</a>)</td>

              #end if
@@ -157,7 +159,11 @@ 

              #set $rpmpath = $pathinfo.rpm($rpm)

              <td></td>

              <td>

+               #if $build.state != $koji.BUILD_STATES.DELETED

                $rpmfile (<a href="rpminfo?rpmID=$rpm.id">info</a>) (<a href="$nvrpath/$rpmpath">download</a>)

+               #else

+               $rpmfile (<a href="rpminfo?rpmID=$rpm.id">info</a>)

+               #end if

              </td>

            </tr>

            #end for
@@ -186,7 +192,7 @@ 

            <tr>

              <td/>

              <td>

-             #if $archive.metadata_only

+             #if $archive.metadata_only or $build.state == $koji.BUILD_STATES.DELETED

              $archive.display (<a href="archiveinfo?archiveID=$archive.id">info</a>)

              #else

              $archive.display (<a href="archiveinfo?archiveID=$archive.id">info</a>) (<a href="$archive.dl_url">download</a>)

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

a year ago

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

11 months ago

Commit 65497d7 fixes this pull-request

Pull-Request has been merged by tkopecek

11 months ago