# HG changeset patch # User nanaya # Date 1469645816 -32400 # Node ID dfd7daac110e7b61ce265b7afdb36cedc780db97 # Parent 0c8a8b3901458d482cb8145cfda95ea7628a9749 Simpler syntax because I can diff -r 0c8a8b390145 -r dfd7daac110e app/views/tweets/show.atom.erb --- a/app/views/tweets/show.atom.erb Thu Jul 28 03:49:08 2016 +0900 +++ b/app/views/tweets/show.atom.erb Thu Jul 28 03:56:56 2016 +0900 @@ -1,21 +1,16 @@ - - tag:<%= request.host_with_port %>,2005:<%= @user.id %> - + <%= atom_id(@user.id) %> - - <%= @user.name %> (<%= @user.screen_name %>) - - - <%= @user.profile_image_url_https %> - + <%= "#{@user.name} (#{@user.screen_name})" %> + <%= @user.profile_image_url_https %> + <%= @tweets.first.try(:created_at) || Time.at(0) %> - <%= render(:partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id }) %> + <%= render :partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id } %>