annotate .svn/pristine/f9/f997cdb8d5aa036fade9b17162bf4429d398a59e.svn-base @ 1433:cfa80f738847
bibliography_testing
Fixed assertion error message.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Tue, 08 Oct 2013 17:29:47 +0100 |
parents |
038ba2d95de8 |
children |
|
rev |
line source |
Chris@1296
|
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
|
Chris@1296
|
2 :action => 'show', :id => @project,
|
Chris@1296
|
3 :repository_id => @repository.identifier_param,
|
Chris@1296
|
4 :path => nil, :rev => @rev) %>
|
Chris@1296
|
5 <%
|
Chris@1296
|
6 dirs = path.split('/')
|
Chris@1296
|
7 if 'file' == kind
|
Chris@1296
|
8 filename = dirs.pop
|
Chris@1296
|
9 end
|
Chris@1296
|
10 link_path = ''
|
Chris@1296
|
11 dirs.each do |dir|
|
Chris@1296
|
12 next if dir.blank?
|
Chris@1296
|
13 link_path << '/' unless link_path.empty?
|
Chris@1296
|
14 link_path << "#{dir}"
|
Chris@1296
|
15 %>
|
Chris@1296
|
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1296
|
17 :path => to_path_param(link_path), :rev => @rev %>
|
Chris@1296
|
18 <% end %>
|
Chris@1296
|
19 <% if filename %>
|
Chris@1296
|
20 / <%= link_to h(filename),
|
Chris@1296
|
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1296
|
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
|
Chris@1296
|
23 <% end %>
|
Chris@1296
|
24 <%
|
Chris@1296
|
25 # @rev is revsion or Git and Mercurial branch or tag.
|
Chris@1296
|
26 # For Mercurial *tip*, @rev and @changeset are nil.
|
Chris@1296
|
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
|
Chris@1296
|
28 %>
|
Chris@1296
|
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
|
Chris@1296
|
30
|
Chris@1296
|
31 <% html_title(with_leading_slash(path)) -%>
|