@@ -13,7 +15,7 @@
- <%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>
- - <%= link_to _('Homepage'), block.owner.url %>
+ - <%= link_to _('Homepage'), block.owner.url, :class => 'url' %>
- <%= link_to _('View profile'), block.owner.public_profile_url %>
- <%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) if block.owner.enterprise? %>
<% if !user.nil? and user.has_permission?('edit_profile', profile) %>
@@ -21,7 +23,17 @@
<% end %>
+
+<%=
+ [ [ profile.city, 'locality' ],
+ [ profile.state, 'region' ],
+ [ profile.country, 'country-name' ]
+ ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - '
+%>
+
+
<%= render :file => 'blocks/profile_info_actions/' + block.owner.class.name.underscore %>
+
diff --git a/public/stylesheets/blocks/profile-info-block.css b/public/stylesheets/blocks/profile-info-block.css
index d3f0eba..1095f88 100644
--- a/public/stylesheets/blocks/profile-info-block.css
+++ b/public/stylesheets/blocks/profile-info-block.css
@@ -80,6 +80,16 @@
top: 20px;
}
+.profile-info-block .adr {
+ padding-top: 5px;
+ font-size: 11px;
+ clear: both;
+ text-align: center;
+}
+.profile-info-block .adr span {
+ white-space: nowrap;
+}
+
.profile-info-options {
clear: both;
}
--
libgit2 0.21.2