summaryrefslogtreecommitdiffhomepage
path: root/templates/default/header/html/item_summary.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default/header/html/item_summary.erb')
-rw-r--r--templates/default/header/html/item_summary.erb19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/default/header/html/item_summary.erb b/templates/default/header/html/item_summary.erb
new file mode 100644
index 0000000..522a3a1
--- /dev/null
+++ b/templates/default/header/html/item_summary.erb
@@ -0,0 +1,19 @@
+<li class="<%= @item.visibility %> <%= @item.has_tag?(:deprecated) ? 'deprecated' : '' %>">
+ <span class="summary_signature">
+ <%= fsignature(@item, true, false) %>
+
+ <% if @item.aliases.size > 0 %>
+ (also: <%= @item.aliases.map {|o| h(o.name(true)) }.join(", ") %>)
+ <% end %>
+ </span>
+ <% if @item.visibility != :public %><span class="note title <%= @item.visibility %>"><%= @item.visibility %></span><% end %>
+ <% if @item.has_tag?(:abstract) %><span class="abstract note title">abstract</span><% end %>
+ <% if @item.has_tag?(:deprecated) %><span class="deprecated note title">deprecated</span><% end %>
+ <% if @item.has_tag?(:api) && @item.tag(:api).text == 'private' %><span class="private note title">private</span><% end %>
+
+ <% if @item.has_tag?(:deprecated) %>
+ <span class="summary_desc"><strong>Deprecated.</strong> <%= htmlify_line @item.tag(:deprecated).text %></span>
+ <% else %>
+ <span class="summary_desc"><%= htmlify_line docstring_summary(@item) %></span>
+ <% end %>
+</li>