Permalink
Browse files

Add webconsole support.

  • Loading branch information...
1 parent 7a9228a commit 6d2037ffc400b6126391997b265de0e097d44e9b @tobias tobias committed Apr 18, 2012
Showing with 22 additions and 7 deletions.
  1. +3 −0 CHANGELOG.md
  2. +1 −0 Gemfile
  3. +3 −1 backstage.rb
  4. +4 −0 views/css/style.sass
  5. +11 −6 views/layout.haml
View
3 CHANGELOG.md
@@ -1,3 +1,6 @@
+* 1.0.3 - 2012-04-19
+ * add builtin webconsole
+
* 1.0.2 - 2012-04-18
* relax bundler requirement
View
1 Gemfile
@@ -8,6 +8,7 @@ gem 'json', '1.5.1'
gem 'torquebox', '~> 2.0.0'
gem 'tobias-sinatra-url-for', '0.2.1'
gem 'rack-accept', '~>0.4.0'
+gem 'torquebox-webconsole', '0.1.0'
# These are commented out to keep them out of Gemfile.lock
#group :development do
View
4 backstage.rb
@@ -16,6 +16,7 @@
require 'sinatra/base'
require 'rack/accept'
+require 'torquebox/webconsole'
require 'haml'
require 'sass'
require 'jmx'
@@ -48,7 +49,8 @@ class Application < Sinatra::Base
enable :sessions
use Rack::Accept
use Rack::CommonLogger, Backstage.logger
-
+ use Rack::Webconsole
+
include Backstage::Authentication
set :views, Proc.new { File.join( File.dirname( __FILE__ ), "views" ) }
View
4 views/css/style.sass
@@ -65,6 +65,10 @@ body
margin: 30px 0
text-align: center
+ #tip
+ font-style: italic
+ margin-bottom: 20px
+
.data-table
.data-row
td.label, td.value
View
17 views/layout.haml
@@ -23,9 +23,14 @@
#content
= yield
#footer
- %a{:href => 'https://github.com/torquebox/backstage'}<
- Backstage
- v#{Backstage::BACKSTAGE_VERSION} for
- %a{:href => 'http://torquebox.org/'}<
- TorqueBox
- v#{Backstage::TORQUEBOX_VERSION}
+ #tip
+ Tip: press the backquote (`) key to bring up a ruby
+ %a{:href => 'https://github.com/torquebox/torquebox-webconsole'}<
+ console
+ #version
+ %a{:href => 'https://github.com/torquebox/backstage'}<
+ Backstage
+ v#{Backstage::BACKSTAGE_VERSION} for
+ %a{:href => 'http://torquebox.org/'}<
+ TorqueBox
+ v#{Backstage::TORQUEBOX_VERSION}

0 comments on commit 6d2037f

Please sign in to comment.