forked from rails/sdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.rhtml
31 lines (25 loc) · 1008 Bytes
/
file.rhtml
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="<%= @options.charset %>">
<title><%= page_title file.name %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= include_template '_head.rhtml', {:context => file, :tree_keys => [] } %>
<meta property="og:title" value="<%= og_title file.name %>">
</head>
<body>
<a class="sr-only sr-only-focusable" href="#context" data-turbo="false">Skip to Content</a>
<a class="sr-only sr-only-focusable" href="#search" data-turbo="false">Skip to Search</a>
<%= include_template '_panel.rhtml' %>
<main id="content">
<h1 class="content__full-name">
<span class="qualifier">File</span>
<%= full_name file %>
</h1>
<% if source_url = github_url(file.relative_name) %>
<p><%= link_to_external "View on GitHub", source_url %></p>
<% end %>
<%= include_template '_context.rhtml', {:context => file} %>
</main>
</body>
</html>