Use image preview in sidebar attachments list.
This commit is contained in:
parent
04c1cf2fb9
commit
a11fb318d4
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
<div class="attachment-icon">
|
||||
<% if attachment.preferences && attachment.preferences['Content-Type'] && @ContentTypeIcon(attachment.preferences['Content-Type']): %>
|
||||
<% if @canPreview(attachment.preferences['Content-Type']): %>
|
||||
<img src="<%= App.Config.get('api_path') %>/ticket_attachment/<%= @article.ticket_id %>/<%= @article.id %>/<%= attachment.id %>">
|
||||
<img src="<%= App.Config.get('api_path') %>/ticket_attachment/<%= @article.ticket_id %>/<%= @article.id %>/<%= attachment.id %>?view=preview">
|
||||
<% else: %>
|
||||
<%- @Icon( @ContentTypeIcon(attachment.preferences['Content-Type']) ) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue