public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Changed user diabling UI a bit

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1437 
567b1171-46fb-0310-a4c9-b4bef9110e78
Caged (author)
Wed Jul 26 22:59:52 -0700 2006
commit  4d2a84720addeb4d52f4c4f555cc7828be7f57df
tree    54beeb7deee80c67a7861f1c0e6986f287d7abdc
parent  2940725b01240f9c7041e1e502a39e2dc562eae9
...
14
15
16
17
 
18
19
...
14
15
16
 
17
18
19
0
@@ -14,6 +14,6 @@ class User < UserAuth
0
 
0
   # FIXME
0
   def gravatar_url(size = 80)
0
- "http://www.gravatar.com/avatar.php?size=#{size}&amp;gravatar_id=#{Digest::MD5.hexdigest(email)}&amp;default=http://localhost:3002/images/avatar.gif"
0
+ "http://www.gravatar.com/avatar.php?size=#{size}&gravatar_id=#{Digest::MD5.hexdigest(email)}&default=http://localhost:3002/images/avatar.gif"
0
   end
0
 end
...
1
2
3
4
5
6
7
8
9
 
10
11
...
1
 
2
3
4
 
 
 
 
5
6
7
0
@@ -1,10 +1,6 @@
0
 <li id="<%= user.dom_id %>" class="clear<%= %( deleted) unless user.deleted_at.nil? %><%= %( selected) if @user == user %>">
0
- <% if user.deleted_at.nil? -%>
0
     <%= avatar_for user %>
0
     <h3><%= link_to user.login, :action => 'show', :id => user %></h3>
0
     <%= user.email %>
0
- <%= link_to_remote 'Disable', :url => { :action => 'destroy', :id => user.id }, :confirm => 'Are you sure you wish to disable this user?' %>
0
- <% else -%>
0
- <h3><%= link_to user.login, :action => 'show', :id => user %> (<%= link_to_remote 'Enable', :url => { :action => 'enable', :id => user.id } %>)</h3>
0
- <% end -%>
0
+ <p><%= check_box_tag user.id, user.id, user.deleted_at.nil?, :onclick => %(if (confirm('Are you sure you wish to disable this user?')) { new Ajax.Request('/admin/users/destroy/#{user.id}', {asynchronous:true, evalScripts:true}); }; return false;) %> <strong>Allow this user to login</strong></p>
0
 </li>
0
\ No newline at end of file
...
2
3
4
5
6
7
8
9
10
11
12
...
2
3
4
 
 
 
 
 
 
 
5
0
@@ -2,10 +2,3 @@
0
 <% form_for :user, :url => { :action => 'create' } do |f| -%>
0
 <%= render :partial => 'form', :locals => { :f => f, :create => true } %>
0
 <% end -%>
0
-
0
-<% content_for :sidebar do -%>
0
-<h3>Users</h3>
0
-<ul id="users">
0
-<%= render :partial => "user", :collection => @users %>
0
-</ul>
0
-<% end -%>
0
\ No newline at end of file

Comments

    No one has commented yet.