Sha256: ad16bf3a16556a1a662abaf71bcafee46683deb5fbb25cdc69d596470c9e8562

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

%script{:src=>url_for('/scripts/jquery-2.1.1.min.js')}
%script{:src=>url_for('/scripts/jquery.dataTables.min.js')}
%script{:src=>url_for('/scripts/dataTables.bootstrap.js')}
%script{:src=>url_for('/scripts/dataTables.colVis.js')}
%link{:rel=>'stylesheet', :href=>url_for('/css/dataTables.bootstrap.css')}
%link{:rel=>'stylesheet', :href=>url_for('/css/dataTables.colVis.css')}
:javascript
  $(function() {
    $('#versionsTable').dataTable({
      dom: 'C<"clear">lfrtip',
      "order": [[ 0, "desc" ]],
      colVis: {
            exclude: [ 2 ]
        }
    });
  });
%div{:class=>'row tbl-header'}
  %div{:class=>'col-xs-12 '}
    %h4
      %a{:href=>url_for('/nodes')} nodes
      \/ Versions for Node 
      %span{:class=>'node_title'} #{@node}
  
%div{:class=>'row'}
  %div{:class=>'refresh-div'}
    %form
      %button{:class => "ColVis_Button", :type => "button", :onclick => "history.go();"}
        %span{:class=>"glyphicon glyphicon-repeat"}
        Refresh
  %table{:id=>'versionsTable', :class=>'table table-responsive tablesorter'}
    %thead
      %tr
        %th Version
        %th Dates
        %th Actions

    %tbody
      -trclass = %w(even odd)
      - nb = @data.count + 1
      - @data.each do |x|
        %tr
          %td
            #{nb -= 1}
          %td
            #{time_from_now x[:date]}
          %td
            %a{:title => "configuration", :href => url_for("/node/version/view?node=#{@node}&group=#{@group}&oid=#{x[:oid]}&date=#{x[:date]}&num=#{nb}") }
              %span{:class=>'glyphicon glyphicon-cloud-download'} 
            &nbsp;&nbsp;
            %a{:title => "diff", :href => url_for("/node/version/diffs?node=#{@node}&group=#{@group}&oid=#{x[:oid]}&date=#{x[:date]}&num=#{nb}") }
              %img{:src=>url_for('/images/diff_15x17.png')}
          

    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oxidized-web-0.4.0 lib/oxidized/web/views/versions.haml
oxidized-web-0.3.0 lib/oxidized/web/views/versions.haml