From c3043666fe7e71e3f13355063cc75da23a1457ab Mon Sep 17 00:00:00 2001 From: Chris Cooke Date: Tue, 21 Dec 2010 16:30:36 +0000 Subject: [PATCH] Show number of deploys and link to deploys page --- app/views/apps/show.html.haml | 7 +++++-- public/stylesheets/application.css | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/views/apps/show.html.haml b/app/views/apps/show.html.haml index 8ef8b0a..5c70b10 100644 --- a/app/views/apps/show.html.haml +++ b/app/views/apps/show.html.haml @@ -2,6 +2,8 @@ - content_for :meta do %strong Errs Caught: = @app.errs.count + %strong Deploy Count: + = @app.deploys.count %strong API Key: = @app.api_key - content_for :action_bar do @@ -40,12 +42,13 @@ %td.who #{deploy.username} %td.repository #{deploy.repository} %td.revision #{deploy.revision} + = link_to "All Deploys (#{@app.deploys.count})", app_deploys_path(@app), :class => 'button' - else %h3 No deploys - if @app.errs.any? - %h3 Errs + %h3.clear Errs = render 'errs/table', :errs => @errs - else - %h3 No errs have been caught yet, make sure you setup your app + %h3.clear No errs have been caught yet, make sure you setup your app = render 'configuration_instructions', :app => @app diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 03ef5db..6d3a74a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -195,6 +195,12 @@ a.action { float: right; font-size: 0.9em;} padding: 20px; border-top: 1px solid #C6C6C6; background-color: #FFF; } + +#content a.button { + float: right; + display: block; + margin-bottom: 10px; +} /* Footer */ #footer { @@ -605,4 +611,4 @@ table.backtrace li { table.backtrace li.in-app { color: #2adb2e; background-color: #2f2f2f; -} \ No newline at end of file +} -- libgit2 0.21.2