Skip to content

Commit

Permalink
* bin/parkplace: fix the default admin warning.
Browse files Browse the repository at this point in the history
 * lib/parkplace.rb: announce the control center URL.
 * lib/parkplace/control.rb: click on a file name to see file and torrent details.
  • Loading branch information
_why committed Oct 10, 2006
1 parent 273437e commit c89a821
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/parkplace
Expand Up @@ -66,9 +66,9 @@ if num_users == 0
end

admin = ParkPlace::Models::User.find_by_login "admin"
if num_users == 1 and admin and not admin.password == hmac_sha1( DEFAULT_PASSWORD, admin.secret )
if num_users == 1 and admin and admin.password == hmac_sha1( DEFAULT_PASSWORD, admin.secret )
puts "** Please login in with `admin' and password `#{DEFAULT_PASSWORD}'"
puts "** You should change the default password or delete the admin at soonest chance!"
puts "** You should change the default password for the admin at soonest chance!"
end

ParkPlace.serve(options.host, options.port)
1 change: 1 addition & 0 deletions lib/parkplace.rb
Expand Up @@ -108,6 +108,7 @@ def serve(host, port)
end

puts "** ParkPlace example is running at http://#{host}:#{port}/"
puts "** Visit http://#{host}:#{port}/control/ for the control center."
config.join
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/parkplace/control.rb
Expand Up @@ -343,6 +343,7 @@ def control_buckets
end

def control_files
p "Click on a file name to get file and torrent details."
table do
caption { a(:href => R(CBuckets)) { self << "&larr; Buckets" } }
thead do
Expand Down
5 changes: 5 additions & 0 deletions static/css/control.css
Expand Up @@ -192,4 +192,9 @@ tbody th p {
}
.details {
display: none;
padding-left: 12px;
}
.details p {
font-size: 10px;
line-height: 110%;
}

0 comments on commit c89a821

Please sign in to comment.