Sha256: 4b9260fae856fdc9e44ac6ea77f6414c59a83eb8f891addb42a9d961ee7385be

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

.ui.pointing.menu
  .header.item
    Overview

.ui.grid
  - @groups.each do |_, group|
    .sixteen.wide.row
      .sixteen.wide.column
        %h3.ui.dividing.header{style: 'margin-bottom: 10px;'}= group.name
      = render partial: "card", collection: group.databases, as: :database, locals: {partial: 'card_loading_content'}

:javascript
  document.addEventListener("DOMContentLoaded", function(event) {
    // First
    $("[id^='segment_href']").each(function(idx, el) {
      $.get($(el).data('href'));
    });
    // Refresh every minutes
    setInterval(function (){
      $("[id^='segment_href']").each(function(idx, el) {
        var el = $(el)
        var id = el.attr('id');
        var href = el.data('href');
        var refreshed_id = id.replace('href', 'refreshed_span');
        document.getElementById(refreshed_id).innerHTML = 'Refreshing...';
        $.get(href, function(data) {
          document.getElementById(refreshed_id).innerHTML = 'Last refresh: ' + new Date().toTimeString();
        });
      });
    }, 60 * 1000)
  });

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pgbouncerhero-0.1.1 app/views/pg_bouncer_hero/home/index.html.haml
pgbouncerhero-0.1.0 app/views/pg_bouncer_hero/home/index.html.haml