<%= link_to content_tag('span',_('remove')),
{ :action => 'remove', :id => enterprise.id },
diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml
index 5e3b6cc..b7a1394 100644
--- a/app/views/friends/index.rhtml
+++ b/app/views/friends/index.rhtml
@@ -2,13 +2,11 @@
<%= __("%s's friends") % profile.name %>
-
+
<% @friends.each do |friend| %>
-
-
- <%= link_to_profile(profile_image(friend) + '
' + friend.name, friend.identifier) %>
-
-
+ <%= link_to_profile profile_image(friend) + '
' + friend.name,
+ friend.identifier, :class => 'profile-link' %>
<%= link_to content_tag('span',_('remove')),
{ :action => 'remove', :id => friend.id },
@@ -16,7 +14,6 @@
:title => _('remove'),
:help => __('Clicking on this button will remove your friend relation with %s.') % friend.name %>
-
<% end %>
diff --git a/public/stylesheets/controller_favorite_enterprises.css b/public/stylesheets/controller_favorite_enterprises.css
new file mode 100644
index 0000000..5a9b527
--- /dev/null
+++ b/public/stylesheets/controller_favorite_enterprises.css
@@ -0,0 +1,2 @@
+
+@import url(manage_contacts_list.css);
diff --git a/public/stylesheets/controller_friends.css b/public/stylesheets/controller_friends.css
index 0c0abb5..23f9918 100644
--- a/public/stylesheets/controller_friends.css
+++ b/public/stylesheets/controller_friends.css
@@ -1,48 +1,5 @@
-#content #manage_friends ul {
- margin: 0px;
- padding: 0px;
- list-style: none;
-}
-
-#content #manage_friends li {
- float: left;
- width: 100px;
- height: 100px;
- margin: 5px;
- padding: 5px;
- border: 2px solid #B8CFE7;
- list-style: none;
- overflow: hidden;
- position: relative;
-}
-#content #manage_friends li:hover {
- border: 2px solid #2A5896;
- background: #729FCF;
-}
-
-#content #manage_friends li center {
- float: left;
-}
-
-.profile-list img {
- border: none;
-}
-
-.profile-list a {
- text-decoration: none;
-}
-
-.profile-list .profile_link span {
- width: 200px;
- display: block;
- overflow: hidden;
-}
-
-#manage_friends .button-bar {
- clear: both;
- padding-top: 20px;
-}
+@import url(manage_contacts_list.css);
#remove_friend .friend_picture {
float: left;
diff --git a/public/stylesheets/manage_contacts_list.css b/public/stylesheets/manage_contacts_list.css
new file mode 100644
index 0000000..cbd695c
--- /dev/null
+++ b/public/stylesheets/manage_contacts_list.css
@@ -0,0 +1,59 @@
+.profile-list {
+ margin: 0px;
+ padding: 0px;
+ list-style: none;
+}
+
+.profile-list li {
+ float: left;
+ width: 100px;
+ height: 100px;
+ margin: 5px;
+ padding: 5px;
+ border: 2px solid #B8CFE7;
+ list-style: none;
+ overflow: hidden;
+ position: relative;
+}
+.profile-list li:hover {
+ border: 2px solid #2A5896;
+ background: #729FCF;
+}
+
+.profile-list img {
+ border: none;
+}
+
+.profile-list a.profile-link {
+ text-decoration: none;
+ text-align: center;
+ display: block;
+}
+.profile-list a.profile-link:hover {
+ color: #FFF;
+}
+
+.profile-list .profile_link span {
+ width: 200px;
+ display: block;
+ overflow: hidden;
+}
+
+.profile-list {
+ position: relative;
+}
+.profile-list .controll {
+ position: absolute;
+ top: 5px;
+ right: 0px;
+}
+.msie6 .profile-list .controll a {
+ display: block;
+ width: 0px;
+}
+
+.button-bar {
+ clear: both;
+ padding-top: 20px;
+}
+
--
libgit2 0.21.2