Skip to content

Commit fa691df

Browse files
committed
Fix display of related links on public page.
1 parent 9cb1d7f commit fa691df

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lib/libra2/app/assets/stylesheets/public_facing/document.scss

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ body.public {
2626
}
2727
.document-value {
2828
display: inline-flex;
29+
flex-direction: column;
30+
width: 100%;
31+
32+
a {
33+
overflow: hidden;
34+
white-space: nowrap;
35+
text-overflow: ellipsis;
36+
}
2937
}
3038

3139
#sidebar {

lib/libra2/app/helpers/public_helper.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def display_rights(rights)
4141
def display_related_links(links)
4242
a = []
4343
links.each { |link|
44-
a.push(content_tag(:a, link, { href: link, target: "_blank" }))
44+
display = links.length > 1 ? raw("• #{link}") : link
45+
a.push(content_tag(:a, display, { href: link, target: "_blank" }))
4546
}
46-
return raw(a.join(", "))
47+
return raw(a.join(""))
4748
end
4849

4950
def display_keywords(work)

0 commit comments

Comments
 (0)