tiny tweak of person location output
This commit is contained in:
parent
9c0f12a55a
commit
a4e2826602
1 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,10 @@
|
|||
</div>
|
||||
<div class="focusright">
|
||||
<p>Location</p>
|
||||
<%= @person.city %>, <%= @person.province %>, <%= @person.country %>
|
||||
<Span class="location">
|
||||
<%= @person.city %><% if @person.city != "" && @person.province != "" %>, <% end %><%= @person.province %><% if (@person.city != "" || @person.province != "") && @person.country != "" %>, <% end %><%= @person.country %>
|
||||
<% if (@person.city == "" && @person.province == "" && @person.country == "") %>Earth<% end %>
|
||||
</span>
|
||||
<p>Link</p>
|
||||
<%= link_to @person.link, @person.link, :class => 'link', :target => '_blank' %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue