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 | |
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
-rw-r--r-- | app/views/blobs/show.html.erb | 22 | ||||
-rw-r--r-- | app/views/trees/show.html.erb | 14 | ||||
-rw-r--r-- | public/stylesheets/base.css | 6 |
3 files changed, 27 insertions, 15 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 diff --git a/app/views/trees/show.html.erb b/app/views/trees/show.html.erb index 887431d..b1da8e4 100644 --- a/app/views/trees/show.html.erb +++ b/app/views/trees/show.html.erb @@ -19,9 +19,6 @@ %> <% @page_title = t("views.trees.page_title", :repo => @repository.name, :title => @project.title) -%> -<h1> - <%= t("views.trees.title", :repo => h(@repository.name), :title => h(@project.title)) %> -</h1> <% content_for :submenu do -%> <%= render :partial => "site/breadcrumbs", :locals => {:root => @root} -%> @@ -59,6 +56,17 @@ <% content_for :sidebar do -%> <ul> + <li><strong>Repository:</strong> + <%= link_to(h(@repository.name), repo_owner_path(@repository, :project_repository_path, @repository.project, @repository)) -%> + </li> + <li> + <strong>Project:</strong> + <%= link_to(h(@repository.project.title), @repository.project) -%> + </li> + <li> + <strong>Owner:</strong> + <%= link_to(h(@repository.owner.title), @repository.owner) -%> + </li> <li> <strong><%= t("views.trees.branch") %>:</strong> <%=h @ref -%> diff --git a/public/stylesheets/base.css b/public/stylesheets/base.css index ca742b3..7e7c102 100644 --- a/public/stylesheets/base.css +++ b/public/stylesheets/base.css @@ -808,7 +808,8 @@ table.repository_meta .infobox ul { border-bottom: 1px solid #ddd; margin-bottom: 5px; padding-bottom: 5px; - /*color: #666;*/ + color: #666; + font-size: 12px; } .commit-infobox ul li.avatar div { @@ -1249,6 +1250,9 @@ table tr td.code { font: 95%/110% "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace; border-right: 1px solid #ccc; } +table#codeblob tr td.code { + border-right: none; +} table tr td.code pre { margin: 0; |