From a4e282660272c2a97bc706ed2192e46f609d3a73 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 8 Oct 2012 02:26:59 -0400 Subject: [PATCH] tiny tweak of person location output --- app/views/people/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/people/show.html.erb b/app/views/people/show.html.erb index e2663340..b2af8991 100644 --- a/app/views/people/show.html.erb +++ b/app/views/people/show.html.erb @@ -11,7 +11,10 @@

Location

- <%= @person.city %>, <%= @person.province %>, <%= @person.country %> + + <%= @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 %> +

Link

<%= link_to @person.link, @person.link, :class => 'link', :target => '_blank' %>