Changeset 1362
- Timestamp:
- 08/25/08 14:03:31 (5 months ago)
- Files:
-
- trunk/app/controllers/user_controller.rb (added)
- trunk/app/controllers/users_controller.rb (modified) (1 diff)
- trunk/app/helpers/user_helper.rb (added)
- trunk/app/views/layouts/documents.rhtml (modified) (1 diff)
- trunk/app/views/user (added)
- trunk/app/views/user/edit.rhtml (moved) (moved from trunk/app/views/users/options.rhtml) (1 diff)
- trunk/app/views/user/show.rhtml (added)
- trunk/app/views/users/_sidebar.rhtml (modified) (1 diff)
- trunk/config/custom.rb (modified) (1 diff)
- trunk/config/routes.rb (modified) (2 diffs)
- trunk/lib/core_ext.rb (added)
- trunk/public/stylesheets/screen.css (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/users_controller.rb
r1182 r1362 40 40 @document = user.documents.find_by_keywords(params[:keywords]) 41 41 @subscription = user.find_subscriptions(:keywords => params[:keywords]) 42 end43 44 def options45 @user = User.find(session[:user])46 @users = User.find(:all, :conditions => ["id != ?", @user.id])47 if request.post?48 if @user.update_attributes(params[:user])49 flash[:success] = "Vos informations ont bien été modifié"50 else51 flash[:failure] = "Vos informations n'ont pas été modifié"52 end53 end54 42 end 55 43 trunk/app/views/layouts/documents.rhtml
r1179 r1362 19 19 <ul> 20 20 <% if session[:user] %> 21 <li><%= link_to(" Dashboard", :controller => "users", :action => "dashboard") %></li>22 <li><%= link_to(" Options", :controller => "users", :action => "options") %></li>21 <li><%= link_to("Tableau de bord", :controller => "users", :action => "dashboard") %></li> 22 <li><%= link_to("Mon compte", :controller => "user", :action => "show") %></li> 23 23 <li><%= link_to("Quitter", :controller => "users", :action => "signout") %></li> 24 24 <% else %> trunk/app/views/user/edit.rhtml
r986 r1362 8 8 <p><label for="user_organization">Organisme :</label><br/> 9 9 <%= text_field("user", "organization") %></p> 10 <%= submit_tag "Modifier" %> 11 <% end %> 10 <%= submit_tag "Modifier" %> ou 11 <%= link_to "revenir ›", :action => :show, :class => "blue" %> 12 13 <% end %> trunk/app/views/users/_sidebar.rhtml
r1144 r1362 24 24 <h2>Participez</h2> 25 25 <p> 26 <em>AudioBank se fait avec vous</em>. 26 <em>AudioBank se fait avec vous</em>. 27 27 </p> 28 28 <p> trunk/config/custom.rb
r656 r1362 1 1 ActionMailer::Base.default_charset = "utf-8" 2 2 ActionMailer::Base.delivery_method = :sendmail 3 4 require 'core_ext' trunk/config/routes.rb
r1122 r1362 1 1 ActionController::Routing::Routes.draw do |map| 2 2 # The priority is based upon order of creation: first created -> highest priority. 3 3 4 4 # Sample of regular route: 5 5 # map.connect 'products/:id', :controller => 'catalog', :action => 'view' … … 28 28 map.connect 'casts/:name', :controller => 'casts', :action => 'play' 29 29 map.connect 'casts/:name.:format', :controller => 'casts', :action => 'play' 30 map.connect 'user/:action', :controller => 'user' 31 30 32 map.connect ':action/:id/:confirm', :controller => 'users', :action => 'confirm' 31 33 map.connect ':action/:id', :controller => 'users' 32 33 # You can have the root of your site routed by hooking up '' 34 35 # You can have the root of your site routed by hooking up '' 34 36 # -- just remember to delete public/index.html. 35 37 map.connect '', :controller => 'users', :action => 'welcome' trunk/public/stylesheets/screen.css
r1137 r1362 48 48 #frame .unavailable { background: url("../images/unavailable.png") no-repeat; } 49 49 #frame .signup { background: url("../images/author.png") no-repeat; } 50 #frame .length { background: url("../images/length.png") no-repeat; } 50 #frame .length { background: url("../images/length.png") no-repeat; } 51 51 #frame .size { background: url("../images/size.png") no-repeat; } 52 52 #frame .note { background: url("../images/note.png") no-repeat; } … … 58 58 #content p { margin: 0 0 0 6px; } 59 59 #content li { position: relative; margin: 0 12px 8px; padding: 8px 0 0; } 60 #content li p, #content form p { margin: 0; } 60 #content li p, #content form p { margin: 0; } 61 61 #content li.vcard { float: left; width: 45%; padding: 10px 0; } 62 62 #content li.vcard img.photo { float: left; margin: 0 10px 0 0; text-align: center; padding: 2px; border: 1px solid #ccc; background: #fff; } … … 73 73 #content a:hover.rel-tag { text-decoration: none; background: #efefef; } 74 74 ul#welcome { margin: 16px 100px 16px 14px; } 75 76 #content dl { margin-left: 12px; } 77 #content dl dd { padding: 0; margin: 0; } 78 #content dl dt { margin-top: 12px; } 75 79 76 80 #welcome li { margin: 6px; color: #000; padding: 4px 4px 4px 28px; background: #fff url("../images/tick.png") no-repeat 4px 4px; } … … 100 104 101 105 #errors ul { margin: 0 12px 14px 14px; list-style-type: square; } 102 #errors li { margin: 6px; } 106 #errors li { margin: 6px; } 103 107 104 108 p#cloud { margin-bottom: 8px; }
