Commit d6fee65f958d9314bc8810fc0531da1d6f67151f
- Date: Mon Mar 03 21:39:35 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: d6fee65f958d9314bc8810fc0531da1d6f67151f
- Tree SHA1: 6bccf6e45370949138258d698291d30898f49f6d
move tarball download link to bottom, and only show it to logged in users
Commit diff
| |   |
| 1 | 1 | <% @page_title = "Tree for #{@repository.name} in #{@project.title}" -%> |
| 2 | 2 | <h1> |
| 3 | | Tree of <%= h(@repository.name) -%> repository in <%= h(@project.title) -%> <small><%= link_to "[download]", repository_path("archive", @commit.id) -%></small> |
| 3 | Tree of <%= h(@repository.name) -%> repository in <%= h(@project.title) -%> |
| 4 | 4 | </h1> |
| 5 | 5 | |
| 6 | 6 | <%= breadcrumb_path(@repository.name, @commit.id) -%> |
| … | … | |
| 23 | 23 | <% end -%> |
| 24 | 24 | </table> |
| 25 | 25 | <% end -%> |
| 26 | <% if logged_in? -%> |
| 27 | <p> |
| 28 | <small><%= link_to "Download as gzipped tarball", repository_path("archive", @commit.id) -%></small> |
| 29 | </p> |
| 30 | <% end -%> |
| 26 | 31 | |
| 27 | 32 | <% content_for :sidebar do -%> |
| 28 | 33 | <%= render :partial => "tags_and_branches" -%> |
| toggle raw diff |
--- a/app/views/browse/tree.html.erb
+++ b/app/views/browse/tree.html.erb
@@ -1,6 +1,6 @@
<% @page_title = "Tree for #{@repository.name} in #{@project.title}" -%>
<h1>
- Tree of <%= h(@repository.name) -%> repository in <%= h(@project.title) -%> <small><%= link_to "[download]", repository_path("archive", @commit.id) -%></small>
+ Tree of <%= h(@repository.name) -%> repository in <%= h(@project.title) -%>
</h1>
<%= breadcrumb_path(@repository.name, @commit.id) -%>
@@ -23,6 +23,11 @@
<% end -%>
</table>
<% end -%>
+<% if logged_in? -%>
+<p>
+ <small><%= link_to "Download as gzipped tarball", repository_path("archive", @commit.id) -%></small>
+</p>
+<% end -%>
<% content_for :sidebar do -%>
<%= render :partial => "tags_and_branches" -%> |