##// END OF EJS Templates
Prevent empty table from being rendered....
Jean-Philippe Lang -
r8385:9b27e1cd83df
parent child
Show More
@@ -1,97 +1,100
1 1 <div class="contextual">
2 2 &#171;
3 3 <% unless @changeset.previous.nil? -%>
4 4 <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %>
5 5 <% else -%>
6 6 <%= l(:label_previous) %>
7 7 <% end -%>
8 8 |
9 9 <% unless @changeset.next.nil? -%>
10 10 <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %>
11 11 <% else -%>
12 12 <%= l(:label_next) %>
13 13 <% end -%>
14 14 &#187;&nbsp;
15 15
16 16 <% form_tag({:controller => 'repositories',
17 17 :action => 'revision',
18 18 :id => @project,
19 19 :rev => nil},
20 20 :method => :get) do %>
21 21 <%= text_field_tag 'rev', @rev, :size => 8 %>
22 22 <%= submit_tag 'OK', :name => nil %>
23 23 <% end %>
24 24 </div>
25 25
26 26 <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
27 27
28 <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
28 29 <table class="revision-info">
29 <% if @changeset.scmid %>
30 <% if @changeset.scmid.present? %>
30 31 <tr>
31 32 <td>ID</td><td><%= h(@changeset.scmid) %></td>
32 33 </tr>
33 34 <% end %>
34 <% unless @changeset.parents.blank? %>
35 <% if @changeset.parents.present? %>
35 36 <tr>
36 37 <td><%= l(:label_parent_revision) %></td>
37 38 <td>
38 39 <%= @changeset.parents.collect{
39 40 |p| link_to_revision(p, @project, :text => format_revision(p))
40 41 }.join(", ").html_safe %>
41 42 </td>
42 43 </tr>
43 44 <% end %>
44 <% unless @changeset.children.blank? %>
45 <% if @changeset.children.present? %>
45 46 <tr>
46 47 <td><%= l(:label_child_revision) %></td>
47 48 <td>
48 49 <%= @changeset.children.collect{
49 50 |p| link_to_revision(p, @project, :text => format_revision(p))
50 51 }.join(", ").html_safe %>
51 52 </td>
52 53 </tr>
53 54 <% end %>
54 55 </table>
56 <% end %>
57
55 58 <p>
56 59 <span class="author">
57 60 <%= authoring(@changeset.committed_on, @changeset.author) %>
58 61 </span>
59 62 </p>
60 63
61 64 <%= textilizable @changeset.comments %>
62 65
63 66 <% if @changeset.issues.visible.any? %>
64 67 <h3><%= l(:label_related_issues) %></h3>
65 68 <ul>
66 69 <% @changeset.issues.visible.each do |issue| %>
67 70 <li><%= link_to_issue issue %></li>
68 71 <% end %>
69 72 </ul>
70 73 <% end %>
71 74
72 75 <% if User.current.allowed_to?(:browse_repository, @project) %>
73 76 <h3><%= l(:label_attachment_plural) %></h3>
74 77 <ul id="changes-legend">
75 78 <li class="change change-A"><%= l(:label_added) %></li>
76 79 <li class="change change-M"><%= l(:label_modified) %></li>
77 80 <li class="change change-C"><%= l(:label_copied) %></li>
78 81 <li class="change change-R"><%= l(:label_renamed) %></li>
79 82 <li class="change change-D"><%= l(:label_deleted) %></li>
80 83 </ul>
81 84
82 85 <p><%= link_to(l(:label_view_diff),
83 86 :action => 'diff',
84 87 :id => @project,
85 88 :path => "",
86 89 :rev => @changeset.identifier) if @changeset.changes.any? %></p>
87 90
88 91 <div class="changeset-changes">
89 92 <%= render_changeset_changes %>
90 93 </div>
91 94 <% end %>
92 95
93 96 <% content_for :header_tags do %>
94 97 <%= stylesheet_link_tag "scm" %>
95 98 <% end %>
96 99
97 100 <% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>
General Comments 0
You need to be logged in to leave comments. Login now