-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from pulibrary/i132-child-subguidecards
Add links to children of SubGuideCards
- Loading branch information
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<h1>SubGuideCards#show</h1> | ||
<p>Find me in app/views/sub_guide_cards/show.html.erb</p> | ||
<%= @sub_guide_card.heading %> | ||
<h2>SubGuide: <%= @sub_guide_card.heading %></h2> | ||
<% if @sub_guide_card.children.present? %> | ||
<ul> | ||
<% @sub_guide_card.children.each do |sub_guide| %> | ||
<li> <%= link_to sub_guide.heading, sub_guide_card_path(sub_guide.id) %> </li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<% @card_images.each do |image| %> | ||
<%= image_tag(image.iiif_url) %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters