diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-03 13:17:31 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-03 13:17:31 +0000 |
commit | bcf0dc3226866264d1da4bcd208f4df69f9f02c8 (patch) | |
tree | 507f14dc0ac1b4acadba243e7c13d39e66eaeaf7 | |
parent | 3eb9dc3d5cd802b388fa923f72b8c71723fa552d (diff) |
Use new truncate syntax for new Rails
-rw-r--r-- | app/views/admin_request/show.rhtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml index 283690ce6..b9115dd59 100644 --- a/app/views/admin_request/show.rhtml +++ b/app/views/admin_request/show.rhtml @@ -76,8 +76,8 @@ <% if column == 'body' %> <td> - <div><%= simple_format( truncate(outgoing_message.body, 400, - link_to_function("...", "$(this).up('td').childElements().invoke('toggle')") + <div><%= simple_format( truncate(outgoing_message.body, :length => 400, + :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')") )) %></div> <div style="display:none;"><%= simple_format( outgoing_message.body ) %></div> </td> @@ -116,8 +116,8 @@ <% for column in IncomingMessage.content_columns.map { |c| c.name } %> <% if column =~ /^cached_.*?$/ %> <td> - <div><%= simple_format( truncate(incoming_message.send(column), 400, - link_to_function("...", "$(this).up('td').childElements().invoke('toggle')") + <div><%= simple_format( truncate(incoming_message.send(column), :length => 400, + :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')") )) %></div> <div style="display:none;"><%= simple_format( incoming_message.send(column) ) %></div> </td> |