Skip to content

Commit

Permalink
πŸ› Add official_url show partial
Browse files Browse the repository at this point in the history
Prior to this commit, because we did not have an official_url partial we
fellback on using the default renderer.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/620
- https://github.com/scientist-softserv/adventist-dl/issues/615
  • Loading branch information
jeremyf committed Oct 10, 2023
1 parent b4c2a45 commit d72edec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/records/show_fields/_official_url.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<% Array(record.official_url).each do |url| %>
<%= auto_link(url) { |link| "#{link} <span class='glyphicon glyphicon-new-window'></span>" } %>
<br />
<% end %>

0 comments on commit d72edec

Please sign in to comment.