Last active
August 29, 2015 14:02
-
-
Save mi-yo/c9c8d669525659e61693 to your computer and use it in GitHub Desktop.
Redmine 2.5.1 issues show line number.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- app/views/issues/_list.html.erb.org 2014-03-30 01:56:38 +0900 | |
+++ app/views/issues/_list.html.erb 2014-06-23 17:44:49 +0900 | |
@@ -4,6 +4,9 @@ | |
<table class="list issues"> | |
<thead> | |
<tr> | |
+ <th> | |
+ <%= raw("LN") %> | |
+ </th> | |
<th class="checkbox hide-when-print"> | |
<%= link_to image_tag('toggle_check.png'), {}, | |
:onclick => 'toggleIssuesSelection(this); return false;', | |
@@ -16,6 +19,9 @@ | |
</thead> | |
<% previous_group = false %> | |
<tbody> | |
+ <% | |
+ line_number = @offset + 1 | |
+ %> | |
<% issue_list(issues) do |issue, level| -%> | |
<% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> | |
<% reset_cycle %> | |
@@ -30,8 +36,12 @@ | |
<% previous_group = group %> | |
<% end %> | |
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | |
+ <td><%= line_number %></td> | |
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td> | |
<%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %> | |
+ <% | |
+ line_number = line_number + 1 | |
+ %> | |
</tr> | |
<% @query.block_columns.each do |column| | |
if (text = column_content(column, issue)) && text.present? -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment