Skip to content

Commit 0c8456c

Browse files
Add how to link in example_info.erb (#141)
* Add how to link in example_info.erb
1 parent bb48ed5 commit 0c8456c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/views/partials/_example_info.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
<% end %>
2222
<% end %>
2323

24+
<% if @example["LinkToHowTo"] %>
25+
<p>Prerequisite: See <a target='_blank' href="<%= @example["LinkToHowTo"][0]["Path"] %>"><%= @example["LinkToHowTo"][0]["PathName"] %></a></p>
26+
<% end %>
27+
2428
<p>
2529
<%= sanitize format_string(@manifest["SupportingTexts"]["ViewSourceFile"], "<a target='_blank' href='#{@source_url}'>#{@source_file}</a>" ) %>
2630
</p>

0 commit comments

Comments
 (0)