##// END OF EJS Templates
Rails3: view: html_safe for parents and children revisions...
Toshi MARUYAMA -
r7914:10ae93826e14
parent child
Show More
@@ -1,97 +1,97
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 28 <table class="revision-info">
29 29 <% if @changeset.scmid %>
30 30 <tr>
31 31 <td>ID</td><td><%= h(@changeset.scmid) %></td>
32 32 </tr>
33 33 <% end %>
34 34 <% unless @changeset.parents.blank? %>
35 35 <tr>
36 36 <td><%= l(:label_parent_revision) %></td>
37 37 <td>
38 38 <%= @changeset.parents.collect{
39 39 |p| link_to_revision(p, @project, :text => format_revision(p))
40 }.join(", ") %>
40 }.join(", ").html_safe %>
41 41 </td>
42 42 </tr>
43 43 <% end %>
44 44 <% unless @changeset.children.blank? %>
45 45 <tr>
46 46 <td><%= l(:label_child_revision) %></td>
47 47 <td>
48 48 <%= @changeset.children.collect{
49 49 |p| link_to_revision(p, @project, :text => format_revision(p))
50 }.join(", ") %>
50 }.join(", ").html_safe %>
51 51 </td>
52 52 </tr>
53 53 <% end %>
54 54 </table>
55 55 <p>
56 56 <span class="author">
57 57 <%= authoring(@changeset.committed_on, @changeset.author) %>
58 58 </span>
59 59 </p>
60 60
61 61 <%= textilizable @changeset.comments %>
62 62
63 63 <% if @changeset.issues.visible.any? %>
64 64 <h3><%= l(:label_related_issues) %></h3>
65 65 <ul>
66 66 <% @changeset.issues.visible.each do |issue| %>
67 67 <li><%= link_to_issue issue %></li>
68 68 <% end %>
69 69 </ul>
70 70 <% end %>
71 71
72 72 <% if User.current.allowed_to?(:browse_repository, @project) %>
73 73 <h3><%= l(:label_attachment_plural) %></h3>
74 74 <ul id="changes-legend">
75 75 <li class="change change-A"><%= l(:label_added) %></li>
76 76 <li class="change change-M"><%= l(:label_modified) %></li>
77 77 <li class="change change-C"><%= l(:label_copied) %></li>
78 78 <li class="change change-R"><%= l(:label_renamed) %></li>
79 79 <li class="change change-D"><%= l(:label_deleted) %></li>
80 80 </ul>
81 81
82 82 <p><%= link_to(l(:label_view_diff),
83 83 :action => 'diff',
84 84 :id => @project,
85 85 :path => "",
86 86 :rev => @changeset.identifier) if @changeset.changes.any? %></p>
87 87
88 88 <div class="changeset-changes">
89 89 <%= render_changeset_changes %>
90 90 </div>
91 91 <% end %>
92 92
93 93 <% content_for :header_tags do %>
94 94 <%= stylesheet_link_tag "scm" %>
95 95 <% end %>
96 96
97 97 <% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>
General Comments 0
You need to be logged in to leave comments. Login now