Sha256: fe7710ece3aa92e5bdc77c12938ea81d0eddfc5147c9bd11f47a063b1d9a47a1

Contents?: true

Size: 1.92 KB

Versions: 2

Compression:

Stored size: 1.92 KB

Contents

- if @diff["patterns"]
  %a.scope_anchor{ id: "users" }
  .scope#users_container
    .row
      .col-xs-1
        %a{ href: "#users" }
          %img.over.scope_logo_big{ :src => "/assets/logo-users.png",
            "data-toggle" => "popover",
            :title => "Users",
            "data-content" => "#{scope_help("users")}" }
        %span.toggle{ title: "Collapse/Expand" }
      .col-xs-11
        %h2
          Users
          .scope-summary
            - if @diff["users"].only_in1
              %span.summary-part
                #{@description_a.name}: #{@diff["users"].only_in1.length} users
            - if @diff["users"].only_in2
              %span.summary-part
                #{@description_b.name}: #{@diff["users"].only_in2.length} users
            - if @diff["users"].common
              %span.summary-part
                %a.show-common-elements{ href: "#users_both" }<
                  both
                = ": #{@diff["users"].common.length} users"
    .row.scope_content.collapse.in
      .row
        .col-xs-1
        .col-xs-5.table_container
          - if @diff["users"].only_in1
            = only_in_a
            = render_partial "compare/user_list", list: @diff["users"].only_in1
        .col-xs-1
        .col-xs-5.table_container
          - if @diff["users"].only_in2
            = only_in_b
            = render_partial "compare/user_list", list: @diff["users"].only_in2
      - if @diff["users"].common
        %a.both_anchor{ id: "users_both" }
        .row
          .col-xs-1
          .col-xs-2
            %a.show-common-elements{ href: "#users_both" }
              Show common elements in users
            %a.hide-common-elements{ href: "#", style: "display: none" }
              Hide common elements in users
        .row.scope_common_content.collapse
          .col-xs-1
          .col-xs-10.table_container
            = in_both
            = render_partial "compare/user_list", list: @diff["users"].common

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
machinery-tool-1.14.2 html/partials/compare/users.html.haml
machinery-tool-1.14.1 html/partials/compare/users.html.haml