forked from pope/ticgit-watchtower
-
Notifications
You must be signed in to change notification settings - Fork 1
/
layout.haml
36 lines (35 loc) · 1.33 KB
/
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
36
%html
%head
%meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}
%title= @title + " - Watchtower"
%link{:rel => 'stylesheet', :href => "http://yui.yahooapis.com/#{$yui_version}/build/reset-fonts-grids/reset-fonts-grids.css", :type => 'text/css', :media => 'screen'}
%link{:rel => 'stylesheet', :href => '/screen.css', :type => 'text/css', :media => 'screen'}
%body{ :id => @title.gsub(/\s/, '') + "Page" }
#Content
#Title
%h2 Watchtower
%p.tagline ticgit - issue tracking though git
#Navigation
%ul.global
%li#AllTicketsLink
%a{:href => '/'} All
%li#OpenTicketsLink
%a{:href => '/tickets/state/open'} Open
%li#ResolvedTicketsLink
%a{:href => '/tickets/state/resolved'} Resolved
%li#HoldTicketsLink
%a{:href => '/tickets/state/hold'} Hold
%li#InvalidTicketsLink
%a{:href => '/tickets/state/invalid'} Invalid
%li#NewTicketLink
%a{:href => '/tickets/new'} New Ticket
#SavedViews
%h4 Saved Views:
- unless @saved.empty?
%ul
- @saved.each do |s|
%li
%a{:href => "/tickets/saved_view/\#{s}"}= s
- else
%p You have no saved views
#Main= yield