Commit c112df7bd35943908b85a991df598305d66661d5
1 parent
4c6e563f
Exists in
master
and in
22 other branches
ActionItem489: better gender icons in profile listing
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2108 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
8 changed files
with
20 additions
and
19 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -334,7 +334,11 @@ module ApplicationHelper | @@ -334,7 +334,11 @@ module ApplicationHelper | ||
334 | def profile_image_link( profile, size=:portrait, tag='li' ) | 334 | def profile_image_link( profile, size=:portrait, tag='li' ) |
335 | if profile.class == Person | 335 | if profile.class == Person |
336 | sex = ( profile.sex ? profile.sex.to_s() : 'undef' ) | 336 | sex = ( profile.sex ? profile.sex.to_s() : 'undef' ) |
337 | - sex = content_tag( 'span', content_tag( 'span', sex ), :class => 'sex-' + sex ) | 337 | + title = ( sex == 'undef' ? _('undefined gender') : ( sex == 'male' ? _('Male') : _('Female') ) ) |
338 | + sex = content_tag 'span', | ||
339 | + content_tag( 'span', sex ), | ||
340 | + :class => 'sex-'+sex, | ||
341 | + :title => title | ||
338 | else | 342 | else |
339 | sex = '' | 343 | sex = '' |
340 | end | 344 | end |
app/views/layouts/application.rhtml
@@ -166,11 +166,5 @@ | @@ -166,11 +166,5 @@ | ||
166 | </div> | 166 | </div> |
167 | <%= javascript_include_tag 'better-browser-promotion' %> | 167 | <%= javascript_include_tag 'better-browser-promotion' %> |
168 | 168 | ||
169 | - <script type="text/javascript"> | ||
170 | - // the onload will run only after all related documents load. | ||
171 | - // by that we need to cal this here: | ||
172 | - if ( window.addEventListener ) resizePrincipalTemplateBox() | ||
173 | - </script> | ||
174 | - | ||
175 | </body> | 169 | </body> |
176 | </html> | 170 | </html> |
public/designs/themes/ecosol/stylesheets/controller_search.css
@@ -97,17 +97,19 @@ body.category4 .search-results-innerbox { | @@ -97,17 +97,19 @@ body.category4 .search-results-innerbox { | ||
97 | padding: 0px 0px 5px 0px; | 97 | padding: 0px 0px 5px 0px; |
98 | } | 98 | } |
99 | 99 | ||
100 | -.search-results-type-profile.common-profile-list-block a { | 100 | +/* |
101 | +.Xsearch-results-type-profile.common-profile-list-block a { | ||
101 | width: 90px; | 102 | width: 90px; |
102 | } | 103 | } |
103 | -.search-results-type-profile.common-profile-list-block li div { | 104 | +.Xsearch-results-type-profile.common-profile-list-block li div { |
104 | width: 88px; | 105 | width: 88px; |
105 | height: 64px; | 106 | height: 64px; |
106 | } | 107 | } |
107 | -.search-results-type-profile.common-profile-list-block li span { | 108 | +.Xsearch-results-type-profile.common-profile-list-block li span { |
108 | display: block; | 109 | display: block; |
109 | width: 82px; | 110 | width: 82px; |
110 | } | 111 | } |
112 | +*/ | ||
111 | 113 | ||
112 | .search-results-type-profile.common-profile-list-block li a { | 114 | .search-results-type-profile.common-profile-list-block li a { |
113 | color: #000; | 115 | color: #000; |
public/images/icons-app/ico-female.png
public/images/icons-app/ico-male.png
public/images/icons-app/ico-sex-undef.png
public/img-source/sex.xcf.gz
No preview for this file type
public/stylesheets/blocks/profile-list-block.css
@@ -8,7 +8,6 @@ | @@ -8,7 +8,6 @@ | ||
8 | } | 8 | } |
9 | 9 | ||
10 | .common-profile-list-block .vcard a { | 10 | .common-profile-list-block .vcard a { |
11 | - width: 92px; | ||
12 | height: 95px; | 11 | height: 95px; |
13 | max-height: 92px; | 12 | max-height: 92px; |
14 | padding-top: 3px; | 13 | padding-top: 3px; |
@@ -21,6 +20,7 @@ | @@ -21,6 +20,7 @@ | ||
21 | text-decoration: none; | 20 | text-decoration: none; |
22 | color: #000; | 21 | color: #000; |
23 | position: relative; | 22 | position: relative; |
23 | + cursor: pointer; /* work arround bug for MSIE */ | ||
24 | } | 24 | } |
25 | .msie6 .common-profile-list-block .vcard a { | 25 | .msie6 .common-profile-list-block .vcard a { |
26 | border: 2px solid #FFF; | 26 | border: 2px solid #FFF; |
@@ -32,11 +32,12 @@ | @@ -32,11 +32,12 @@ | ||
32 | 32 | ||
33 | .common-profile-list-block span { | 33 | .common-profile-list-block span { |
34 | display: block; | 34 | display: block; |
35 | + width: 92px; | ||
35 | overflow: hidden; | 36 | overflow: hidden; |
36 | } | 37 | } |
37 | 38 | ||
38 | .common-profile-list-block .profile-image { | 39 | .common-profile-list-block .profile-image { |
39 | - width: 96px; | 40 | + width: 92px; |
40 | display: table-cell; | 41 | display: table-cell; |
41 | vertical-align: middle; | 42 | vertical-align: middle; |
42 | height: 64px; | 43 | height: 64px; |
@@ -46,15 +47,15 @@ | @@ -46,15 +47,15 @@ | ||
46 | border: none; | 47 | border: none; |
47 | } | 48 | } |
48 | 49 | ||
49 | -#content .common-profile-list-block .sex-male, | ||
50 | -#content .common-profile-list-block .sex-female, | ||
51 | -#content .common-profile-list-block .sex-undef { | 50 | +.common-profile-list-block .sex-male, |
51 | +.common-profile-list-block .sex-female, | ||
52 | +.common-profile-list-block .sex-undef { | ||
52 | position: absolute; | 53 | position: absolute; |
53 | - top: 2px; | ||
54 | - right: 2px; | 54 | + top: 4px; |
55 | + right: 15px; | ||
55 | display: block; | 56 | display: block; |
56 | - width: 14px; | ||
57 | - height: 18px; | 57 | + width: 15px; |
58 | + height: 15px; | ||
58 | } | 59 | } |
59 | 60 | ||
60 | .common-profile-list-block .locality { | 61 | .common-profile-list-block .locality { |