Sha256: 82053d8dadca95682d6be4744890316c0eebe3ce1123d61614d2eba3c9c145d6

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

<%
values = values[:values] if values[:values]
file_page = !values[:classmod]
title_in_description = values[:entry].description && values[:entry].description =~ /^\s*<h1>/m
%><div class='header'>
<%
title = if file_page
  h(values[:file].name)
else
  "<span class='type'>#{values[:classmod]}</span>\n#{h values[:entry].full_name}"
end

   if title_in_description %><div class='name'><%= title %></div>
<% else %><h1 class='name'><%= title %>
</h1>
<% end

   if file_page %><div class='paths'>
<%=h values[:file].relative_name %>
</div>
<% else %><ol class='paths'>
<%   values[:entry].in_files.each_with_index do |file, index| %><li<%= " class='other'" if index > 0 %>>
<%= link_to(file.full_name, Pathname.new(file.path).relative_path_from(Pathname.new(values[:entry].path).dirname)) %>
</li>
<%   end
     if values[:entry].in_files.size > 1 %><li>
<a class='show' href='#' onclick='this.parentNode.parentNode.className += &quot; expanded&quot;; this.parentNode.removeChild(this); return false'>show all</a>
</li>
<%   end %></ol>
<% end

   if !file_page && values[:entry].type == "class" %><div class='parent'>
Superclass:
<strong><%= (values[:entry].superclass.kind_of?(String) || !values[:entry].superclass) ? h(values[:entry].superclass) : link_to(values[:entry].superclass.name, Pathname.new(class_dir) + Pathname.new(values[:entry].superclass.path).relative_path_from(Pathname.new values[:entry].path)) %></strong>
</div>
<% end

   if values[:entry].respond_to?(:last_modified) and values[:entry].last_modified %><div class='last-update'>
Last Update:
<span class='datetime'><%=h values[:entry].last_modified %></span>
</div>
<% end %></div>
<div id='content'>
<div id='text'>
<% if values[:description] %><div id='description'><%= sanitize_code_blocks(frame_link(values[:description])) %></div>
<% end %><%= frame_link(block.call) %>
</div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanna-nouveau-1.2.0 lib/hanna-nouveau/template_files/page.erb