-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintain 12 columns per row in the layout
This fixes the problem where the subheader was not aligning with the toolbar.
- Loading branch information
Showing
5 changed files
with
37 additions
and
32 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,5 +1,4 @@ | ||
.managed-purl { | ||
@include show-page-row-layout; | ||
ul { | ||
list-style: none; | ||
padding-left: 0; | ||
|
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
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
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
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,30 +1,35 @@ | ||
<div class="managed-purl row"> | ||
<div class="col-md-12"> | ||
<h2>Digital content</h2> | ||
<div class="managed-purl"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2>Digital content</h2> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="card managed-purl-panel mb-3"> | ||
<div class="managed-purl-heading"> | ||
<%= "#{document.marc_links.managed_purls.count} parts" %> | ||
</div> | ||
<div class="card-body"> | ||
<ul> | ||
<% document.marc_links.managed_purls.each_with_index do |purl, i| %> | ||
<li> | ||
<%= button_tag data: { embed_target: "#{Settings.PURL_EMBED_RESOURCE}#{purl.druid}", embed_provider: Settings.PURL_EMBED_PROVIDER } do %> | ||
<% if purl.file_id %> | ||
<img src="<%= document.craft_image_url(image_id: purl.file_id, size: :thumbnail) %>"> | ||
|
||
<div class="row"> | ||
<div class="col-md-4"> | ||
<div class="card managed-purl-panel mb-3"> | ||
<div class="managed-purl-heading"> | ||
<%= "#{document.marc_links.managed_purls.count} parts" %> | ||
</div> | ||
<div class="card-body"> | ||
<ul> | ||
<% document.marc_links.managed_purls.each_with_index do |purl, i| %> | ||
<li> | ||
<%= button_tag data: { embed_target: "#{Settings.PURL_EMBED_RESOURCE}#{purl.druid}", embed_provider: Settings.PURL_EMBED_PROVIDER } do %> | ||
<% if purl.file_id %> | ||
<img src="<%= document.craft_image_url(image_id: purl.file_id, size: :thumbnail) %>"> | ||
<% end %> | ||
<%= purl.text.presence || "part #{i + 1}" %> | ||
<% end %> | ||
<%= purl.text.presence || "part #{i + 1}" %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-8"> | ||
<div class='managed-purl-embed'> | ||
<div class="col-md-8"> | ||
<div class='managed-purl-embed'> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |