##// END OF EJS Templates
Removed hard-coded style on wiki history view....
Jean-Philippe Lang -
r4531:e7a9c386efc9
parent child
Show More
@@ -4,7 +4,7
4
4
5 <% form_tag({:action => "diff"}, :method => :get) do %>
5 <% form_tag({:action => "diff"}, :method => :get) do %>
6 <%= hidden_field_tag('project_id', h(@project.to_param)) %>
6 <%= hidden_field_tag('project_id', h(@project.to_param)) %>
7 <table class="list">
7 <table class="list wiki-page-versions">
8 <thead><tr>
8 <thead><tr>
9 <th>#</th>
9 <th>#</th>
10 <th></th>
10 <th></th>
@@ -18,14 +18,14
18 <% show_diff = @versions.size > 1 %>
18 <% show_diff = @versions.size > 1 %>
19 <% line_num = 1 %>
19 <% line_num = 1 %>
20 <% @versions.each do |ver| %>
20 <% @versions.each do |ver| %>
21 <tr class="<%= cycle("odd", "even") %>">
21 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
22 <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
22 <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
23 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
23 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
24 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
24 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
25 <td align="center"><%= format_time(ver.updated_on) %></td>
25 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
26 <td><%= link_to_user ver.author %></td>
26 <td class="author"><%= link_to_user ver.author %></td>
27 <td><%=h ver.comments %></td>
27 <td class="comments"><%=h ver.comments %></td>
28 <td align="center"><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %></td>
28 <td class="buttons"><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %></td>
29 </tr>
29 </tr>
30 <% line_num += 1 %>
30 <% line_num += 1 %>
31 <% end %>
31 <% end %>
@@ -179,6 +179,8 tr.user td { white-space: nowrap; }
179 tr.user.locked, tr.user.registered { color: #aaa; }
179 tr.user.locked, tr.user.registered { color: #aaa; }
180 tr.user.locked a, tr.user.registered a { color: #aaa; }
180 tr.user.locked a, tr.user.registered a { color: #aaa; }
181
181
182 tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
183
182 tr.time-entry { text-align: center; white-space: nowrap; }
184 tr.time-entry { text-align: center; white-space: nowrap; }
183 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
185 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
184 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
186 td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
General Comments 0
You need to be logged in to leave comments. Login now