Merge pull request #951 from robbkidd/remove_link_to_function

Replace calls to deprecated link_to_function with doc-ready functions.
This commit is contained in:
Valeriy Sizov 2012-06-20 10:43:32 -07:00
commit 65c35394eb
5 changed files with 17 additions and 14 deletions

View file

@ -1,6 +1,6 @@
- too_big = max_lines = diff.diff.lines.count > 1000
- if too_big
= link_to_function "Diff suppressed. Click to show", "showDiff(this)", :class => "supp_diff_link"
%a.supp_diff_link Diff suppressed. Click to show
%table{:class => "#{'hide' if too_big}"}
- each_diff_line(diff.diff.lines.to_a, index) do |line, type, line_code, line_new, line_old|

View file

@ -1,4 +1,4 @@
- unless @commits.empty?
- if @commits.present?
.ui-box
%h5 Commits (#{@commits.count})
.merge-request-commits
@ -9,7 +9,7 @@
%li.bottom
8 of #{@commits.count} commits displayed.
%strong
= link_to_function "Click here to show all", "MergeRequest.showAllCommits()"
%a.show_all Click here to show all
%ul.all_mr_commits.hide.unstyled
- @commits.each do |commit|
= render "commits/commit", :commit => commit