Sha256: ec1f5a53babbb8532be8ef99ced168b63984ca2ec7640d3bab2a71fbeb33d7f4

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

%head
  %title
    Pacts
  %link{rel: 'stylesheet', href: '/css/bootstrap.min.css'}
  %link{rel: 'stylesheet', href: '/stylesheets/relationships.css'}
  %script{type: 'text/javascript', src:'/javascripts/jquery-2.1.1.min.js'}
  %script{type: 'text/javascript', src:'/javascripts/jquery.tablesorter.min.js'}
%body
  %nav.navbase-default.navbar-right{role: "navigation"}
    .container
      %ul
        %li.navbar-right
          %a{href: '/hal-browser/browser.html'}
            HAL Browser
  .container
    %h1.page-header
      Pacts
    %table.table.table-bordered.table-striped{id: 'relationships'}
      %thead
        %th
        %th.consumer
          Consumer
          %span.glyphicon.glyphicon-sort.relationships-sort
        %th.pact

        %th.provider
          Provider
          %span.glyphicon.glyphicon-sort.relationships-sort
        %th
      %tbody

      - relationships.each do | relationship |
        %tr
          %td
          %td.consumer
            %a{:href => relationship.consumer_group_url}
              = relationship.consumer_name
          %td.pact
            %a{:href => relationship.latest_pact_url, :title => "View pact"}
              %span.pact
          %td.provider
            %a{:href => relationship.provider_group_url}
              = relationship.provider_name
          %td
    %div.relationships-size
      = relationships.size_label

:javascript
  $(function(){
    $("#relationships").tablesorter();
  });

  $(document).load(function(){
    $("span.pact").load("/images/doc-text.svg");
  });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-1.17.1 lib/pact_broker/ui/views/relationships/show.haml