@@ -25,7 +25,7 end %> | |||||
25 | <td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td> |
|
25 | <td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td> | |
26 | <td class="revision"><%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td> |
|
26 | <td class="revision"><%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td> | |
27 | <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td> |
|
27 | <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td> | |
28 | <td class="author"><%=h(entry.lastrev.author) if entry.lastrev %></td> |
|
28 | <td class="author"><%=h(entry.lastrev.author.to_s.split('<').first) if entry.lastrev %></td> | |
29 | <% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %> |
|
29 | <% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %> | |
30 | <td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td> |
|
30 | <td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td> | |
31 | </tr> |
|
31 | </tr> |
@@ -17,7 +17,7 | |||||
17 | <td class="checkbox"><%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td> |
|
17 | <td class="checkbox"><%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td> | |
18 | <td class="checkbox"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td> |
|
18 | <td class="checkbox"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td> | |
19 | <td class="committed_on"><%= format_time(changeset.committed_on) %></td> |
|
19 | <td class="committed_on"><%= format_time(changeset.committed_on) %></td> | |
20 | <td class="author"><%=h changeset.committer %></td> |
|
20 | <td class="author"><%=h changeset.committer.to_s.split('<').first %></td> | |
21 | <td class="comments"><%= textilizable(changeset.comments) %></td> |
|
21 | <td class="comments"><%= textilizable(changeset.comments) %></td> | |
22 | </tr> |
|
22 | </tr> | |
23 | <% line_num += 1 %> |
|
23 | <% line_num += 1 %> |
@@ -12,7 +12,7 | |||||
12 | <th class="line-num"><%= line_num %></th> |
|
12 | <th class="line-num"><%= line_num %></th> | |
13 | <td class="revision"> |
|
13 | <td class="revision"> | |
14 | <%= (revision.identifier ? link_to(revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier) : revision.revision) if revision %></td> |
|
14 | <%= (revision.identifier ? link_to(revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier) : revision.revision) if revision %></td> | |
15 | <td class="author"><%= h(revision.author) if revision %></td> |
|
15 | <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td> | |
16 | <td class="line-code"><pre><%= line %></pre></td> |
|
16 | <td class="line-code"><pre><%= line %></pre></td> | |
17 | </tr> |
|
17 | </tr> | |
18 | <% line_num += 1 %> |
|
18 | <% line_num += 1 %> |
@@ -22,7 +22,7 | |||||
22 | <h2><%= l(:label_revision) %> <%= @changeset.revision %></h2> |
|
22 | <h2><%= l(:label_revision) %> <%= @changeset.revision %></h2> | |
23 |
|
23 | |||
24 | <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> |
|
24 | <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> | |
25 | <em><%= @changeset.committer %>, <%= format_time(@changeset.committed_on) %></em></p> |
|
25 | <em><%= @changeset.committer.to_s.split('<').first %>, <%= format_time(@changeset.committed_on) %></em></p> | |
26 |
|
26 | |||
27 | <%= textilizable @changeset.comments %> |
|
27 | <%= textilizable @changeset.comments %> | |
28 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now