- if @diff["unmanaged_files"] - scope = "unmanaged_files" %a.scope_anchor{ id: scope } .scope#unmanaged_files_container .row .col-xs-1 %a.btn.btn-default.btn-lg.scope_logo_big{ :href => "##{scope}", :title => scope_title(scope), "data-toggle"=>"popover", "data-content" => scope_help(scope) } %span= scope_initials(scope) %span.toggle{ title: "Collapse/Expand" } .col-xs-11 %h2 Unmanaged Files .scope-summary - if @diff["unmanaged_files"].only_in1 %span.summary-part #{@description_a.name}: = pluralize_scope(@diff["unmanaged_files"].only_in1, "file", "files") - if @diff["unmanaged_files"].only_in2 %span.summary-part #{@description_b.name}: = pluralize_scope(@diff["unmanaged_files"].only_in2, "file", "files") - if @diff["unmanaged_files"].changed %span.summary-part %a.show-changed-elements{ href: "#unmanaged_files_changed" } changed = ": #{pluralize_scope(@diff["unmanaged_files"].changed, "file", "files")}" - unless @diff["unmanaged_files"].common.elements.empty? %span.summary-part %a.show-common-elements{ href: "#unmanaged_files_both" }< both = ": #{pluralize_scope(@diff["unmanaged_files"].common, "file", "files")}" .row.scope_content.collapse.in .col-md-12 .row .col-md-6.table_container - if @diff["unmanaged_files"].only_in1 = only_in_a = render_partial "compare/unmanaged_file_list", list: @diff["unmanaged_files"].only_in1 .col-md-6.table_container - if @diff["unmanaged_files"].only_in2 = only_in_b = render_partial "compare/unmanaged_file_list", list: @diff["unmanaged_files"].only_in2 - if @diff["unmanaged_files"].changed %a.both_anchor{ id: "unmanaged_files_changed" } .row .col-md-12.table_container = changed = render_partial "compare/changes", changes: changed_elements("unmanaged_files", key: "name") - unless @diff["unmanaged_files"].common.elements.empty? %a.both_anchor{ id: "unmanaged_files_both" } .row .col-md-12 %a.show-common-elements{ href: "#unmanaged_files_both" } Show common elements in unmanaged-files %a.hide-common-elements{ href: "#", style: "display: none" } Hide common elements in unmanaged-files .row.scope_common_content.collapse .col-md-12.table_container = in_both = render_partial "compare/unmanaged_file_list", list: @diff["unmanaged_files"].common