249:bfd7ba5b3a30
Anton Shestakov <av6@dwimlabs.net>, 2016-11-16
queue: make clear what kind of interval it is

next change 274:570f7fb00b52
previous change 246:f31fc5c409e1

templates/base.html

Permissions: -rw-r--r--

Other formats: Feeds:
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<!DOCTYPE html>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<html lang="en">
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<head>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta charset="utf-8">
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<meta name="viewport" content="width=device-width, initial-scale=1">
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<title>{% block title %}{% end %}{% block extra-title %} - Cat and Owl's online linter{% end %}</title>
246
246:f31fc5c409e1 viewer: add <link type="alternate"> element for atom feed
Anton Shestakov <av6@dwimlabs.net>
previous changes: 186:75bb524e7660
line | diff
{% block alternate %}{% end %}
81
81:b608d18aca95 viewer: add a favicon
Anton Shestakov <av6@dwimlabs.net>
previous changes: 79:efeafb44010c
line | diff
<link rel="shortcut icon" href="/static/favicon-cat.png">
186
186:75bb524e7660 templates: update to UIkit 2.26.4
Anton Shestakov <av6@dwimlabs.net>
previous changes: 81:b608d18aca95
line | diff
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.26.4/css/uikit.almost-flat.min.css" integrity="sha384-48XAELI+4suEKjYIXCNBu24eiwixJZ07IZznit90wBrOErxxeIKkEs1pJuwTUD/m" crossorigin="anonymous">
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes: 8:12e714447f64
line | diff
<link rel="stylesheet" href="/static/main.css">
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha384-rY/jv8mMhqDabXSo+UCggqKtdmBfd3qC2/KvyTDNQ6PcUJXaxK1tMepoQda4g5vB" crossorigin="anonymous"></script>
186
186:75bb524e7660 templates: update to UIkit 2.26.4
Anton Shestakov <av6@dwimlabs.net>
previous changes: 81:b608d18aca95
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.26.4/js/uikit.min.js" integrity="sha384-hCdhk/9fyX2pWbIR1e+NRVBfeaAcTR4cvdWM4MrgY+zOE1EqBuC0w3L7yGZKA7Ti" crossorigin="anonymous"></script>
17
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js" integrity="sha384-MV8AwEgYXLMw5ZPj4763CSPk+tYGoUZGdwr/+EfkAZ1Dl2rGHxOMpQ1IW7VtyUPn" crossorigin="anonymous"></script>
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</head>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<body>
77
77:b9b80e8fff5f viewer: make navbar have a gradient like status badge
Anton Shestakov <av6@dwimlabs.net>
previous changes: 17:ba794747cbdc
line | diff
<nav class="uk-navbar uk-navbar-attached navbar">
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-container uk-container-center" style="position: relative;">
79
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
<a class="uk-navbar-brand brand" href="/">{#
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
#}<span class="trigger">
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
Cat and Owl's
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
<span class="mascots">
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
<img src="/static/mascot-cat.svg">
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
<img src="/static/mascot-owl.svg">
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
</span>
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
</span>
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
online linter
79:efeafb44010c viewer: the two mascots
Anton Shestakov <av6@dwimlabs.net>
previous changes: 77:b9b80e8fff5f
line | diff
</a>
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</nav>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% block content %}{% end %}
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
17
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
<script>
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
(function($) {
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
var humanizeTimestamps = function() {
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
$('time[datetime]').each(function() {
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
var $this = $(this);
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
$this.text(moment($this.attr('datetime')).fromNow());
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
});
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
};
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
humanizeTimestamps();
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
window.setInterval(humanizeTimestamps, 15 * 1000);
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
})(jQuery);
17:ba794747cbdc viewer: use moment.js for relative time
Anton Shestakov <av6@dwimlabs.net>
previous changes: 12:2ea3583bd611
line | diff
</script>
8
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</body>
8:12e714447f64 viewer: add basic index page
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</html>