##// END OF EJS Templates
HTML escape at app/views/wiki/annotate.rhtml....
Toshi MARUYAMA -
r6275:abdf0fa21c1b
parent child
Show More
@@ -1,34 +1,34
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit') %>
2 <%= link_to(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit') %>
3 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
3 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
4 </div>
4 </div>
5
5
6 <%= wiki_page_breadcrumb(@page) %>
6 <%= wiki_page_breadcrumb(@page) %>
7
7
8 <h2><%=h @page.pretty_title %></h2>
8 <h2><%=h @page.pretty_title %></h2>
9
9
10 <p>
10 <p>
11 <%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %>
11 <%= l(:label_version) %> <%= link_to h(@annotate.content.version), :action => 'show', :id => @page.title, :version => @annotate.content.version %>
12 <em>(<%= @annotate.content.author ? @annotate.content.author.name : "anonyme" %>, <%= format_time(@annotate.content.updated_on) %>)</em>
12 <em>(<%= h(@annotate.content.author ? @annotate.content.author.name : "anonyme") %>, <%= format_time(@annotate.content.updated_on) %>)</em>
13 </p>
13 </p>
14
14
15 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
15 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
16
16
17 <table class="filecontent annotate">
17 <table class="filecontent annotate">
18 <tbody>
18 <tbody>
19 <% line_num = 1 %>
19 <% line_num = 1 %>
20 <% @annotate.lines.each do |line| -%>
20 <% @annotate.lines.each do |line| -%>
21 <tr class="bloc-<%= colors[line[0]] %>">
21 <tr class="bloc-<%= colors[line[0]] %>">
22 <th class="line-num"><%= line_num %></th>
22 <th class="line-num"><%= line_num %></th>
23 <td class="revision"><%= link_to line[0], :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title, :version => line[0] %></td>
23 <td class="revision"><%= link_to line[0], :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title, :version => line[0] %></td>
24 <td class="author"><%= h(line[1]) %></td>
24 <td class="author"><%= h(line[1]) %></td>
25 <td class="line-code"><pre><%=h line[2] %></pre></td>
25 <td class="line-code"><pre><%=h line[2] %></pre></td>
26 </tr>
26 </tr>
27 <% line_num += 1 %>
27 <% line_num += 1 %>
28 <% end -%>
28 <% end -%>
29 </tbody>
29 </tbody>
30 </table>
30 </table>
31
31
32 <% content_for :header_tags do %>
32 <% content_for :header_tags do %>
33 <%= stylesheet_link_tag 'scm' %>
33 <%= stylesheet_link_tag 'scm' %>
34 <% end %>
34 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now