- <%= t('name.one') %>: <%= @profile.prefix%> <%=@user.full_name%>
- <%=(t("organization") + ":") if (@profile.organization.present?)%><%= @profile.organization%>
<%if (@profile.address.present? && (@profile.authorize? :read, :to => current_user)) || (@profile.city.present?) ||(@profile.province.present?) || (@profile.country.present?) || (@profile.zipcode.present? && (@profile.authorize? :read, :to => current_user))%>
<%= t('address') %>
- <%= (t('street') + ":") if ((@profile.address.present?) && (@profile.authorize? :read, :to => current_user)) %> <%= @profile.address if @profile.authorize? :read, :to => current_user%>
- <%= (t('city')+ ":") if (@profile.city.present?) %><%= @profile.city%>
- <%= (t('province')+ ":")if (@profile.province.present?) %><%= @profile.province%>
- <%= (t('country')+ ":")if (@profile.country.present?) %><%= @profile.country%>
- <%= (t('zipcode')+ ":")if (@profile.zipcode.present?) && (@profile.authorize? :read, :to => current_user) %> <%= @profile.zipcode if @profile.authorize? :read, :to => current_user%>
<%end%>
<%if (@profile.url.present?)%>
<%=t("url")%>
- <%=( link_to @profile.url, @profile.url, :target => "_blank")%>
<%elsif @user==current_user%>
<%=t('url')%>
- <%= link_to t('url_add'),edit_user_profile_path(@user, :anchor => "profile_description")%>
<%end%>
<%if @profile.description.present?%>
<%=t('description')%>
- <%= @profile.description%>
<%elsif @user==current_user%>
<%=t('description')%>
- <%= link_to t('profile.description.add'),edit_user_profile_path(@user, :anchor => "profile_country")%>
<%end%>