<%# # encoding: utf-8 #-- # Copyright (C) 2012-2013 Gitorious AS # # 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 . #++ %>
<% @title = "#{path == '' ? './' : path} in #{ref}" levels = accumulate_path(partition_path(path, respond_to?(:maxdepth) ? maxdepth : nil)) %>
<%= tree_context(repository_slug, ref, levels) %> <% tree_entries(tree).each do |object| %> <%= tree_table_padding_td(levels) %> <% end %>
File Changed Last commit
<%= object[:name] %>
<% if readme %>

<%= readme[:path] %>

<% begin %> <%= format_blob(readme[:path], readme[:blob].text(nil, defined?(Encoding) ? Encoding.default_external : nil), repository_slug, ref) %> <% rescue StandardError => err %>

Failed to render <%= readme[:path] %>

<% end %>
<% end %>