Commit 0e2ca7e6ffafe5fbb2b0fa7a7322f46b41e15f71
1 parent
cb517cec
Exists in
master
and in
1 other branch
Updated apps/show page "Watchers" section with option to notify all users
Showing
1 changed file
with
17 additions
and
10 deletions
Show diff stats
app/views/apps/show.html.haml
| @@ -22,18 +22,24 @@ | @@ -22,18 +22,24 @@ | ||
| 22 | Watchers | 22 | Watchers |
| 23 | %span{:class => 'click_span'} (show/hide) | 23 | %span{:class => 'click_span'} (show/hide) |
| 24 | #watchers_div | 24 | #watchers_div |
| 25 | - %table.watchers | ||
| 26 | - %thead | ||
| 27 | - %tr | ||
| 28 | - %th User or Email | ||
| 29 | - %tbody | ||
| 30 | - - @app.watchers.each do |watcher| | 25 | + - if @app.notify_all_users |
| 26 | + %table.watchers | ||
| 27 | + %thead | ||
| 31 | %tr | 28 | %tr |
| 32 | - %td= watcher.label | ||
| 33 | - - if @app.watchers.none? | 29 | + %th All users will be notified when something happens. |
| 30 | + - else | ||
| 31 | + %table.watchers | ||
| 32 | + %thead | ||
| 34 | %tr | 33 | %tr |
| 35 | - %td | ||
| 36 | - %em Sadly, no one is watching this app | 34 | + %th User or Email |
| 35 | + %tbody | ||
| 36 | + - @app.watchers.each do |watcher| | ||
| 37 | + %tr | ||
| 38 | + %td= watcher.label | ||
| 39 | + - if @app.watchers.none? | ||
| 40 | + %tr | ||
| 41 | + %td | ||
| 42 | + %em Sadly, no one is watching this app | ||
| 37 | 43 | ||
| 38 | - if @app.github_url? | 44 | - if @app.github_url? |
| 39 | %h3{:id => 'repository_toggle'} | 45 | %h3{:id => 'repository_toggle'} |
| @@ -80,3 +86,4 @@ | @@ -80,3 +86,4 @@ | ||
| 80 | - else | 86 | - else |
| 81 | %h3.clear No errs have been caught yet, make sure you setup your app | 87 | %h3.clear No errs have been caught yet, make sure you setup your app |
| 82 | = render 'configuration_instructions', :app => @app | 88 | = render 'configuration_instructions', :app => @app |
| 89 | + |