Sha256: e9934a7f9daa0bdeaf9cce0b936f18cf154dbe88c23bdedbb973552c10f7e085

Contents?: true

Size: 1009 Bytes

Versions: 2

Compression:

Stored size: 1009 Bytes

Contents

<div class='method-details'>
  <h2
    class='method-details__name'
    name='<%= @props[:method_link] %>'
    data-subtopic='<%= @props[:subtopic] %>'
  >
    <a
      name='<%= @props[:method_link] %>'
      href='#<%= @props[:method_link] %>'
      class='method-details__name-link'
    >
      <%= object.tag('API').text %>
    </a>

    <% if object.has_tag?('beta') && api_options["use_beta_flag"] %>
      <span
        class="method-details__beta-flag"
        title="This API endpoint is not finalized, and there could be
               breaking changes before its final release."
      >
        BETA
      </span>
    <% end %>

    <% if @props[:path] && !api_options.github_url.to_s.empty? %>
      <span class='method-details__defined-in'>
        <a href="<%= api_options.github_url %>/blob/<%= api_options.github_branch %>/<%= @props[:path] %>">
          <%= "#{@props[:controller]}Controller\##{@props[:action]}" %>
        </a>
      </span>
    <% end %>
  </h2>

  <%= yieldall %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-api-0.3.0 templates/api/method_details/html/header.erb
yard-api-0.2.3 templates/api/method_details/html/header.erb