From e0f46608ea3b5aba14d1d92e39921639dcd8fc29 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Wed, 2 Jul 2008 00:20:43 +0000 Subject: [PATCH] ActionItem489: location in profile info block --- app/views/blocks/profile_info.rhtml | 16 ++++++++++++++-- public/stylesheets/blocks/profile-info-block.css | 10 ++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml index b44561e..800ca23 100644 --- a/app/views/blocks/profile_info.rhtml +++ b/app/views/blocks/profile_info.rhtml @@ -1,4 +1,6 @@ -

<%= block.owner.name %>

+
+ +

<%= block.owner.name %>

@@ -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