diff --git a/app/views/apps/_configuration_instructions.html.haml b/app/views/apps/_configuration_instructions.html.haml index e7e6bf2..b210cc6 100644 --- a/app/views/apps/_configuration_instructions.html.haml +++ b/app/views/apps/_configuration_instructions.html.haml @@ -3,6 +3,7 @@ :preserve # Require the hoptoad_notifier gem in you App. + # -------------------------------------------- # # Rails 3 - In your Gemfile # gem 'hoptoad_notifier' @@ -10,12 +11,22 @@ # Rails 2 - In environment.rb # config.gem 'hoptoad_notifier' # - # Then add the following to config/initializers/hoptoad.rb + # Then add the following to config/initializers/errbit.rb + # ------------------------------------------------------- HoptoadNotifier.configure do |config| config.api_key = '#{app.api_key}' config.host = '#{request.host}' - config.port = #{request.port} - # Note: Deployment notifications only work on port 80 + config.port = #{request.port} # Note: Deployment notifications only work on port 80 end + # + # Testing + # ------- + # + # Rails 2 - you'll need to vendor hoptoad_notifier to get the rake tasks + # rake gems:unpack GEM=hoptoad_notifier + # + # Run: + # rake hoptoad:test + # refresh this page \ No newline at end of file diff --git a/app/views/apps/show.html.haml b/app/views/apps/show.html.haml index 5854f7c..57c6a81 100644 --- a/app/views/apps/show.html.haml +++ b/app/views/apps/show.html.haml @@ -8,10 +8,6 @@ - if current_user.admin? = link_to 'edit', edit_app_path(@app), :class => 'button' = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?', :class => 'button' - -- if @app.errs.none? - %h3 Setup your app - = render 'configuration_instructions', :app => @app %h3 Watchers %table.watchers @@ -27,5 +23,9 @@ %td %em Sadly, no one is watching this app -%h3 Errs -= render 'errs/table', :errs => @errs \ No newline at end of file +- if @app.errs.any? + %h3 Errs + = render 'errs/table', :errs => @errs +- else + %h3 No errs have been caught yet, make sure you setup your app + = render 'configuration_instructions', :app => @app \ No newline at end of file -- libgit2 0.21.2