summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:33:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:33:33 +0000
commitae7a4b9678dedbdfae0c62d9cc84667ef7388866 (patch)
tree65e91f487a6d3bb1184a3f2e632777c45284fccb /app/views/common
parente4d152e84a0f77fa0484d16c86022097ff31e2fb (diff)
downloadredmine-ae7a4b9678dedbdfae0c62d9cc84667ef7388866.tar.gz
redmine-ae7a4b9678dedbdfae0c62d9cc84667ef7388866.zip
Rails4: add ApplicationHelper#truncate_single_line_raw method replacing truncate_single_line
git-svn-id: http://svn.redmine.org/redmine/trunk@12830 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/feed.atom.builder6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/common/feed.atom.builder b/app/views/common/feed.atom.builder
index b4c830ee3..e279859b1 100644
--- a/app/views/common/feed.atom.builder
+++ b/app/views/common/feed.atom.builder
@@ -1,6 +1,6 @@
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
- xml.title truncate_single_line(@title, :length => 100)
+ xml.title truncate_single_line_raw(@title, 100)
xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false))
xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil))
xml.id url_for(:controller => 'welcome', :only_path => false)
@@ -12,9 +12,9 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.entry do
url = url_for(item.event_url(:only_path => false))
if @project
- xml.title truncate_single_line(item.event_title, :length => 100)
+ xml.title truncate_single_line_raw(item.event_title, 100)
else
- xml.title truncate_single_line("#{item.project} - #{item.event_title}", :length => 100)
+ xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
end
xml.link "rel" => "alternate", "href" => url
xml.id url