diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-03-04 12:32:55 +0100 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-04-22 15:15:44 +0200 |
commit | a8f3987d26f77ec13c3fa0103dc3cd7d9d1f9e7b (patch) | |
tree | b1b1f21fd345855b7ed7ab268162cfdcf0c00674 /app/views/blobs | |
parent | d2b937d0e028987128ae982489f2672e1405fdd5 (diff) | |
download | gitorious-mainline-outdated-a8f3987d26f77ec13c3fa0103dc3cd7d9d1f9e7b.zip gitorious-mainline-outdated-a8f3987d26f77ec13c3fa0103dc3cd7d9d1f9e7b.tar.gz gitorious-mainline-outdated-a8f3987d26f77ec13c3fa0103dc3cd7d9d1f9e7b.tar.bz2 |
Removed headers from blob and tree view
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 |