+ render :content_type => Mime::RSS
+ else
+ render :nothing => true, :status => :not_found
+ end
+ elsif params[:language]
+ @entries = DiaryEntry.find(:all, :include => :user,
+ :conditions => ["users.visible = ? AND diary_entries.language = ?", true, params[:language]],
+ :order => 'created_at DESC', :limit => 20)
+ @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],
+ :order => 'created_at DESC', :limit => 20)
+ @title = "OpenStreetMap diary entries"
+ @description = "Recent diary entries from users of OpenStreetMap"
+ @link = "http://#{SERVER_URL}/diary"