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