File: api.template

package info (click to toggle)
ruby-cmdparse 3.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 1,736; makefile: 11
file content (24 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- name:content pipeline:erb
<%
rdoc_object = context.node.node_info[:rdoc_object]
api = context.node.node_info[:api]
%>
<div style="text-align: center">
<select onchange="window.location.href=this.value">
<option value="#">-- Classes and Modules --</option>
<% rdoc_object.store.all_classes_and_modules.sort.each do |entry| %>
<option value="<%= context.dest_node.route_to(api.class_nodes[entry.full_name], context.dest_node.lang) %>"><%= entry.full_name %></option>
<% end %>
</select>

<select onchange="window.location.href=this.value">
<option value="#">-- Attributes and Methods --</option>
<% (rdoc_object.attributes + rdoc_object.method_list).sort.each do |entry| %>
<option value="#<%= entry.aref %>"><%= entry.pretty_name %></option>
<% end %>
</select>
</div>

<hr style="margin-top: 0.5em; padding: 0;" />

<%= context.render_block(:name => 'content', :chain => [context.website.tree['/templates/api.template'], context.content_node]) %>