2011-10-08 23:36:38 +02:00
|
|
|
module CommitsHelper
|
2011-11-28 10:46:41 +01:00
|
|
|
include Utils::CharEncode
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2011-12-01 00:51:04 +01:00
|
|
|
def old_line_number(line, i)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def new_line_number(line, i)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def diff_line_class(line)
|
|
|
|
if line[0] == "+"
|
|
|
|
"new"
|
|
|
|
elsif line[0] == "-"
|
|
|
|
"old"
|
|
|
|
else
|
|
|
|
nil
|
|
|
|
end
|
2011-10-08 23:36:38 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def more_commits_link
|
|
|
|
offset = params[:offset] || 0
|
|
|
|
limit = params[:limit] || 100
|
|
|
|
link_to "More", project_commits_path(@project, :offset => offset.to_i + limit.to_i, :limit => limit),
|
|
|
|
:remote => true, :class => "lite_button vm", :style => "text-align:center; width:930px; ", :id => "more-commits-link"
|
|
|
|
end
|
|
|
|
end
|