Sha256: 68ac0f058658c04d6d13de97e053b182fe639ff56c1b7008cedc083cfe4c2e68

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

<!-- Depoly Status Page <3 -->

<script>

function load_deploys(){
	$.get( "/deploys", function( data ) {
		data = JSON.parse(data)
		var items = [];
		var html = ''
		if (data.length===0){
			data.push({"stack":"alcohol","stage":"consuming"})
		}
		for (var i = 0; i < data.length; ++i){
			var stack = data[i]['stack']
			var stage = data[i]['stage']
			html = html +
			"<div class='stack-box'> \
			<div class=\"deploys-listing-heading\"><h2>" + stack + ":" + stage + "</h2></div> \
			<a href=\"javascript:stream_log_websocket_deploys('" + stack + "', '" + stage + "')\">Watch</a> \
			</div>"
		}
		$( "#running-deploys" ).html(html);
	});
}

setInterval( load_deploys, 2000 );

</script>

<aside id="running-deploys" class="pushers">
	{{#current_deploys}}
    <div class="stack-box">
        <div class="deploys-listing-heading"><h2>{{stack}}:{{stage}}</h2></div>
        <a href="javascript:stream_log_websocket_deploys('{{stack}}', '{{stage}}')">Watch</a>
    </div>
    {{/current_deploys}}
</aside>
<section id="main" class="info">
    <div id = "shell_deploys"class="log-main">
    </div>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
etsy-deployinator-1.1.1 lib/deployinator/templates/deploys_status.mustache
etsy-deployinator-1.1.0 lib/deployinator/templates/deploys_status.mustache
etsy-deployinator-1.0.2 lib/deployinator/templates/deploys_status.mustache
etsy-deployinator-1.0.1 lib/deployinator/templates/deploys_status.mustache