templates/guide/layout/html/layout.erb in yard-0.7.5 vs templates/guide/layout/html/layout.erb in yard-0.8.0
- old
+ new
@@ -2,13 +2,13 @@
"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" charset="utf-8">
- $(function() {
- $('.object_link').each(function() {
- $(this).html($(this).find('a').html())
+ $(function() {
+ $('.object_link').each(function() {
+ $(this).html($(this).find('a').html())
});
});
$(function() {
generateTOC();
if ($('#toc li').size() == 0) {
@@ -18,31 +18,31 @@
</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>
+ <% if options.readme != options.file && options.title %>
+ <span class="title"><strong><%= options.title %></strong>: <%= @page_title %></span>
<small class="links">
- <% links = [link_file('index.html', 'top'),
- @prevfile ? link_file(@prevfile, 'prev') : nil,
+ <% links = [link_file('index.html', 'top'),
+ @prevfile ? link_file(@prevfile, 'prev') : nil,
@nextfile ? link_file(@nextfile, 'next') : 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] %>
+
+ <% if options.readme != options.file %>
<h2>Related Topics</h2>
<div id="links">
<ol class="top">
- <% if options[:readme] %>
+ <% if options.readme %>
<li><%= link_file("index.html", "Documentation Overview") %></li>
<% end %>
<ol>
<% if @prevfile %>
<li>
@@ -63,10 +63,10 @@
<h2>List of Topics</h2>
<div id="links">
<ol class="top">
<li><a href="#">Documentation Overview</a></li>
<ol>
- <% options[:files].each do |file| %>
+ <% options.files.each do |file| %>
<li><%= link_file(file.filename, file.title) %></li>
<% end %>
</ol>
</ol>
</div>