-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwiki.html.erb
51 lines (44 loc) · 1.05 KB
/
wiki.html.erb
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
<!DOCTYPE html>
<html>
<head>
<title>Rails Wiki</title>
<%= stylesheet_link_tag "wiki/application", media: "all" %>
<%= javascript_include_tag "wiki/application" %>
<%= csrf_meta_tags %>
<%= auto_discovery_link_tag :rss {controller: 'pages', action: 'log'} %>
</head>
<body>
<nav>
<ul class="tops">
<% Rails.configuration.wiki.top_pages.each do |v| %>
<li><%= link_to v.name, v %></li>
<% end %>
</ul>
<ul class="find">
<li><%= link_to 'changelog', log_path %></li>
<li><%= link_to 'contents', pages_path %></li>
<li>
<%= render partial: 'wiki/search' %>
</li>
</ul>
</nav>
<% if content_for?(:page_parents) %>
<%= yield :page_parents %>
<% end %>
<% if content_for?(:page_title) %>
<%= yield :page_title %>
<% end %>
<%= yield %>
<div class="metadata">
<% if content_for?(:page_meta) %>
<%= yield :page_meta %>
<% end %>
<% if content_for?(:page_actions) %>
<%= yield :page_actions %>
<% end %>
</div>
<% if content_for?(:page_related) %>
<%= yield :page_related %>
<% end %>
</body>
</html>