summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/entry.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories/entry.html.erb')
-rw-r--r--app/views/repositories/entry.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb
index 2cc1a0859..4f8678bea 100644
--- a/app/views/repositories/entry.html.erb
+++ b/app/views/repositories/entry.html.erb
@@ -10,6 +10,10 @@
<% if Redmine::MimeType.is_type?('image', @path) %>
<%= render :partial => 'common/image', :locals => {:path => @raw_url, :alt => @path} %>
+<% elsif Redmine::MimeType.of(@path) == 'text/x-textile' %>
+ <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'textile', :markup_text => @content} %>
+<% elsif Redmine::MimeType.of(@path) == 'text/markdown' %>
+ <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'markdown', :markup_text => @content} %>
<% elsif @content %>
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% else %>