diff --git a/app/views/common/_file.rhtml b/app/views/common/_file.rhtml
new file mode 100644
index 000000000..43f5c6c4b
--- /dev/null
+++ b/app/views/common/_file.rhtml
@@ -0,0 +1,11 @@
+
diff --git a/app/views/repositories/entry.rhtml b/app/views/repositories/entry.rhtml
index 309da76fc..8e1e1992c 100644
--- a/app/views/repositories/entry.rhtml
+++ b/app/views/repositories/entry.rhtml
@@ -1,16 +1,6 @@
<%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %>
-
+<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>