diff options
Diffstat (limited to 'app/views/blobs')
-rw-r--r-- | app/views/blobs/show.html.erb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/views/blobs/show.html.erb b/app/views/blobs/show.html.erb index c30fc67..23aa396 100644 --- a/app/views/blobs/show.html.erb +++ b/app/views/blobs/show.html.erb @@ -25,14 +25,13 @@ <% if hl = language_of_file(current_path.last) -%> <%= javascript_include_tag("prettify/lang-#{hl}.js", :cache => false) -%> <% end -%> + <script type="text/javascript" charset="utf-8"> + Event.observe(window, "dom:loaded", function(e){ + prettyPrint(); + }); + </script> <% end -%> -<script type="text/javascript" charset="utf-8"> - Event.observe(window, "load", function(e){ - prettyPrint(); - }); -</script> - <% content_for :submenu do -%> <%= render :partial => "site/breadcrumbs", :locals => {:root => @root} -%> <% end -%> @@ -48,13 +47,8 @@ </ul> <% end -%> -<h1> - <%= t("views.blobs.title", :path => current_path.join("/")) %> - <small>(<%= link_to t("views.blobs.raw"), raw_blob_path(@ref, current_path) -%>)</small> -</h1> <!-- <%= @blob.mime_type -%> --> - <% if @blob.mime_type =~ /^text/ && !too_big_to_render?(@blob.size) -%> <% cache(blob_path(@commit.id, @path)) do -%> <%= render_highlighted(@blob.data, current_path.last || "") -%> @@ -72,3 +66,9 @@ <%= t("views.blobs.message").call(self, @blob.mime_type, raw_blob_path(@commit.id, current_path)) %> </p> <% end -%> + +<div class="page-meta"> + <ul class="page-actions"> + <li><%= link_to t("views.blobs.raw"), raw_blob_path(@ref, current_path) -%></li> + </ul> +</div>
\ No newline at end of file |