This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_header.html
50 lines (44 loc) · 1.83 KB
/
_header.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>UI Patterns<%= (title === "") ? '' : ': ' + title %></title>
<% if @config['css_include'].to_s.strip.length != 0 %>
<% @config['css_include'].each do |css| %>
<link rel="stylesheet" href="<%= css %>">
<% end %>
<% end %>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./build/css/docs.css">
</head>
<body>
<div class="doc-container">
<div class="doc-sidebar">
<div class="doc-brand">UI Patterns</div>
<form class="doc-search-form">
<input type="search" class="doc-search-keyword">
<i class="doc-search-icon fa fa-search"></i>
</form>
<ul class="doc-sidebar-nav" id="doc-sidebar-nav">
<% if title === "" %>
<li class="active"><a href="./index.html"><i class="fa fa-cubes"></i> Home</a></li>
<% else %>
<li><a href="./index.html"><i class="fa fa-cubes"></i> Home</a></li>
<% end %>
<% @categories.sort.each do |category, file_name| %>
<% if title.downcase === category.downcase %>
<li class="active"><a href="<%= file_name %>"><i class="fa fa-cubes"></i> <%= category %></a>
<ul class="doc-sidebar-subnav">
<% @blocks.each do |b| %>
<li><a href="#<%= b[:name].downcase %>"><i class="fa fa-cube"></i> <%= b[:title] %></a></li>
<% end %>
</ul>
</li>
<% else %>
<li><a href="<%= file_name %>"><i class="fa fa-cubes"></i> <%= category %></a></li>
<% end %>
<% end %>
</ul>
</div>
<div class="doc-content">