This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.0 has been updated
       via  28af7fd46f0fa7446261293f37541cba5f60eebc (commit)
      from  2f2067ed2d106628efd7c5ce47399e47239c50af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=28af7fd46f0fa7446261293f37541cba5f60eebc

commit 28af7fd46f0fa7446261293f37541cba5f60eebc
Author: Sylvain Beucler <[email protected]>
Date:   Tue Jun 23 13:54:47 2015 +0200

    FRS: don't hide download links behind a layer of javascript (+ indent)

diff --git a/src/common/frs/views/listpackages.php 
b/src/common/frs/views/listpackages.php
index 67fa9fb..5dd595c 100644
--- a/src/common/frs/views/listpackages.php
+++ b/src/common/frs/views/listpackages.php
@@ -97,7 +97,13 @@ if (count($FRSPackages) < 1) {
                $package_ziplink = '';
                if ($FRSPackageReleases && $num_releases >= 1 && 
class_exists('ZipArchive') && 
file_exists($FRSPackage->getReleaseZipPath($FRSPackage->getNewestReleaseID()))) 
{
                        // display link to latest-release-as-zip
-                       $package_ziplink = html_e('span', array('class' => 
'frs-zip-package'), util_make_link('#', $HTML->getZipPic(_('Download the newest 
release as ZIP.').' '._('This link always points to the newest release as a ZIP 
file.')), array('onclick' => 
'location:href=\''.util_make_uri('/frs/download.php/latestzip/'.$FRSPackage->getID().'/'.$FRSPackage->getNewestReleaseZipName()).'\''),
 true));
+                       $package_ziplink = html_e('span',
+                         array('class' => 'frs-zip-package'),
+                         util_make_link(
+                           
util_make_uri('/frs/download.php/latestzip/'.$FRSPackage->getID()
+                             .'/'.$FRSPackage->getNewestReleaseZipName()),
+                           $HTML->getZipPic(_('Download the newest release as 
ZIP.')
+                             .' '._('This link always points to the newest 
release as a ZIP file.'))));
                }
                echo html_e('h2', array('id' => 'title_'. 
$package_name_protected), html_entity_decode($package_name).html_e('span', 
array('class' => 'frs-monitor-package'), $package_monitor).$package_ziplink);
 
@@ -110,7 +116,11 @@ if (count($FRSPackages) < 1) {
                                $ziplink = '';
                                if (class_exists('ZipArchive')) {
                                        if 
(file_exists($FRSPackage->getReleaseZipPath($package_release_id))) {
-                                               $ziplink .= util_make_link('#', 
$HTML->getZipPic(_('Download this release as ZIP.').' '._('This link always 
points to this release as a ZIP file.')), array('onclick' => 
'location:href=\''.util_make_uri('/frs/download.php/zip/'.$FRSPackageRelease->getID().'/'.$package_name.'-'.$FRSPackageRelease->getName().'.zip').'\''),
 true);
+                                               $ziplink .= util_make_link(
+                                                 
util_make_uri('/frs/download.php/zip/'.$FRSPackageRelease->getID()
+                                                   
.'/'.$package_name.'-'.$FRSPackageRelease->getName().'.zip'),
+                                                 $HTML->getZipPic(_('Download 
this release as ZIP.')
+                                                   .' '._('This link always 
points to this release as a ZIP file.')));
                                        }
                                }
                                // Switch whether release_id exists and/or 
release_id is current one

-----------------------------------------------------------------------

Summary of changes:
 src/common/frs/views/listpackages.php | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to