diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-08-19 21:21:40 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-08-19 21:21:40 +0200 |
commit | caec47b75d132b98a1b251448a46d3756d05c7b8 (patch) | |
tree | 3e0caaf68b66138e7531bfe22ca0ba7693561e38 | |
parent | 1dd61073aa449e6f2bc13e44775ed2edf03914fb (diff) |
hide "Latest release" on client page if there is none
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/controllers/file.php | 4 | ||||
-rw-r--r-- | application/views/file/client.php | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 1cff27fa9..13787eeb6 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -58,7 +58,9 @@ class File extends CI_Controller { function client() { $data['title'] = 'Client'; - $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; + if ($this->var->latest_client) { + $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; + } $data['client_link_dir'] = base_url().'data/client/'; $data['client_link_deb'] = base_url().'data/client/deb/'; $data['client_link_slackware'] = base_url().'data/client/slackware/'; diff --git a/application/views/file/client.php b/application/views/file/client.php index 2c4491542..6069c62b1 100644 --- a/application/views/file/client.php +++ b/application/views/file/client.php @@ -5,7 +5,7 @@ cat file | curl -n -F "file=@-;filename=stdin" <?php echo site_url(); ?> (bina </pre> <p><b>Client:</b></p> <p>Development (git): <a href="http://git.server-speed.net/users/flo/fb/">http://git.server-speed.net/users/flo/fb/</a><br /> -Latest release: <a href="<?php echo $client_link; ?>"><?php echo $client_link; ?></a>.<br /> +<?php if($client_link) {?>Latest release: <a href="<?php echo $client_link; ?>"><?php echo $client_link; ?></a>.<br /><?php }; ?> GPG sigs, older versions: <a href="<?php echo $client_link_dir; ?>"><?php echo $client_link_dir; ?></a> </p> <p>If you want to use authentication (needed for deleting) add the following to your ~/.netrc:</p> |