Commit a7ca8359501ef623dbf0d30eaf7e042897665d77
Committed by
Álvaro Fernando Matos de Souza
1 parent
e5476e19
Exists in
master
and in
5 other branches
Fix download block. Now it redirects when it's not a file to download
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/blocks/download.html.erb
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <% block.downloads.each_with_index do |download, index| %> | 7 | <% block.downloads.each_with_index do |download, index| %> |
8 | <div id="download-info-<%=(index+1)%>"> | 8 | <div id="download-info-<%=(index+1)%>"> |
9 | <div id="version01"> | 9 | <div id="version01"> |
10 | - <%= link_to download[:link], title: _("Download the software"), download: block.owner.name do %> | 10 | + <%= link_to download[:link], title: _("Download the software") do %> |
11 | <span id="image-download"></span> | 11 | <span id="image-download"></span> |
12 | <span id="size-download"><%= download[:size] %></span> | 12 | <span id="size-download"><%= download[:size] %></span> |
13 | <% end %> | 13 | <% end %> |