Rename views to rails 2 style names.
authorTom Hughes <tom@compton.nu>
Tue, 9 Jun 2009 20:50:14 +0000 (20:50 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 9 Jun 2009 20:50:14 +0000 (20:50 +0000)
91 files changed:
app/controllers/diary_entry_controller.rb
app/views/api/map.xml.builder [moved from app/views/api/map.rxml with 100% similarity]
app/views/browse/_changeset_details.html.erb [moved from app/views/browse/_changeset_details.rhtml with 100% similarity]
app/views/browse/_common_details.html.erb [moved from app/views/browse/_common_details.rhtml with 100% similarity]
app/views/browse/_containing_relation.html.erb [moved from app/views/browse/_containing_relation.rhtml with 100% similarity]
app/views/browse/_map.html.erb [moved from app/views/browse/_map.rhtml with 100% similarity]
app/views/browse/_navigation.html.erb [moved from app/views/browse/_navigation.rhtml with 100% similarity]
app/views/browse/_node_details.html.erb [moved from app/views/browse/_node_details.rhtml with 100% similarity]
app/views/browse/_paging_nav.html.erb [moved from app/views/browse/_paging_nav.rhtml with 100% similarity]
app/views/browse/_relation_details.html.erb [moved from app/views/browse/_relation_details.rhtml with 100% similarity]
app/views/browse/_relation_member.html.erb [moved from app/views/browse/_relation_member.rhtml with 100% similarity]
app/views/browse/_start.html.erb [moved from app/views/browse/_start.rhtml with 100% similarity]
app/views/browse/_tag.html.erb [moved from app/views/browse/_tag.rhtml with 100% similarity]
app/views/browse/_tag_details.html.erb [moved from app/views/browse/_tag_details.rhtml with 100% similarity]
app/views/browse/_way_details.html.erb [moved from app/views/browse/_way_details.rhtml with 100% similarity]
app/views/browse/changeset.html.erb [moved from app/views/browse/changeset.rhtml with 100% similarity]
app/views/browse/node.html.erb [moved from app/views/browse/node.rhtml with 100% similarity]
app/views/browse/node_history.html.erb [moved from app/views/browse/node_history.rhtml with 100% similarity]
app/views/browse/not_found.html.erb [moved from app/views/browse/not_found.rhtml with 100% similarity]
app/views/browse/relation.html.erb [moved from app/views/browse/relation.rhtml with 100% similarity]
app/views/browse/relation_history.html.erb [moved from app/views/browse/relation_history.rhtml with 100% similarity]
app/views/browse/way.html.erb [moved from app/views/browse/way.rhtml with 100% similarity]
app/views/browse/way_history.html.erb [moved from app/views/browse/way_history.rhtml with 100% similarity]
app/views/changeset/_changeset.html.erb [moved from app/views/changeset/_changeset.rhtml with 100% similarity]
app/views/changeset/_changeset_paging_nav.html.erb [moved from app/views/changeset/_changeset_paging_nav.rhtml with 100% similarity]
app/views/changeset/_changesets.html.erb [moved from app/views/changeset/_changesets.rhtml with 100% similarity]
app/views/changeset/list.html.erb [moved from app/views/changeset/list.rhtml with 100% similarity]
app/views/changeset/list_bbox.html.erb [moved from app/views/changeset/list_bbox.rhtml with 100% similarity]
app/views/changeset/list_user.html.erb [moved from app/views/changeset/list_user.rhtml with 100% similarity]
app/views/diary_entry/_diary_comment.html.erb [moved from app/views/diary_entry/_diary_comment.rhtml with 100% similarity]
app/views/diary_entry/_diary_entry.html.erb [moved from app/views/diary_entry/_diary_entry.rhtml with 100% similarity]
app/views/diary_entry/edit.html.erb [moved from app/views/diary_entry/edit.rhtml with 100% similarity]
app/views/diary_entry/list.html.erb [moved from app/views/diary_entry/list.rhtml with 100% similarity]
app/views/diary_entry/no_such_entry.html.erb [moved from app/views/diary_entry/no_such_entry.rhtml with 100% similarity]
app/views/diary_entry/no_such_user.html.erb [moved from app/views/diary_entry/no_such_user.rhtml with 100% similarity]
app/views/diary_entry/rss.rss.builder [moved from app/views/diary_entry/rss.rxml with 100% similarity]
app/views/diary_entry/view.html.erb [moved from app/views/diary_entry/view.rhtml with 100% similarity]
app/views/export/_start.html.erb [moved from app/views/export/_start.rhtml with 100% similarity]
app/views/geocoder/_results.html.erb [moved from app/views/geocoder/_results.rhtml with 100% similarity]
app/views/layouts/site.html.erb [moved from app/views/layouts/site.rhtml with 100% similarity]
app/views/message/_message_summary.html.erb [moved from app/views/message/_message_summary.rhtml with 100% similarity]
app/views/message/_sent_message_summary.html.erb [moved from app/views/message/_sent_message_summary.rhtml with 100% similarity]
app/views/message/inbox.html.erb [moved from app/views/message/inbox.rhtml with 100% similarity]
app/views/message/new.html.erb [moved from app/views/message/new.rhtml with 100% similarity]
app/views/message/no_such_user.html.erb [moved from app/views/message/no_such_user.rhtml with 100% similarity]
app/views/message/outbox.html.erb [moved from app/views/message/outbox.rhtml with 100% similarity]
app/views/message/read.html.erb [moved from app/views/message/read.rhtml with 100% similarity]
app/views/notifier/_gpx_description.html.erb [moved from app/views/notifier/_gpx_description.rhtml with 100% similarity]
app/views/notifier/diary_comment_notification.html.erb [moved from app/views/notifier/diary_comment_notification.rhtml with 100% similarity]
app/views/notifier/email_confirm.text.html.erb [moved from app/views/notifier/email_confirm.text.html.rhtml with 100% similarity]
app/views/notifier/email_confirm.text.plain.erb [moved from app/views/notifier/email_confirm.text.plain.rhtml with 100% similarity]
app/views/notifier/friend_notification.html.erb [moved from app/views/notifier/friend_notification.rhtml with 100% similarity]
app/views/notifier/gpx_failure.html.erb [moved from app/views/notifier/gpx_failure.rhtml with 100% similarity]
app/views/notifier/gpx_success.html.erb [moved from app/views/notifier/gpx_success.rhtml with 100% similarity]
app/views/notifier/lost_password.text.html.erb [moved from app/views/notifier/lost_password.text.html.rhtml with 100% similarity]
app/views/notifier/lost_password.text.plain.erb [moved from app/views/notifier/lost_password.text.plain.rhtml with 100% similarity]
app/views/notifier/message_notification.html.erb [moved from app/views/notifier/message_notification.rhtml with 100% similarity]
app/views/notifier/reset_password.text.html.erb [moved from app/views/notifier/reset_password.text.html.rhtml with 100% similarity]
app/views/notifier/reset_password.text.plain.erb [moved from app/views/notifier/reset_password.text.plain.rhtml with 100% similarity]
app/views/notifier/signup_confirm.text.html.erb [moved from app/views/notifier/signup_confirm.text.html.rhtml with 100% similarity]
app/views/notifier/signup_confirm.text.plain.erb [moved from app/views/notifier/signup_confirm.text.plain.rhtml with 100% similarity]
app/views/site/_key.html.erb [moved from app/views/site/_key.rhtml with 100% similarity]
app/views/site/_search.html.erb [moved from app/views/site/_search.rhtml with 100% similarity]
app/views/site/_sidebar.html.erb [moved from app/views/site/_sidebar.rhtml with 100% similarity]
app/views/site/edit.html.erb [moved from app/views/site/edit.rhtml with 100% similarity]
app/views/site/index.html.erb [moved from app/views/site/index.rhtml with 100% similarity]
app/views/site/offline.html.erb [moved from app/views/site/offline.rhtml with 100% similarity]
app/views/trace/_trace.html.erb [moved from app/views/trace/_trace.rhtml with 100% similarity]
app/views/trace/_trace_form.html.erb [moved from app/views/trace/_trace_form.rhtml with 100% similarity]
app/views/trace/_trace_header.html.erb [moved from app/views/trace/_trace_header.rhtml with 100% similarity]
app/views/trace/_trace_list.html.erb [moved from app/views/trace/_trace_list.rhtml with 100% similarity]
app/views/trace/_trace_optionals.html.erb [moved from app/views/trace/_trace_optionals.rhtml with 100% similarity]
app/views/trace/_trace_paging_nav.html.erb [moved from app/views/trace/_trace_paging_nav.rhtml with 100% similarity]
app/views/trace/create.html.erb [moved from app/views/trace/create.rhtml with 100% similarity]
app/views/trace/edit.html.erb [moved from app/views/trace/edit.rhtml with 100% similarity]
app/views/trace/list.html.erb [moved from app/views/trace/list.rhtml with 100% similarity]
app/views/trace/mine.html.erb [moved from app/views/trace/mine.rhtml with 100% similarity]
app/views/trace/no_such_user.html.erb [moved from app/views/trace/no_such_user.rhtml with 100% similarity]
app/views/trace/view.html.erb [moved from app/views/trace/view.rhtml with 100% similarity]
app/views/user/_friend_map.html.erb [moved from app/views/user/_friend_map.rhtml with 100% similarity]
app/views/user/account.html.erb [moved from app/views/user/account.rhtml with 100% similarity]
app/views/user/confirm.html.erb [moved from app/views/user/confirm.rhtml with 100% similarity]
app/views/user/confirm_email.html.erb [moved from app/views/user/confirm_email.rhtml with 100% similarity]
app/views/user/index.html.erb [moved from app/views/user/index.rhtml with 100% similarity]
app/views/user/login.html.erb [moved from app/views/user/login.rhtml with 100% similarity]
app/views/user/lost_password.html.erb [moved from app/views/user/lost_password.rhtml with 100% similarity]
app/views/user/new.html.erb [moved from app/views/user/new.rhtml with 100% similarity]
app/views/user/no_such_user.html.erb [moved from app/views/user/no_such_user.rhtml with 100% similarity]
app/views/user/save.html.erb [moved from app/views/user/save.rhtml with 100% similarity]
app/views/user/view.html.erb [moved from app/views/user/view.rhtml with 100% similarity]
app/views/way_tag/search.html.erb [moved from app/views/way_tag/search.rhtml with 100% similarity]

index 1618631..165f413 100644 (file)
@@ -78,6 +78,8 @@ class DiaryEntryController < ApplicationController
   end
 
   def rss
+    request.format = :rss
+
     if params[:display_name]
       user = User.find_by_display_name(params[:display_name], :conditions => {:visible => true})
 
@@ -86,8 +88,6 @@ class DiaryEntryController < ApplicationController
         @title = "OpenStreetMap diary entries for #{user.display_name}"
         @description = "Recent OpenStreetmap diary entries from #{user.display_name}"
         @link = "http://#{SERVER_URL}/user/#{user.display_name}/diary"
-
-        render :content_type => Mime::RSS
       else
         render :nothing => true, :status => :not_found
       end
@@ -98,8 +98,6 @@ class DiaryEntryController < ApplicationController
       @title = "OpenStreetMap diary entries in #{params[:language]}"
       @description = "Recent diary entries from users of OpenStreetMap"
       @link = "http://#{SERVER_URL}/diary/#{params[:language]}"
-      
-      render :content_type => Mime::RSS
     else
       @entries = DiaryEntry.find(:all, :include => :user,
                                  :conditions => ["users.visible = ?", true],
@@ -107,8 +105,6 @@ class DiaryEntryController < ApplicationController
       @title = "OpenStreetMap diary entries"
       @description = "Recent diary entries from users of OpenStreetMap"
       @link = "http://#{SERVER_URL}/diary"
-
-      render :content_type => Mime::RSS
     end
   end