Module: Render::VersionLinks
- Defined in:
- action/lib/render/version_links.rb
Overview
Shared repository-link rendering for step summaries and comments.
Class Method Summary collapse
Class Method Details
.markdown_links(record, separator: "<br>") ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'action/lib/render/version_links.rb', line 9 def markdown_links(record, separator: "<br>") link = RepositoryLink.from(record["repository_url"]) return unless link current, available = record.values_at("current_version", "available_version") return unless current && available link.markdown_links([{ current:, available: }], separator:) end |