diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/common/_other.html.erb | 1 | ||||
-rw-r--r-- | app/views/repositories/entry.html.erb | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/views/common/_other.html.erb b/app/views/common/_other.html.erb new file mode 100644 index 000000000..fe0228a50 --- /dev/null +++ b/app/views/common/_other.html.erb @@ -0,0 +1 @@ +<p class="nodata"><%= l(:label_no_preview) %></p> diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb index d9b5be9ab..37a5db961 100644 --- a/app/views/repositories/entry.html.erb +++ b/app/views/repositories/entry.html.erb @@ -10,8 +10,10 @@ <% if Redmine::MimeType.is_type?('image', @path) %> <%= render :partial => 'common/image', :locals => {:path => url_for(params.merge(:action => 'raw')), :alt => @path} %> -<% else %> +<% elsif @content %> <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> +<% else %> + <%= render :partial => 'common/other' %> <% end %> <% content_for :header_tags do %> |