##// END OF EJS Templates
replaced deprecated human_size by number_to_human_size...
Jean-Philippe Lang -
r182:0d55613359d9
parent child
Show More
@@ -1,37 +1,37
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
3 3 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
4 4 </div>
5 5
6 6 <h2><%= @document.title %></h2>
7 7
8 8 <p><em><%= @document.category.name %><br />
9 9 <%= format_date @document.created_on %></em></p>
10 10 <%= textilizable @document.description %>
11 11 <br />
12 12
13 13 <h3><%= l(:label_attachment_plural) %></h3>
14 14 <ul class="documents">
15 15 <% for attachment in @attachments %>
16 16 <li>
17 17 <div class="contextual">
18 18 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
19 19 </div>
20 20 <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
21 (<%= human_size attachment.filesize %>)<br />
21 (<%= number_to_human_size attachment.filesize %>)<br />
22 22 <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
23 23 <%= lwr(:label_download, attachment.downloads) %>
24 24 </li>
25 25 <% end %>
26 26 </ul>
27 27 <br />
28 28
29 29
30 30 <% if authorize_for('documents', 'add_attachment') %>
31 31 <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %>
32 32 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
33 33 <%= image_to_function "add.png", "addFileField();return false" %></label>
34 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
34 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
35 35 <%= submit_tag l(:button_add) %>
36 36 <% end %>
37 37 <% end %>
@@ -1,100 +1,100
1 1 <% pdf.SetFont('Arial','B',11)
2 2 pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.long_id} - #{issue.subject}")
3 3 pdf.Ln
4 4
5 5 y0 = pdf.GetY
6 6
7 7 pdf.SetFont('Arial','B',9)
8 8 pdf.Cell(35,5, l(:field_status) + ":","LT")
9 9 pdf.SetFont('Arial','',9)
10 10 pdf.Cell(60,5, issue.status.name,"RT")
11 11 pdf.SetFont('Arial','B',9)
12 12 pdf.Cell(35,5, l(:field_priority) + ":","LT")
13 13 pdf.SetFont('Arial','',9)
14 14 pdf.Cell(60,5, issue.priority.name,"RT")
15 15 pdf.Ln
16 16
17 17 pdf.SetFont('Arial','B',9)
18 18 pdf.Cell(35,5, l(:field_author) + ":","L")
19 19 pdf.SetFont('Arial','',9)
20 20 pdf.Cell(60,5, issue.author.name,"R")
21 21 pdf.SetFont('Arial','B',9)
22 22 pdf.Cell(35,5, l(:field_category) + ":","L")
23 23 pdf.SetFont('Arial','',9)
24 24 pdf.Cell(60,5, (issue.category ? issue.category.name : "-"),"R")
25 25 pdf.Ln
26 26
27 27 pdf.SetFont('Arial','B',9)
28 28 pdf.Cell(35,5, l(:field_created_on) + ":","L")
29 29 pdf.SetFont('Arial','',9)
30 30 pdf.Cell(60,5, format_date(issue.created_on),"R")
31 31 pdf.SetFont('Arial','B',9)
32 32 pdf.Cell(35,5, l(:field_assigned_to) + ":","L")
33 33 pdf.SetFont('Arial','',9)
34 34 pdf.Cell(60,5, (issue.assigned_to ? issue.assigned_to.name : "-"),"R")
35 35 pdf.Ln
36 36
37 37 pdf.SetFont('Arial','B',9)
38 38 pdf.Cell(35,5, l(:field_updated_on) + ":","LB")
39 39 pdf.SetFont('Arial','',9)
40 40 pdf.Cell(60,5, format_date(issue.updated_on),"RB")
41 41 pdf.SetFont('Arial','B',9)
42 42 pdf.Cell(35,5, l(:field_due_date) + ":","LB")
43 43 pdf.SetFont('Arial','',9)
44 44 pdf.Cell(60,5, format_date(issue.due_date),"RB")
45 45 pdf.Ln
46 46
47 47 for custom_value in issue.custom_values
48 48 pdf.SetFont('Arial','B',9)
49 49 pdf.Cell(35,5, custom_value.custom_field.name + ":","L")
50 50 pdf.SetFont('Arial','',9)
51 51 pdf.MultiCell(155,5, (show_value custom_value),"R")
52 52 end
53 53
54 54 pdf.SetFont('Arial','B',9)
55 55 pdf.Cell(35,5, l(:field_subject) + ":","LTB")
56 56 pdf.SetFont('Arial','',9)
57 57 pdf.Cell(155,5, issue.subject,"RTB")
58 58 pdf.Ln
59 59
60 60 pdf.SetFont('Arial','B',9)
61 61 pdf.Cell(35,5, l(:field_description) + ":")
62 62 pdf.SetFont('Arial','',9)
63 63 pdf.MultiCell(155,5, issue.description,"BR")
64 64
65 65 pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY)
66 66 pdf.Line(pdf.GetX, pdf.GetY, 170, pdf.GetY)
67 67
68 68 pdf.Ln
69 69
70 70 pdf.SetFont('Arial','B',9)
71 71 pdf.Cell(190,5, l(:label_history), "B")
72 72 pdf.Ln
73 73 for journal in issue.journals.find(:all, :include => :user, :order => "journals.created_on desc")
74 74 pdf.SetFont('Arial','B',8)
75 75 pdf.Cell(190,5, format_time(journal.created_on) + " - " + journal.user.name)
76 76 pdf.Ln
77 77 pdf.SetFont('Arial','I',8)
78 78 for detail in journal.details
79 79 pdf.Cell(190,5, "- " + show_detail(detail, true))
80 80 pdf.Ln
81 81 end
82 82 if journal.notes?
83 83 pdf.SetFont('Arial','',8)
84 84 pdf.MultiCell(190,5, journal.notes)
85 85 end
86 86 pdf.Ln
87 87 end
88 88
89 89 pdf.SetFont('Arial','B',9)
90 90 pdf.Cell(190,5, l(:label_attachment_plural), "B")
91 91 pdf.Ln
92 92 for attachment in issue.attachments
93 93 pdf.SetFont('Arial','',8)
94 94 pdf.Cell(80,5, attachment.filename)
95 pdf.Cell(20,5, human_size(attachment.filesize),0,0,"R")
95 pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R")
96 96 pdf.Cell(20,5, format_date(attachment.created_on),0,0,"R")
97 97 pdf.Cell(70,5, attachment.author.name,0,0,"R")
98 98 pdf.Ln
99 99 end
100 100 %> No newline at end of file
@@ -1,111 +1,111
1 1 <div class="contextual">
2 2 <%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'icon icon-pdf' %>
3 3 </div>
4 4
5 5 <h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%=h @issue.subject %></h2>
6 6
7 7 <div class="box">
8 8 <table width="100%">
9 9 <tr>
10 10 <td style="width:15%"><b><%=l(:field_status)%> :</b></td><td style="width:35%"><%= @issue.status.name %></td>
11 11 <td style="width:15%"><b><%=l(:field_priority)%> :</b></td><td style="width:35%"><%= @issue.priority.name %></td>
12 12 </tr>
13 13 <tr>
14 14 <td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? @issue.assigned_to.name : "-" %></td>
15 15 <td><b><%=l(:field_category)%> :</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td>
16 16 </tr>
17 17 <tr>
18 18 <td><b><%=l(:field_author)%> :</b></td><td><%= link_to_user @issue.author %></td>
19 19 <td><b><%=l(:field_start_date)%> :</b></td><td><%= format_date(@issue.start_date) %></td>
20 20 </tr>
21 21 <tr>
22 22 <td><b><%=l(:field_created_on)%> :</b></td><td><%= format_date(@issue.created_on) %></td>
23 23 <td><b><%=l(:field_due_date)%> :</b></td><td><%= format_date(@issue.due_date) %></td>
24 24 </tr>
25 25 <tr>
26 26 <td><b><%=l(:field_updated_on)%> :</b></td><td><%= format_date(@issue.updated_on) %></td>
27 27 <td><b><%=l(:field_done_ratio)%> :</b></td><td><%= @issue.done_ratio %> %</td>
28 28 </tr>
29 29 <tr>
30 30 <td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? @issue.fixed_version.name : "-" %></td>
31 31 <td></td><td></td>
32 32 </tr>
33 33 <tr>
34 34 <% n = 0
35 35 for custom_value in @custom_values %>
36 36 <td><b><%= custom_value.custom_field.name %> :</b></td><td><%=h show_value custom_value %></td>
37 37 <% n = n + 1
38 38 if (n > 1)
39 39 n = 0 %>
40 40 </tr><tr>
41 41 <%end
42 42 end %>
43 43 </tr>
44 44 </table>
45 45 <hr />
46 46 <br />
47 47
48 48 <b><%=l(:field_description)%> :</b><br /><br />
49 49 <%= textilizable @issue.description %>
50 50 <br />
51 51
52 52 <div class="contextual">
53 53 <%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %>
54 54 <%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %>
55 55 <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
56 56 </div>
57 57
58 58 <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
59 59 <% form_tag ({:controller => 'issues', :action => 'change_status', :id => @issue}) do %>
60 60 <%=l(:label_change_status)%> :
61 61 <select name="new_status_id">
62 62 <%= options_from_collection_for_select @status_options, "id", "name" %>
63 63 </select>
64 64 <%= submit_tag l(:button_change) %>
65 65 <% end %>
66 66 <% end %>
67 67 &nbsp;
68 68 </div>
69 69
70 70 <div id="history" class="box">
71 71 <h3><%=l(:label_history)%>
72 72 <% if @journals_count > @journals.length %>(<%= l(:label_last_changes, @journals.length) %>)<% end %></h3>
73 73 <%= render :partial => 'history', :locals => { :journals => @journals } %>
74 74 <% if @journals_count > @journals.length %>
75 75 <p><center><small>[ <%= link_to l(:label_change_view_all), :action => 'history', :id => @issue %> ]</small></center></p>
76 76 <% end %>
77 77 </div>
78 78
79 79 <div class="box">
80 80 <h3><%=l(:label_attachment_plural)%></h3>
81 81 <table width="100%">
82 82 <% for attachment in @issue.attachments %>
83 83 <tr>
84 <td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon icon-attachment' %> (<%= human_size(attachment.filesize) %>)</td>
84 <td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon icon-attachment' %> (<%= number_to_human_size(attachment.filesize) %>)</td>
85 85 <td><%= format_date(attachment.created_on) %></td>
86 86 <td><%= attachment.author.display_name %></td>
87 87 <td><div class="contextual"><%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment }, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %></div></td>
88 88 </tr>
89 89 <% end %>
90 90 </table>
91 91 <br />
92 92 <% if authorize_for('issues', 'add_attachment') %>
93 93 <% form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %>
94 94 <p id="attachments_p"><label><%=l(:label_attachment_new)%>
95 95 <%= image_to_function "add.png", "addFileField();return false" %></label>
96 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
96 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
97 97 <%= submit_tag l(:button_add) %>
98 98 <% end %>
99 99 <% end %>
100 100 </div>
101 101
102 102 <% if authorize_for('issues', 'add_note') %>
103 103 <div class="box">
104 104 <h3><%= l(:label_add_note) %></h3>
105 105 <% form_tag ({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular" ) do %>
106 106 <p><label for="notes"><%=l(:field_notes)%></label>
107 107 <%= text_area_tag 'notes', '', :cols => 60, :rows => 10 %></p>
108 108 <%= submit_tag l(:button_add) %>
109 109 <% end %>
110 110 </div>
111 111 <% end %>
@@ -1,15 +1,15
1 1 <h2><%=l(:label_document_new)%></h2>
2 2
3 3 <% form_tag( { :action => 'add_document', :id => @project }, :class => "tabular", :multipart => true) do %>
4 4 <%= render :partial => 'documents/form' %>
5 5
6 6 <div class="box">
7 7 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
8 8 <%= image_to_function "add.png", "addFileField();return false" %></label>
9 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
9 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
10 10 </div>
11 11
12 12 <%= submit_tag l(:button_create) %>
13 13 <% end %>
14 14
15 15
@@ -1,15 +1,15
1 1 <h2><%=l(:label_attachment_new)%></h2>
2 2
3 3 <%= error_messages_for 'attachment' %>
4 4 <div class="box">
5 5 <% form_tag({ :action => 'add_file', :id => @project }, :multipart => true, :class => "tabular") do %>
6 6
7 7 <p><label for="version_id"><%=l(:field_version)%> <span class="required">*</span></label>
8 8 <%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %></p>
9 9
10 10 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
11 11 <%= image_to_function "add.png", "addFileField();return false" %></label>
12 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
12 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
13 13 </div>
14 14 <%= submit_tag l(:button_add) %>
15 15 <% end %> No newline at end of file
@@ -1,57 +1,57
1 1 <h2><%=l(:label_issue_new)%>: <%= @tracker.name %></h2>
2 2
3 3 <% labelled_tabular_form_for :issue, @issue, :url => {:action => 'add_issue'}, :html => {:multipart => true} do |f| %>
4 4 <%= error_messages_for 'issue' %>
5 5 <div class="box">
6 6 <!--[form:issue]-->
7 7 <%= hidden_field_tag 'tracker_id', @tracker.id %>
8 8
9 9 <div class="splitcontentleft">
10 10 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
11 11 <p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p>
12 12 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %></p>
13 13 </div>
14 14 <div class="splitcontentright">
15 15 <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p>
16 16 <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p>
17 17 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
18 18 </div>
19 19
20 20 <div class="clear">
21 21 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
22 22 <p><%= f.text_area :description, :cols => 60, :rows => 10, :required => true %></p>
23 23
24 24 <% for @custom_value in @custom_values %>
25 25 <p><%= custom_field_tag_with_label @custom_value %></p>
26 26 <% end %>
27 27
28 28 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
29 29 <%= image_to_function "add.png", "addFileField();return false" %></label>
30 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
30 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
31 31
32 32 </div>
33 33 <!--[eoform:issue]-->
34 34 </div>
35 35 <%= submit_tag l(:button_create) %>
36 36 <% end %>
37 37
38 38 <% if Setting.text_formatting == 'textile' %>
39 39 <%= javascript_include_tag 'jstoolbar' %>
40 40 <script type="text/javascript">
41 41 //<![CDATA[
42 42 if (document.getElementById) {
43 43 if (document.getElementById('issue_description')) {
44 44 var commentTb = new jsToolBar(document.getElementById('issue_description'));
45 45 commentTb.draw();
46 46 }
47 47 }
48 48 //]]>
49 49 </script>
50 50 <% end %>
51 51
52 52 <% content_for :header_tags do %>
53 53 <%= javascript_include_tag 'calendar/calendar' %>
54 54 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
55 55 <%= javascript_include_tag 'calendar/calendar-setup' %>
56 56 <%= stylesheet_link_tag 'calendar' %>
57 57 <% end %> No newline at end of file
@@ -1,44 +1,44
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'icon icon-add' %>
3 3 </div>
4 4
5 5 <h2><%=l(:label_attachment_plural)%></h2>
6 6
7 7 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
8 8
9 9 <table class="list">
10 10 <thead><tr>
11 11 <th><%=l(:field_version)%></th>
12 12 <th><%=l(:field_filename)%></th>
13 13 <th><%=l(:label_date)%></th>
14 14 <th><%=l(:field_filesize)%></th>
15 15 <th>D/L</th>
16 16 <th>MD5</th>
17 17 <% if delete_allowed %><th></th><% end %>
18 18 </tr></thead>
19 19 <tbody>
20 20 <% for version in @versions %>
21 21 <% unless version.attachments.empty? %>
22 22 <tr><th colspan="7" align="left"><span class="icon icon-package"><b><%= version.name %></b></span></th></tr>
23 23 <% for file in version.attachments %>
24 24 <tr class="<%= cycle("odd", "even") %>">
25 25 <td></td>
26 26 <td><%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %></td>
27 27 <td align="center"><%= format_date(file.created_on) %></td>
28 <td align="center"><%= human_size(file.filesize) %></td>
28 <td align="center"><%= number_to_human_size(file.filesize) %></td>
29 29 <td align="center"><%= file.downloads %></td>
30 30 <td align="center"><small><%= file.digest %></small></td>
31 31 <% if delete_allowed %>
32 32 <td align="center">
33 33 <div class="contextual">
34 34 <%= link_to_if_authorized '', {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
35 35 </div>
36 36 </td>
37 37 <% end %>
38 38 </tr>
39 39 <% end
40 40 reset_cycle %>
41 41 <% end %>
42 42 <% end %>
43 43 </tbody>
44 44 </table> No newline at end of file
@@ -1,23 +1,23
1 1 <table class="list">
2 2 <thead><tr>
3 3 <th><%= l(:field_name) %></th>
4 4 <th><%= l(:field_filesize) %></th>
5 5 <th><%= l(:label_revision) %></th>
6 6 <th><%= l(:field_author) %></th>
7 7 <th><%= l(:label_date) %></th>
8 8 </tr></thead>
9 9 <tbody>
10 10 <% total_size = 0
11 11 @entries.each do |entry| %>
12 12 <tr class="<%= cycle 'odd', 'even' %>">
13 13 <td><%= link_to h(entry.name), { :action => (entry.is_dir? ? 'browse' : 'revisions'), :id => @project, :path => entry.path, :rev => @rev }, :class => ("icon " + (entry.is_dir? ? 'icon-folder' : 'icon-file')) %></td>
14 <td align="right"><%= human_size(entry.size) unless entry.is_dir? %></td>
14 <td align="right"><%= number_to_human_size(entry.size) unless entry.is_dir? %></td>
15 15 <td align="right"><%= link_to entry.lastrev.identifier, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier %></td>
16 16 <td align="center"><em><%=h entry.lastrev.author %></em></td>
17 17 <td align="center"><%= format_time(entry.lastrev.time) %></td>
18 18 </tr>
19 19 <% total_size += entry.size
20 20 end %>
21 21 </tbody>
22 22 </table>
23 <p class="textright"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p> No newline at end of file
23 <p class="textright"><em><%= l(:label_total) %>: <%= number_to_human_size(total_size) %></em></p> No newline at end of file
@@ -1,41 +1,41
1 1 <div class="contextual">
2 2 <% form_tag do %>
3 3 <p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
4 4 <%= submit_tag 'OK' %></p>
5 5 <% end %>
6 6 </div>
7 7
8 8 <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2>
9 9
10 10 <% if @entry.is_file? %>
11 11 <h3><%=h @entry.name %></h3>
12 <p><%= link_to 'Download', {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }, :class => "icon file" %> (<%= human_size @entry.size %>)</p>
12 <p><%= link_to 'Download', {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }, :class => "icon file" %> (<%= number_to_human_size @entry.size %>)</p>
13 13 <% end %>
14 14
15 15 <h3>Revisions</h3>
16 16
17 17 <table class="list">
18 18 <thead><tr>
19 19 <th>#</th>
20 20 <th><%= l(:field_author) %></th>
21 21 <th><%= l(:label_date) %></th>
22 22 <th><%= l(:field_description) %></th>
23 23 <th></th>
24 24 </tr></thead>
25 25 <tbody>
26 26 <% @revisions.each do |revision| %>
27 27 <tr class="<%= cycle 'odd', 'even' %>">
28 28 <th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>
29 29 <td align="center"><em><%=h revision.author %></em></td>
30 30 <td align="center"><%= format_time(revision.time) %></td>
31 31 <td style="width:70%"><%= textilizable(revision.message) %></td>
32 32 <td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>
33 33 </tr>
34 34 <% end %>
35 35 </tbody>
36 36 </table>
37 37 <p><%= lwr(:label_modification, @revisions.length) %></p>
38 38
39 39 <% content_for :header_tags do %>
40 40 <%= stylesheet_link_tag "scm" %>
41 41 <% end %> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now