Fix bug where the federated p2p creators location was mangled
This commit is contained in:
parent
2aa11e9456
commit
adeb9c46cb
1 changed files with 7 additions and 7 deletions
|
@ -1,12 +1,12 @@
|
||||||
|
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
||||||
|
<%- @location_array = []
|
||||||
|
@location_array.push(profile.city) if profile.city.present?
|
||||||
|
@location_array.push(profile.state_code) if profile.state_code.present?
|
||||||
|
-%>
|
||||||
<section class='box' style="font-style: italic">
|
<section class='box' style="font-style: italic">
|
||||||
<div class="well" style="padding-left:16px;">
|
<div class="well" style="padding-left:16px;">
|
||||||
<h4><%= profile.name %> <% if profile.state_code || profile.city -%>
|
<h4><%= profile.name %><%- if @location_array.any? -%>
|
||||||
<small>(<% if profile.state_code && profile.city -%><%= profile.city %>, <%= profile.state_code -%>
|
<small>(<%= @location_array.join(', ') %>)</small><%- end -%>
|
||||||
<% elsif profile.city -%>
|
|
||||||
<%= profile.city -%>
|
|
||||||
<% else -%>
|
|
||||||
<%= profile.state_code -%>
|
|
||||||
<% end -%>)</small><% end -%>
|
|
||||||
</h4>
|
</h4>
|
||||||
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
|
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue