Commit 76dfe9f57b56473a912ef1d17ec23bc36b4e391d

Authored by AurelioAHeckert
1 parent 23f3d3c3

ActionItem183: the index of profile editor is better now.

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1540 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/layouts/application.rhtml
... ... @@ -13,12 +13,15 @@
13 13 stylesheet_import is better then stylesheet_link_tag because the stylesheet
14 14 must be loaded before the page show.
15 15 %>
16   - <%= stylesheet_import %w( common help menu article button search blocks forms login-box ) %>
17   - <%= import_blocks_stylesheets %>
18 16 <%=
  17 + # Load the principal css files:
  18 + stylesheet_import( %w( common help menu article button search blocks forms login-box ) ) +
  19 + "\n" +
  20 + # Load the boxes's css file if each exists:
  21 + import_blocks_stylesheets +
19 22 # Load the controller's css file if it exists:
20   - css = "controller_"+ @controller.controller_name() +".css"
21   - stylesheet_link_tag( css ) if File.exists?( "public/stylesheets/"+css )
  23 + stylesheet_import( "controller_"+ @controller.controller_name() ) + "\n" +
  24 + stylesheet_import( "controller_"+ @controller.controller_name(), :themed_source => true )
22 25 %>
23 26  
24 27 <%# FIXME %>
... ...
app/views/profile_editor/index.rhtml
  1 +<div id="profile-editor-index">
  2 +
1 3 <h1 class="block-title"><%= _('My profile') %></h1>
2 4  
3 5 <%= render :partial => 'pending_tasks' %>
4 6  
5   -<%= link_to (@profile.image ? image_tag( @profile.image.public_filename) : _('Put image')), :action => 'change_image' %>
  7 +<%= link_to (@profile.image ? image_tag( @profile.image.public_filename) :
  8 + _('Upload your picture') ),
  9 + { :action => 'change_image' },
  10 + :class => (@profile.image ? 'change-user-picture' : 'set-user-picture' ),
  11 + :help => _('Click here to upload any image to be your picture') %>
  12 +
  13 +<p/>
6 14  
7 15 <%= display_profile_info(profile) %>
8 16  
... ... @@ -48,3 +56,5 @@
48 56 <% end %>
49 57  
50 58 <% end %>
  59 +
  60 +</div><!-- end id="profile-editor-index" -->
... ...
public/designs/themes/default/stylesheets/blocks/main-block.css
1   -@import url(profile-list-block.css);
2 1  
3 2 .article {
4 3 position: relative;
... ...
public/designs/themes/default/stylesheets/controller_profile.css 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +@import url(profile-list-block.css);
  2 +
... ...
public/designs/themes/default/stylesheets/controller_profile_editor.css 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +
  2 +#profile-editor-index .change-user-picture img {
  3 + border: 2px solid #3465A4;
  4 + padding: 1px;
  5 +}
  6 +
  7 +#profile-editor-index .set-user-picture {
  8 + text-decoration: none;
  9 + border: 2px solid #3465A4;
  10 + background: #B8CFE7;
  11 + padding: 1px 5px;
  12 +}
... ...
public/stylesheets/blocks/main-block.css
No preview for this file type
public/stylesheets/controller_profile.css 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +@import url(profile-list-block.css);
  2 +
... ...
public/stylesheets/controller_profile_editor.css
1 1 .profile_info th {
2 2 text-align: right;
3   - padding-right: 20px;
  3 +}
  4 +
  5 +.profile_info td,
  6 +.profile_info th {
  7 + padding: 2px 10px;
4 8 }
... ...