Skip to content

Commit d9732aa

Browse files
committed
Updating Source Records structure to handle multiple links under a record
1 parent 1595103 commit d9732aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

openlibrary/templates/type/edition/view.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,10 @@ <h3>$_("Source records")</h3>
472472
<ul class="source-records">
473473
$ get_source_html = render_template("history/sources").get_source_html
474474
$for source_record in source_records:
475-
<li>$:get_source_html(s)</li>
475+
$ source_html = get_source_html(source_record)
476+
$ record = [s+'</a>' for s in source_html.split('</a>') if s]
477+
$for link in record:
478+
<li>$:link</li>
476479
</ul>
477480
</div>
478481
$if work:

static/css/components/work.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ div.editionAbout {
6262
.source-records {
6363
display: flex;
6464
flex-wrap: wrap;
65-
gap: 11px;
65+
gap: 12px;
66+
font-size: 12px;
6667
}
6768

6869
.work-description {

0 commit comments

Comments
 (0)