Commit dd3eed222803dce209496871fd7e0810f3a557cd
1 parent
2cdb6a2a
Exists in
master
and in
1 other branch
Fixes Download link
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/noosfero-spb/software_communities/views/box_organizer/_download_file.html.erb
1 | 1 | <li class="file-item"> |
2 | 2 | <a onclick="softwareDownload.selectFile(this)"> |
3 | 3 | <i class="fa fa-plus"></i><span class="file-name"><%= file.name%></span> - <span class="file-size"><%= number_to_human_size(file.size, precision: 2) %></span> |
4 | - <%= hidden_field_tag :file_path, "/#{file.profile.identifier}/#{file.path}", :class => "file-path" %> | |
4 | + <%= hidden_field_tag :file_path, url_for(file.url), :class => "file-path" %> | |
5 | 5 | </a> |
6 | 6 | </li> | ... | ... |