<%= [sdm_header "Diff"] %>

History Diff

<%= [ad_context_bar_ws_or_index [sdm_home_context_bar_item] [sdm_package_context_bar_item $package_id $package_name] [list "package-repository.tcl?[export_url_vars package_id current_entry]" "One Source File"] "History Diff"] %>

<% if {[sdm_sourcecode_entry_has_parent $current_entry]} { set parent_entry [sdm_sourcecode_entry_parent_entry $current_entry] ns_puts "[sdm_sourcecode_entry_path $parent_entry]/[sdm_sourcecode_entry_name $parent_entry]" } %> /<%= [sdm_sourcecode_entry_name $current_entry] %>

<% foreach diff_item $diff { switch [lindex $diff_item 0] { nochange { set old_color "#dddddd" set new_color "#dddddd" set old [lindex $diff_item 1] set new [lindex $diff_item 1] } add { set old_color "white" set new_color "yellow" set old "" set new [lindex $diff_item 1] } delete { set old_color "yellow" set new_color "white" set old [lindex $diff_item 1] set new "" } change { set old_color "yellow" set new_color "yellow" set old [lindex $diff_item 1] set new [lindex $diff_item 2] } } ns_puts "" } %>
Revision ><%= $old_release %> Revision ><%= $new_release %>
[ns_quotehtml $old]
[ns_quotehtml $new]

<%= [sdm_footer] %>