版本 redmine3.4.6,系统 windows server 8
在网上搜到是在 apps\redmine\htdocs\app\views\attachments_links.html.erb 文件下加以下代码块,但是重启 redmine 之后图片预览失败,请问有人知道怎么解决吗?
<% images = attachments.select { |a| a.image? } %>
<% unless images.empty? %>
<% images.each do |attachment| %>
<%= link_to image_tag(url_for({:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filename })),
{:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filename }, :class => 'lightbox', :rel => 'attachments', :title => "#{attachment.filename}#{ ('-' + attachment.description) unless attachment.description.blank? }" %>
<% end -%>
<% end -%>