Commit c3043666fe7e71e3f13355063cc75da23a1457ab

Authored by Chris Cooke
Committed by Nick Recobra
1 parent 7f5f16cd
Exists in master and in 1 other branch production

Show number of deploys and link to deploys page

app/views/apps/show.html.haml
@@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
2 - content_for :meta do 2 - content_for :meta do
3 %strong Errs Caught: 3 %strong Errs Caught:
4 = @app.errs.count 4 = @app.errs.count
  5 + %strong Deploy Count:
  6 + = @app.deploys.count
5 %strong API Key: 7 %strong API Key:
6 = @app.api_key 8 = @app.api_key
7 - content_for :action_bar do 9 - content_for :action_bar do
@@ -40,12 +42,13 @@ @@ -40,12 +42,13 @@
40 %td.who #{deploy.username} 42 %td.who #{deploy.username}
41 %td.repository #{deploy.repository} 43 %td.repository #{deploy.repository}
42 %td.revision #{deploy.revision} 44 %td.revision #{deploy.revision}
  45 + = link_to "All Deploys (#{@app.deploys.count})", app_deploys_path(@app), :class => 'button'
43 - else 46 - else
44 %h3 No deploys 47 %h3 No deploys
45 48
46 - if @app.errs.any? 49 - if @app.errs.any?
47 - %h3 Errs 50 + %h3.clear Errs
48 = render 'errs/table', :errs => @errs 51 = render 'errs/table', :errs => @errs
49 - else 52 - else
50 - %h3 No errs have been caught yet, make sure you setup your app 53 + %h3.clear No errs have been caught yet, make sure you setup your app
51 = render 'configuration_instructions', :app => @app 54 = render 'configuration_instructions', :app => @app
public/stylesheets/application.css
@@ -195,6 +195,12 @@ a.action { float: right; font-size: 0.9em;} @@ -195,6 +195,12 @@ a.action { float: right; font-size: 0.9em;}
195 padding: 20px; border-top: 1px solid #C6C6C6; 195 padding: 20px; border-top: 1px solid #C6C6C6;
196 background-color: #FFF; 196 background-color: #FFF;
197 } 197 }
  198 +
  199 +#content a.button {
  200 + float: right;
  201 + display: block;
  202 + margin-bottom: 10px;
  203 +}
198 204
199 /* Footer */ 205 /* Footer */
200 #footer { 206 #footer {
@@ -605,4 +611,4 @@ table.backtrace li { @@ -605,4 +611,4 @@ table.backtrace li {
605 table.backtrace li.in-app { 611 table.backtrace li.in-app {
606 color: #2adb2e; 612 color: #2adb2e;
607 background-color: #2f2f2f; 613 background-color: #2f2f2f;
608 -}  
609 \ No newline at end of file 614 \ No newline at end of file
  615 +}