-
Notifications
You must be signed in to change notification settings - Fork 15
/
layout.haml
35 lines (24 loc) · 974 Bytes
/
layout.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
!!! 5
%html
%title
- if @channel
= "#{@channel.gsub(/\.\/, "#")} on #{@date} – "
irclogger – Freenode IRC logs
%meta(charset="utf-8")
%link(rel="stylesheet" href="/styles.css")
%link(rel="stylesheet" href="/jquery-ui.1.7.custom")
%script(src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js")
%script(src="/app.js")
%script(src="http://www.google.com/jsapi?key=ABQIAAAAxIPe_Hqn9UpeceoqlzxTEhQXPjdTLTrPJWH-F2sc2QUCP_uGzBTD6d_hb1OQjUAGLiLr--aKo38HvA" type="text/javascript")
%body
%section#channels
%section#calendar
%pre= calendar @channel, @date, @link_calendar
%ul
%li(class="#{"current" unless @channel}")
%a(href="/") Console
- @channels.each do |channel|
%li(class="#{"current" if channel.gsub(/#/, ".") == @channel}")
%a(href="/#{channel.gsub(/#/, '.')}/#{@date || "today"}")= channel
= yield
= erb :analytics, :layout => false