Commit 57d930746426e6ce811c6446770481a243a531e0
1 parent
b1ba3e6a
Exists in
master
and in
29 other branches
ActionItem154: using better default images
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1384 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
7 changed files
with
19 additions
and
11 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -369,19 +369,24 @@ module ApplicationHelper | @@ -369,19 +369,24 @@ module ApplicationHelper | ||
369 | # | 369 | # |
370 | # If the profile has no image set yet, then a default image is used. | 370 | # If the profile has no image set yet, then a default image is used. |
371 | def profile_image(profile) | 371 | def profile_image(profile) |
372 | + image_tag(profile_icon(profile)) | ||
373 | + end | ||
374 | + | ||
375 | + def profile_icon(profile) | ||
372 | if profile.image | 376 | if profile.image |
373 | - image_tag(profile.image.public_filename(:thumb)) | 377 | + profile.image.public_filename(:minor) |
374 | else | 378 | else |
375 | if profile.organization? | 379 | if profile.organization? |
376 | if profile.kind_of?(Community) | 380 | if profile.kind_of?(Community) |
377 | - image_tag('community-default.png') | 381 | + 'icons-app/users.png' |
378 | else | 382 | else |
379 | - image_tag('organization-default.png') | 383 | + 'icons-app/gnome-home.png' |
380 | end | 384 | end |
381 | else | 385 | else |
382 | - image_tag('person-default.png') | 386 | + 'icons-app/user_icon.png' |
383 | end | 387 | end |
384 | end | 388 | end |
389 | + | ||
385 | end | 390 | end |
386 | 391 | ||
387 | # displays a link to the profile homepage with its image (as generated by | 392 | # displays a link to the profile homepage with its image (as generated by |
app/views/profile_editor/index.rhtml
@@ -26,16 +26,19 @@ | @@ -26,16 +26,19 @@ | ||
26 | <% end %> | 26 | <% end %> |
27 | 27 | ||
28 | <% if @profile.person? %> | 28 | <% if @profile.person? %> |
29 | - <h2><%= _('My organizations') %></h2> | 29 | + <h2><%= _('My groups') %></h2> |
30 | 30 | ||
31 | <% file_manager do %> | 31 | <% file_manager do %> |
32 | 32 | ||
33 | - <% @profile.enterprise_memberships.each do |em| %> | ||
34 | - <%= file_manager_button(em.name, em.image ? em.image.public_filename(:minor) : 'icons-app/organization.png', :profile => em.identifier, :controller => 'profile_editor' ) %> | 33 | + <% @profile.memberships.each do |group| %> |
34 | + <%= file_manager_button(group.name, profile_icon(group) , :profile => group.identifier, :controller => 'profile_editor' ) %> | ||
35 | <% end %> | 35 | <% end %> |
36 | 36 | ||
37 | <% end %> | 37 | <% end %> |
38 | 38 | ||
39 | - <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %> | 39 | + <% button_bar do %> |
40 | + <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %> | ||
41 | + <%= button(:edit, _('Manage my organizations'), :controller => 'memberships') %> | ||
42 | + <% end %> | ||
40 | 43 | ||
41 | <% end %> | 44 | <% end %> |
public/images/icons-app/README
@@ -23,8 +23,9 @@ password.png dlg-neu | @@ -23,8 +23,9 @@ password.png dlg-neu | ||
23 | abiword_48.png dlg-neu | 23 | abiword_48.png dlg-neu |
24 | gnome-other.png Nuovo | 24 | gnome-other.png Nuovo |
25 | user_icon.png dlg-neu | 25 | user_icon.png dlg-neu |
26 | -temp-home.png Nuovo | 26 | +gnome-home.png Nuovo |
27 | gtk-yes.png dlg-neu | 27 | gtk-yes.png dlg-neu |
28 | +users.png dlg-neu | ||
28 | 29 | ||
29 | Icons rasterization | 30 | Icons rasterization |
30 | =================== | 31 | =================== |
3.36 KB
public/images/icons-app/temp-home.png
2.43 KB
4.48 KB
public/stylesheets/blocks/profile-list-block.css
@@ -3,11 +3,10 @@ div.profile-list-block div { | @@ -3,11 +3,10 @@ div.profile-list-block div { | ||
3 | float: left; | 3 | float: left; |
4 | 4 | ||
5 | width: 100px; | 5 | width: 100px; |
6 | - height: 140px; | 6 | + height: 120px; |
7 | overflow: hidden; | 7 | overflow: hidden; |
8 | 8 | ||
9 | font-size: smaller; | 9 | font-size: smaller; |
10 | text-align: center; | 10 | text-align: center; |
11 | 11 | ||
12 | - | ||
13 | } | 12 | } |