Commit 2a0c407d4432f2cd672c3e93ffed83934194e4ea
1 parent
053b2243
Exists in
master
and in
1 other branch
Minor fix
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
app/views/apps/show.html.haml
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | = link_to 'unresolved errs', app_path(@app), :class => 'button' | 17 | = link_to 'unresolved errs', app_path(@app), :class => 'button' |
| 18 | - else | 18 | - else |
| 19 | = link_to 'all errs', app_path(@app, :all_errs => true), :class => 'button' | 19 | = link_to 'all errs', app_path(@app, :all_errs => true), :class => 'button' |
| 20 | - | 20 | + = link_to 'unwatch', app_watcher_path({:app_id => @app, :id => current_user.id}), :method => :delete, :class => 'button', :confirm => 'Are you sure?' |
| 21 | %h3#watchers_toggle | 21 | %h3#watchers_toggle |
| 22 | Watchers | 22 | Watchers |
| 23 | %span.click_span (show/hide) | 23 | %span.click_span (show/hide) |
| @@ -32,14 +32,10 @@ | @@ -32,14 +32,10 @@ | ||
| 32 | %thead | 32 | %thead |
| 33 | %tr | 33 | %tr |
| 34 | %th User or Email | 34 | %th User or Email |
| 35 | - %th | ||
| 36 | %tbody | 35 | %tbody |
| 37 | - @app.watchers.each do |watcher| | 36 | - @app.watchers.each do |watcher| |
| 38 | %tr | 37 | %tr |
| 39 | - %td | ||
| 40 | - = watcher.label | ||
| 41 | - %td | ||
| 42 | - = link_to 'unsubscribe', app_watcher_path({:app_id => @app, :id => watcher.id}), :method => :delete, :class => 'button', :confirm => 'Are you sure?' | 38 | + %td= watcher.label |
| 43 | - if @app.watchers.none? | 39 | - if @app.watchers.none? |
| 44 | %tr | 40 | %tr |
| 45 | %td | 41 | %td |