<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2009 Bill Marquette # Copyright (C) 2008 Fabio Akita # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Johan Sørensen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <% @page_title = t("views.trees.page_title", :repo => @repository.name, :title => @project.title) -%> <%= breadcrumbs_from(@root) -%> <%= cache(tree_path(@commit.id, @path) + @ref) do -%> <% @tree.contents.select{|c| c.is_a? Grit::Tree}.sort_by{|c| force_utf8(c.name).downcase}.each do |node| -%> "> <% end -%> <% @tree.contents.select{|c| !c.is_a? Grit::Tree}.sort_by{|c| force_utf8(c.name).downcase}.each do |node| -%> "> <% if node.is_a? Grit::Submodule -%> <% else -%> <% end -%> <% if node.is_a? Grit::Submodule -%> <% else -%> <% if !too_many_entries_for_log?(@tree) && last_commit = commit_for_tree_path(@repository, node.name) -%> <% else -%> <% end -%> <% end -%> <% end -%>
<%= link_to h(node.basename) + "/", tree_path(@ref, node.name) -%>
<%= h(node.basename) -%> <%= link_to h(node.basename), blob_path(@ref, node.name).gsub("%2F","/") -%> submodule: <%= h(node.url(@ref)) -%><%= l(last_commit.committed_date, :format => :short) -%> <%= link_to truncate(h(last_commit.message), :length => 75, :omission => "…"), commit_path(last_commit.id) -%>
<% end -%> <%= content_for :sidebar do -%> <%= cache([tree_path(@commit.id), :tags_and_branches], {:expires_in => 10.minutes}) do -%> <% unless @git.tags.blank? -%> <% end -%> <% end # cache() -%> <% end -%>