Sha256: 135b505ca18e44e4cb609ebcfbd52bf0b84c5da72fc45e3652c2f161f20a1383
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 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', lazy: true} :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'); var refreshed_div = document.getElementById(refreshed_id); if (refreshed_div) { refreshed_div.innerHTML = 'Refreshing...'; $.get(href, function(data) { refreshed_div.innerHTML = 'Last refresh: ' + new Date().toTimeString(); }); } }); }, 60 * 1000) });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pgbouncerhero-1.0.1 | app/views/pg_bouncer_hero/home/index.html.haml |
pgbouncerhero-1.0.0 | app/views/pg_bouncer_hero/home/index.html.haml |