Revision 442:753f1380d6bc app/views/repositories/.svn/text-base

View differences:

app/views/repositories/.svn/text-base/_breadcrumbs.rhtml.svn-base
10 10
    link_path << '/' unless link_path.empty?
11 11
    link_path << "#{dir}" 
12 12
    %>
13
    / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %>
13
    / <%= link_to h(dir), :action => 'show', :id => @project,
14
                :path => to_path_param(link_path), :rev => @rev %>
14 15
<% end %>
15 16
<% if filename %>
16
    / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
17
    / <%= link_to h(filename),
18
                   :action => 'changes', :id => @project,
19
                   :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
17 20
<% end %>
18

  
19
<%= "@ #{h format_revision(@changeset)}" if @changeset %>
21
<%
22
  # @rev is revsion or Git and Mercurial branch or tag.
23
  # For Mercurial *tip*, @rev and @changeset are nil.
24
  rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
25
%>
26
<%= "@ #{h rev_text}" unless rev_text.blank? %>
20 27

  
21 28
<% html_title(with_leading_slash(path)) -%>
app/views/repositories/.svn/text-base/_dir_list.rhtml.svn-base
3 3
<tr id="root">
4 4
<th><%= l(:field_name) %></th>
5 5
<th><%= l(:field_filesize) %></th>
6
<th><%= l(:label_revision) %></th>
7
<th><%= l(:label_age) %></th>
8
<th><%= l(:field_author) %></th>
9
<th><%= l(:field_comments) %></th>
6
<% if @repository.report_last_commit %>
7
<th><%= l(:label_revision)  %></th>
8
<th><%= l(:label_age)       %></th>
9
<th><%= l(:field_author)    %></th>
10
<th><%= l(:field_comments)  %></th>
11
<% end %>
10 12
</tr>
11 13
</thead>
12 14
<tbody>
app/views/repositories/.svn/text-base/_dir_list_content.rhtml.svn-base
1 1
<% @entries.each do |entry| %>
2 2
<% tr_id = Digest::MD5.hexdigest(entry.path)
3 3
   depth = params[:depth].to_i %>
4
<%  ent_path = replace_invalid_utf8(entry.path)   %>
5
<%  ent_name = replace_invalid_utf8(entry.name)   %>
4
<%  ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path)   %>
5
<%  ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name)   %>
6 6
<tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
7
<td style="padding-left: <%=18 * depth%>px;" class="filename">
7
<td style="padding-left: <%=18 * depth%>px;" class="<%=
8
           @repository.report_last_commit ? "filename" : "filename_no_report" %>";>
8 9
<% if entry.is_dir? %>
9 10
<span class="expander" onclick="<%=  remote_function :url => {:action => 'show', :id => @project, :path => to_path_param(ent_path), :rev => @rev, :depth => (depth + 1), :parent_id => tr_id},
10 11
                  :method => :get,
......
19 20
</td>
20 21
<td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
21 22
<% changeset = @project.repository.find_changeset_by_name(entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %>
23
<% if @repository.report_last_commit %>
22 24
<td class="revision"><%= link_to_revision(changeset, @project) if changeset %></td>
23 25
<td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
24
<td class="author"><%= changeset.nil? ? h(replace_invalid_utf8(entry.lastrev.author.to_s.split('<').first)) : changeset.author if entry.lastrev %></td>
26
<td class="author"><%= changeset.nil? ? h(Redmine::CodesetUtil.replace_invalid_utf8(entry.lastrev.author.to_s.split('<').first)) : changeset.author if entry.lastrev %></td>
25 27
<td class="comments"><%=h truncate(changeset.comments, :length => 50) unless changeset.nil? %></td>
28
<% end %>
26 29
</tr>
27 30
<% end %>
app/views/repositories/.svn/text-base/revision.rhtml.svn-base
13 13
  <% end -%>
14 14
  &#187;&nbsp;
15 15

  
16
  <% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %>
16
  <% form_tag({:controller => 'repositories',
17
               :action     => 'revision',
18
               :id         => @project,
19
               :rev        => nil},
20
               :method     => :get) do %>
17 21
    <%= text_field_tag 'rev', @rev, :size => 8 %>
18 22
    <%= submit_tag 'OK', :name => nil %>
19 23
  <% end %>
......
38 42
<% if User.current.allowed_to?(:browse_repository, @project) %>
39 43
<h3><%= l(:label_attachment_plural) %></h3>
40 44
<ul id="changes-legend">
41
<li class="change change-A"><%= l(:label_added) %></li>
45
<li class="change change-A"><%= l(:label_added)    %></li>
42 46
<li class="change change-M"><%= l(:label_modified) %></li>
43
<li class="change change-C"><%= l(:label_copied) %></li>
44
<li class="change change-R"><%= l(:label_renamed) %></li>
45
<li class="change change-D"><%= l(:label_deleted) %></li>
47
<li class="change change-C"><%= l(:label_copied)   %></li>
48
<li class="change change-R"><%= l(:label_renamed)  %></li>
49
<li class="change change-D"><%= l(:label_deleted)  %></li>
46 50
</ul>
47 51

  
48
<p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.identifier) if @changeset.changes.any? %></p>
52
<p><%= link_to(l(:label_view_diff),
53
               :action => 'diff',
54
               :id     => @project,
55
               :path   => "",
56
               :rev    => @changeset.identifier) if @changeset.changes.any? %></p>
49 57

  
50 58
<div class="changeset-changes">
51 59
<%= render_changeset_changes %>
app/views/repositories/.svn/text-base/revisions.rhtml.svn-base
1 1
<div class="contextual">
2 2
<% form_tag({:action => 'revision', :id => @project}) do %>
3
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %>
4
<%= submit_tag 'OK' %>
3
<%=   l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %>
4
<%=   submit_tag 'OK' %>
5 5
<% end %>
6 6
</div>
7 7

  
8 8
<h2><%= l(:label_revision_plural) %></h2>
9 9

  
10
<%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
10
<%= render :partial => 'revisions',
11
           :locals => {:project   => @project,
12
                       :path      => '', 
13
                       :revisions => @changesets,
14
                       :entry     => nil } %>
11 15

  
12 16
<p class="pagination"><%= pagination_links_full @changeset_pages,@changeset_count %></p>
13 17

  
14 18
<% content_for :header_tags do %>
15
<%= stylesheet_link_tag "scm" %>
16
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
19
<%=   stylesheet_link_tag "scm" %>
20
<%=   auto_discovery_link_tag(
21
               :atom,
22
               params.merge(
23
                 {:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
17 24
<% end %>
18 25

  
19 26
<% other_formats_links do |f| %>
app/views/repositories/.svn/text-base/show.rhtml.svn-base
12 12

  
13 13
<%= render_properties(@properties) %>
14 14

  
15
<% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
15
<% if authorize_for('repositories', 'revisions') %>
16
<%   if @changesets && !@changesets.empty? %>
16 17
<h3><%= l(:label_latest_revision_plural) %></h3>
17
<%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => nil }%>
18
<%=    render :partial => 'revisions',
19
              :locals => {:project => @project, :path => @path,
20
                          :revisions => @changesets, :entry => nil }%>
21
<%   end %>
22
<p>
23
<%
24
     has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
25
     sep = ''
26
 %>
27
<%   if @repository.supports_all_revisions? && @path.blank? %>
28
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
29
<%   sep = '|' %>
30
<%   end %>
31
<%
32
     if @repository.supports_directory_revisions? &&
33
         ( has_branches || !@path.blank? || !@rev.blank? )
34
 %>
35
<%= sep %>
36
<%=
37
    link_to l(:label_view_revisions),
38
                   :action => 'changes',
39
                   :path   => to_path_param(@path),
40
                   :id     => @project,
41
                   :rev    => @rev
42
                   %>
43
<%   end %>
44
</p>
18 45

  
19
<% if @path.blank? %>
20
	<p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
21
<% else %>
22
	<p><%= link_to l(:label_view_revisions), :action => 'changes', :path => to_path_param(@path), :id => @project %></p>
23
<% end %>
46
<%   if true # @path.blank? %>
47
<%     content_for :header_tags do %>
48
  <%= auto_discovery_link_tag(
49
                   :atom, params.merge(
50
                      {:format => 'atom', :action => 'revisions',
51
                       :id => @project, :page => nil, :key => User.current.rss_key})) %>
52
<%     end %>
24 53

  
25
<% content_for :header_tags do %>
26
  <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
27
<% end %>
28

  
29
<% other_formats_links do |f| %>
30
	<%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
31
<% end %>
54
<%     other_formats_links do |f| %>
55
  <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
56
<%     end %>
57
<%   end %>
32 58
<% end %>
33 59

  
34 60
<% content_for :header_tags do %>

Also available in: Unified diff