@@ -30,10 +30,8 module WatchersHelper | |||||
30 | :action => (watched ? 'unwatch' : 'watch'), |
|
30 | :action => (watched ? 'unwatch' : 'watch'), | |
31 | :object_type => object.class.to_s.underscore, |
|
31 | :object_type => object.class.to_s.underscore, | |
32 | :object_id => object.id} |
|
32 | :object_id => object.id} | |
33 |
link_to |
|
33 | link_to((watched ? l(:button_unwatch) : l(:button_watch)), url, | |
34 | {:url => url}, |
|
34 | :remote => true, :method => 'post', :class => (watched ? 'icon icon-fav' : 'icon icon-fav-off')) | |
35 | :href => url_for(url), |
|
|||
36 | :class => (watched ? 'icon icon-fav' : 'icon icon-fav-off')) |
|
|||
37 |
|
35 | |||
38 | end |
|
36 | end | |
39 |
|
37 | |||
@@ -57,11 +55,8 module WatchersHelper | |||||
57 | :object_id => object.id, |
|
55 | :object_id => object.id, | |
58 | :user_id => user} |
|
56 | :user_id => user} | |
59 | s << ' ' |
|
57 | s << ' ' | |
60 |
s << link_to |
|
58 | s << link_to(image_tag('delete.png'), url, | |
61 | {:url => url}, |
|
59 | :remote => true, :method => 'post', :style => "vertical-align: middle", :class => "delete") | |
62 | :href => url_for(url), |
|
|||
63 | :style => "vertical-align: middle", |
|
|||
64 | :class => "delete") |
|
|||
65 | end |
|
60 | end | |
66 | content << content_tag('li', s) |
|
61 | content << content_tag('li', s) | |
67 | end |
|
62 | end |
General Comments 0
You need to be logged in to leave comments.
Login now