1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/_layouts/default.html
Lee Hambley 80b6ca1201 Introduce banner for Harrow.io
Sorry chaps, we're trying a push to promote Harrow.io to try and make my
work on Capistrano sustainable, and to promote our new SaaS Harrow.io,
which is a new take on CI tooling focused on collaboration.

It was designed with "Web Based Capistrano" in mind, but as you might
imagine, once one builds a tool for running Cap in the "cloud" it's not
a big leap to run anything else.

Ping me off-list if you have any issues with anything here, we tried to
be very fair with the behaviour, cookie lifetimes and positioning.

tl;dr:

- Invisible by default (display none)
- Reasonable cookie lifetime
- Made visible using jQuery (.css("display", "block")
2015-09-01 19:51:21 +02:00

66 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<link href='http://fonts.googleapis.com/css?family=Enriqueta' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/itm5ubu.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="stylesheet" href="/css/foundation.css" />
<link rel="stylesheet" href="/css/capistrano.css">
<link rel="stylesheet" href="/css/social_foundicons.css" />
<link rel="stylesheet" href="/css/okaidia.css">
<link rel="stylesheet" href="/css/syntax.css">
<script src="/js/vendor/custom.modernizr.js"></script>
</head>
<body>
{% include metrics.html %}
{% include header.html %}
<div class="row">
<div class="large-4 columns">
{% include navigation.html %}
</div>
<div class="large-8 column">
<div class="content">
<h2>{{ page.title }}</h2>
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
<script src="/js/jquery-1.7.min.js"></script>
<script src="/js/jquery.cookie.js"></script>
<script type="text/javascript">
$(function(){
if ($.cookie('harrowBanner__dismissed') != '1') {
$('.harrowBanner').css('display', 'block');
ga('send', 'event', 'harrowBanner', 'shown');
} else {
ga('send', 'event', 'harrowBanner', 'alreadydismissed');
}
$(".harrowBanner__ctaButton").on('click', function (e) {
ga('send', 'event', 'harrowBanner', 'clickthrough');
});
$(".harrowBanner__dismissLink").on('click', function (e) {
$.cookie('harrowBanner__dismissed', '1', { expires: 10});
$('.harrowBanner').hide();
ga('send', 'event', 'harrowBanner', 'dismiss');
});
});
</script>
<script src="/js/jquery.githubRepoWidget.min.js"></script>
<script src="/js/prism.js"></script>
<script src="/js/prism.ruby.js"></script>
<a href="https://github.com/capistrano/capistrano"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
{% include google_tag_manager.html %}
</body>
</html>