Permalink
Browse files

Use author instead of committer for names, emails and dates

  • Loading branch information...
1 parent 7567192 commit 4f75917dc36de9d8827f378600b1d821931f09bc @Caged committed Mar 13, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 CommitsController.rb
View
@@ -94,8 +94,8 @@ def tableView_objectValueForTableColumn_row(table_view, table_column, row)
objc_method :tableView_willDisplayCell_forTableColumn_row, 'v@:@@@i'
def tableView_willDisplayCell_forTableColumn_row(table_view, cell, table_column, row)
commit = @commits[row]
- cell.subtitle = %(by #{commit.committer.name} on #{commit.committed_date.strftime("%A, %b %d, %I:%M %p")})
- cell.gravatarImage = @icons[commit.committer.email]
+ cell.subtitle = %(by #{commit.author.name} on #{commit.authored_date.strftime("%A, %b %d, %I:%M %p")})
+ cell.gravatarImage = @icons[commit.author.email]
end
def webView_didFinishLoadForFrame(view, frame)
@@ -112,12 +112,12 @@ def update_main_document
set_html("message", active_commit.message.gsub("\n", "<br />"))
set_html("hash", active_commit.id)
- if Time.now.day == active_commit.committed_date.day
- cdate = active_commit.committed_date.strftime("Today %I:%M %p")
+ if Time.now.day == active_commit.authored_date.day
+ cdate = active_commit.authored_date.strftime("Today, %I:%M %p")
else
- cdate = active_commit.committed_date.strftime("%A, %B %d %I:%M %p")
+ cdate = active_commit.authored_date.strftime("%A, %B %d %I:%M %p")
end
- set_html("date", cdate)
+ set_html("date", "#{cdate} by #{active_commit.author.name}")
file_list = doc.getElementById('files')
diff_list = doc.getElementById('diffs')

0 comments on commit 4f75917

Please sign in to comment.