Sha256: 50dd2b5ac655245fb75d144855c37e5a76a254fc2f40503e87d9c061981139da

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

:ruby
  dependency = local_assigns.fetch(:dependency)
  contract_def = local_assigns.fetch(:contract_def)
  current_document = local_assigns.fetch(:current_document)
  title =
    if dependency.title
      dependency.current_module.title.to_s + "::" + dependency.title .to_s
    else
      dependency.slug
    end

.link
  = link_to title, document_url_with_swagger(dependency)
  - if contract_def != current_document
    = "("
    = link_to(contract_def.title || contract_def.slug, document_url_with_swagger(contract_def))
    = ")"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-documentation-0.4.0 app/views/apress/documentation/presenters/dependency_presenter/_links.html.haml