From 5b78418e74319cf4db3c598e2f46b01555fc001e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 20 Jan 2016 04:26:15 +0000 Subject: [PATCH] exposed the actual download links in the code file/folder views --- codepot/src/codepot/views/code_file.php | 3 ++- codepot/src/codepot/views/code_folder.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 78a8f035..0a329135 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -268,7 +268,8 @@ $this->load->view ( print anchor ('#', $diff_anchor_text, 'id="code_file_diff_button"'); print anchor ('#', $fulldiff_anchor_text, 'id="code_file_fulldiff_button"'); print anchor ('#', $history_anchor_text, 'id="code_file_history_button"'); - print anchor ('#', $download_anchor_text, 'id="code_file_download_button"'); + //print anchor ('', $download_anchor_text, 'id="code_file_download_button"'); + print anchor ("code/fetch/{$project->id}/${hex_headpath}{$revreq}", $download_anchor_text, 'id="code_file_download_button"'); print anchor ('#', $this->lang->line('Enstyle'), 'id="code_file_style_button"'); print ''; diff --git a/codepot/src/codepot/views/code_folder.php b/codepot/src/codepot/views/code_folder.php index 10ca64c3..b3eb20f3 100644 --- a/codepot/src/codepot/views/code_folder.php +++ b/codepot/src/codepot/views/code_folder.php @@ -853,7 +853,8 @@ $this->load->view ( } print anchor ('#', $history_anchor_text, 'id="code_folder_history_button"'); - print anchor ('#', $download_anchor_text, 'id="code_folder_download_button"'); + //print anchor ('#', $download_anchor_text, 'id="code_folder_download_button"'); + print anchor ("code/fetch/{$project->id}/${hex_headpath}{$revreq}", $download_anchor_text, 'id="code_folder_download_button"'); print ''; print 'LOC-';