Skip to content

Commit ab8748e

Browse files
committed
Fix and simplify event card people listings
No hyperlinking as this leads to unexpected behavior Fix display/wrapping issue
1 parent 6601147 commit ab8748e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

events/past-events-template.ejs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
%>
155155
<% if (hasValidData) { %>
156156
157-
<div class="event-person-group" style="display: inline-block; white-space: nowrap;">
157+
<div class="event-person-group" style="display: block;">
158158
<span class="person-label"><%= block.label %>:</span>
159159
<span class="person-list" style="white-space: normal;">
160160
<%= block.data
@@ -164,9 +164,6 @@
164164
var name = (person.name || '').toString().trim();
165165
var url = (person.url || '').toString().trim();
166166
if (!name) return '';
167-
if (url) {
168-
return '<a href="' + url + '" target="_blank" rel="noopener noreferrer">' + name + '</a>';
169-
}
170167
return name;
171168
})
172169
.filter(function(x){ return x && x.length > 0; })

events/upcoming-events-template.ejs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ formIcon = '<i class="bi bi-laptop"></i>';
197197
});
198198
%>
199199
<% if (hasValidData) { %>
200-
<div class="event-person-group" style="display: inline-block; white-space: nowrap;">
200+
<div class="event-person-group" style="display: block;">
201201
<span class="person-label"><%= block.label %>:</span>
202202
<span class="person-list" style="white-space: normal;">
203203
<%= block.data
@@ -207,9 +207,6 @@ if (typeof person === 'string') return person.trim();
207207
var name = (person.name || '').toString().trim();
208208
var url = (person.url || '').toString().trim();
209209
if (!name) return '';
210-
if (url) {
211-
return '<a href="' + url + '" target="_blank" rel="noopener noreferrer">' + name + '</a>';
212-
}
213210
return name;
214211
})
215212
.filter(function(x){ return x && x.length > 0; })

0 commit comments

Comments
 (0)