##// END OF EJS Templates
Add inline image preview/display for attachments and repository entries (#22058)....
Add inline image preview/display for attachments and repository entries (#22058). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15324 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14942:2fbce6515d6f
r14942:2fbce6515d6f
Show More
entry.html.erb
19 lines | 713 B | text/plain | TextLexer
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
<div class="contextual">
<%= render :partial => 'navigation' %>
</div>
<h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
<%= render :partial => 'link_to_functions' %>
<% if Redmine::MimeType.is_type?('image', @path) %>
<%= render :partial => 'common/image', :locals => {:path => url_for(params.merge(:action => 'raw')), :alt => @path} %>
<% else %>
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>