annotate .svn/pristine/33/3349206fec5e88c2e11146378e031801f405150d.svn-base @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %>
Chris@909 2 <%
Chris@909 3 dirs = path.split('/')
Chris@909 4 if 'file' == kind
Chris@909 5 filename = dirs.pop
Chris@909 6 end
Chris@909 7 link_path = ''
Chris@909 8 dirs.each do |dir|
Chris@909 9 next if dir.blank?
Chris@909 10 link_path << '/' unless link_path.empty?
Chris@909 11 link_path << "#{dir}"
Chris@909 12 %>
Chris@909 13 / <%= link_to h(dir), :action => 'show', :id => @project,
Chris@909 14 :path => to_path_param(link_path), :rev => @rev %>
Chris@909 15 <% end %>
Chris@909 16 <% if filename %>
Chris@909 17 / <%= link_to h(filename),
Chris@909 18 :action => 'changes', :id => @project,
Chris@909 19 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
Chris@909 20 <% end %>
Chris@909 21 <%
Chris@909 22 # @rev is revsion or Git and Mercurial branch or tag.
Chris@909 23 # For Mercurial *tip*, @rev and @changeset are nil.
Chris@909 24 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
Chris@909 25 %>
Chris@909 26 <%= "@ #{h rev_text}" unless rev_text.blank? %>
Chris@909 27
Chris@909 28 <% html_title(with_leading_slash(path)) -%>