File: layout.erb

package info (click to toggle)
yard 0.9.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 5,720 kB
  • sloc: ruby: 31,354; javascript: 7,608; makefile: 21
file content (81 lines) | stat: -rw-r--r-- 2,140 bytes parent folder | download | duplicates (4)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <%= erb(:headers) %>
		<script type="text/javascript">
			$(function() {
				$('.object_link').each(function() {
					$(this).html($(this).find('a').html())
				});
			});
			$(function() {
				generateTOC();
				if ($('#toc li').size() == 0) {
					$('#sidebar h2.toc').hide();
				}
			})
		</script>
  </head>
  <body>
		<div id="top_nav">
			<div id="inner_nav">
				<% if options.readme != options.file && options.title %>
					<span class="title"><strong><%= options.title %></strong>: <%= @page_title %></span>
					<small class="links">
						<% links = [@prevfile ? link_file(@prevfile, '&larr;') : nil,
						            link_file('index.html', '&uarr;'),
									@nextfile ? link_file(@nextfile, '&rarr;') : nil].compact %>
						<%= links.join(" ") %>
					</small>
				<% end %>
			</div>
		</div>
		<div id="page">
			<div id="sidebar">
				<h2 class="toc">Table Of Contents</h2>
				<div id="toc"></div>

				<% if options.readme != options.file %>
				<h2>Related Topics</h2>
				<div id="links">
					<ol class="top">
						<% if options.readme %>
							<li><%= link_file("index.html", "Documentation Overview") %></li>
						<% end %>
						<ol>
							<% if @prevfile %>
								<li>
									<strong>Previous:</strong>
									<%= link_file(@prevfile) %>
								</li>
							<% end %>
							<% if @nextfile %>
							<li>
								<strong>Next:</strong>
								<%= link_file(@nextfile) %>
							</li>
							<% end %>
						</ol>
					</ol>
				</div>
				<% else %>
				<h2>List of Topics</h2>
				<div id="links">
					<ol class="top">
						<li><a href="#">Documentation Overview</a></li>
						<ol>
							<% options.files.each do |file| %>
							<li><%= link_file(file.filename, file.title) %></li>
							<% end %>
						</ol>
					</ol>
				</div>
				<% end %>
			</div>
	    <div id="content"><%= yieldall %></div>
		</div>
		<div style="clear:both"></div>
    <%= erb(:footer) %>
  </body>
</html>