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 2 - content_for :meta do
3 3 %strong Errs Caught:
4 4 = @app.errs.count
  5 + %strong Deploy Count:
  6 + = @app.deploys.count
5 7 %strong API Key:
6 8 = @app.api_key
7 9 - content_for :action_bar do
... ... @@ -40,12 +42,13 @@
40 42 %td.who #{deploy.username}
41 43 %td.repository #{deploy.repository}
42 44 %td.revision #{deploy.revision}
  45 + = link_to "All Deploys (#{@app.deploys.count})", app_deploys_path(@app), :class => 'button'
43 46 - else
44 47 %h3 No deploys
45 48  
46 49 - if @app.errs.any?
47   - %h3 Errs
  50 + %h3.clear Errs
48 51 = render 'errs/table', :errs => @errs
49 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 54 = render 'configuration_instructions', :app => @app
... ...
public/stylesheets/application.css
... ... @@ -195,6 +195,12 @@ a.action { float: right; font-size: 0.9em;}
195 195 padding: 20px; border-top: 1px solid #C6C6C6;
196 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 205 /* Footer */
200 206 #footer {
... ... @@ -605,4 +611,4 @@ table.backtrace li {
605 611 table.backtrace li.in-app {
606 612 color: #2adb2e;
607 613 background-color: #2f2f2f;
608   -}
609 614 \ No newline at end of file
  615 +}
... ...