Permalink
Browse files

* bin/parkplace: fix the default admin warning.

 * 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...
1 parent 273437e commit c89a82159fc35c107665dc0d051944d68d8b9f71 _why committed Oct 10, 2006
Showing with 9 additions and 2 deletions.
  1. +2 −2 bin/parkplace
  2. +1 −0 lib/parkplace.rb
  3. +1 −0 lib/parkplace/control.rb
  4. +5 −0 static/css/control.css
View
@@ -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)
View
@@ -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
View
@@ -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
View
@@ -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.