Commit 4a72d21630c203600550b95daddbc836cab0a4f8

Authored by AurelioAHeckert
1 parent 304c2974

ActionItem183: list of related profiles (friends, communities, enterprises and m…

…embers) is beault now.

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1538 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/profile/communities.rhtml
  1 +<div class="common-profile-list-block"
  2 + help="<%= _('Here are all <b>%s</b>\'s communities.') % profile.name %>">
  3 +
1 <h1><%= _("%s's communities") % profile.name %></h1> 4 <h1><%= _("%s's communities") % profile.name %></h1>
2 5
3 <ul class='profile-list'> 6 <ul class='profile-list'>
@@ -7,5 +10,9 @@ @@ -7,5 +10,9 @@
7 </ul> 10 </ul>
8 11
9 <% button_bar do %> 12 <% button_bar do %>
10 - <%= button(:back, _('Go back'), :controller => 'profile') %> 13 + <%= button :back, _('Go back'), { :controller => 'profile' },
  14 + :help => _('Back to the page where you come from.') %>
11 <% end %> 15 <% end %>
  16 +
  17 +</div><!-- fim class="common-profile-list-block" -->
  18 +
app/views/profile/enterprises.rhtml
  1 +<div class="common-profile-list-block"
  2 + help="<%= _('Here are all <b>%s</b>\'s enterprises.') % profile.name %>">
  3 +
1 <h1><%= _("%s's enterprises") % profile.name %></h1> 4 <h1><%= _("%s's enterprises") % profile.name %></h1>
2 5
3 <ul class='profile-list'> 6 <ul class='profile-list'>
@@ -7,5 +10,9 @@ @@ -7,5 +10,9 @@
7 </ul> 10 </ul>
8 11
9 <% button_bar do %> 12 <% button_bar do %>
10 - <%= button(:back, _('Go back'), :controller => 'profile') %> 13 + <%= button :back, _('Go back'), { :controller => 'profile' },
  14 + :help => _('Back to the page where you come from.') %>
11 <% end %> 15 <% end %>
  16 +
  17 +</div><!-- fim class="common-profile-list-block" -->
  18 +
app/views/profile/friends.rhtml
  1 +<div class="common-profile-list-block"
  2 + help="<%= _('Here are all <b>%s</b>\'s friends.') % profile.name %>">
  3 +
1 <h1><%= _("%s' friends") % profile.name %></h1> 4 <h1><%= _("%s' friends") % profile.name %></h1>
2 5
3 <ul class='profile-list'> 6 <ul class='profile-list'>
@@ -7,5 +10,9 @@ @@ -7,5 +10,9 @@
7 </ul> 10 </ul>
8 11
9 <% button_bar do %> 12 <% button_bar do %>
10 - <%= button(:back, _('Go back'), :controller => 'profile') %> 13 + <%= button :back, _('Go back'), { :controller => 'profile' },
  14 + :help => _('Back to the page where you come from.') %>
11 <% end %> 15 <% end %>
  16 +
  17 +</div><!-- fim class="common-profile-list-block" -->
  18 +
app/views/profile/members.rhtml
  1 +<div class="common-profile-list-block"
  2 + help="<%= _('Here are all <b>%s</b>\'s members.') % profile.name %>">
  3 +
1 <h1><%= _("%s' members") % profile.name %></h1> 4 <h1><%= _("%s' members") % profile.name %></h1>
2 5
3 <ul class='profile-list'> 6 <ul class='profile-list'>
@@ -7,5 +10,9 @@ @@ -7,5 +10,9 @@
7 </ul> 10 </ul>
8 11
9 <% button_bar do %> 12 <% button_bar do %>
10 - <%= button(:back, _('Go back'), :controller => 'profile') %> 13 + <%= button :back, _('Go back'), { :controller => 'profile' },
  14 + :help => _('Back to the page where you come from.') %>
11 <% end %> 15 <% end %>
  16 +
  17 +</div><!-- fim class="common-profile-list-block" -->
  18 +
public/designs/themes/default/stylesheets/blocks/main-block.css
  1 +@import url(profile-list-block.css);
  2 +
1 .article { 3 .article {
2 position: relative; 4 position: relative;
3 text-align: justify; 5 text-align: justify;
public/designs/themes/default/stylesheets/blocks/profile-list-block.css 0 → 100644
@@ -0,0 +1,85 @@ @@ -0,0 +1,85 @@
  1 +.common-profile-list-block {
  2 + text-align: center;
  3 + color: #B8CFE7;
  4 +}
  5 +
  6 +#content .common-profile-list-block .block-title {
  7 + font-size: 14px;
  8 +}
  9 +
  10 +.common-profile-list-block ul {
  11 + margin: 0px;
  12 + padding: 0px;
  13 +}
  14 +
  15 +#content .common-profile-list-block li {
  16 + list-style: none;
  17 + margin: 0px;
  18 + padding: 0px;
  19 + float: left;
  20 +}
  21 +
  22 +.common-profile-list-block li a {
  23 + border: 2px solid #FFF;
  24 + display: block;
  25 + height: 100px;
  26 + padding-top: 2px;
  27 + width: 96px;
  28 + overflow: hidden;
  29 + text-decoration: none;
  30 + font-size: 9px;
  31 +}
  32 +.msie .common-profile-list-block li a {
  33 + width: 100px;
  34 + line-height: 10px;
  35 + cursor: pointer;
  36 +}
  37 +
  38 +.common-profile-list-block li a:hover {
  39 + border: 2px solid #2A5896;
  40 + background: #B8CFE7;
  41 + color: #035;
  42 +}
  43 +
  44 +.common-profile-list-block li div {
  45 + width: 96px;
  46 + height: 64px;
  47 +}
  48 +
  49 +.common-profile-list-block li span {
  50 + display: block;
  51 + width: 92px;
  52 +}
  53 +
  54 +.common-profile-list-block li img {
  55 + border: none;
  56 +}
  57 +
  58 +.enterprises-block .block-footer-content,
  59 +.friends-block .block-footer-content,
  60 +.communities-block .block-footer-content {
  61 + text-align: center;
  62 + font-size: 80%;
  63 + padding: 5px 0px 0px 0px;
  64 +}
  65 +.msie .enterprises-block .block-footer-content,
  66 +.msie .friends-block .block-footer-content,
  67 +.msie .communities-block .block-footer-content {
  68 + padding: 0px;
  69 + margin-top: -5px;
  70 +}
  71 +
  72 +.common-profile-list-block-none {
  73 + font-style: italic;
  74 + margin-bottom: -10px;
  75 +}
  76 +.msie .common-profile-list-block-none {
  77 + margin-bottom: 0px;
  78 + padding-bottom: 10px;
  79 +}
  80 +
  81 +.common-profile-list-block .button-bar {
  82 + padding-top: 15px;
  83 + clear: left;
  84 +}
  85 +