File: item_summary.erb

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.1.14%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 25,048 kB
  • ctags: 30,114
  • sloc: ruby: 193; makefile: 98
file content (28 lines) | stat: -rw-r--r-- 1,903 bytes parent folder | download | duplicates (4)
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
<% if !@item.has_tag?(:paginator) %>
<li class="<%= @item.visibility %> <%= @item.has_tag?(:deprecated) ? 'deprecated' : '' %>">
  <span class="summary_signature"><%= signature(@item) %></span>
  <% if object != @item.namespace %>
    <span class="note title not_defined_here">
      <%= @item.namespace.type == :class ? 'inherited' : (@item.scope == :class ? 'extended' : 'included') %>
      from <%= linkify @item, object.relative_path(@item.namespace) %>
    </span>
  <% end %>
  <% if @item.type == :enum %><span class="note title writeonly">enum</span><% end %>
  <% if @item.type == :bare_struct || @item.type == :struct %><span class="note title readonly">struct</span><% end %>
  <% if @item.has_tag?(:service) %><span class="note title writeonly">client</span><% end %>
  <% if @item.has_tag?(:service_operation) %><span class="note title readonly">operation</span><% end %>
  <% if @item.type == :interface %><span class="note title interface">interface</span><% end %>
  <% if @item.has_tag?(:readonly) %><span class="note title readonly">readonly</span><% end %>
  <% if @item.has_tag?(:writeonly) %><span class="note title writeonly">writeonly</span><% end %>
  <% if @item.visibility != :public %><span class="note title <%= @item.visibility %>"><%= @item.visibility %></span><% end %>
  <% if @item.has_tag?(:abstract) %><span class="abstract note title">interface</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>
<% end %>