diff --git a/PBWebCommitController.m b/PBWebCommitController.m index 54d04b0..0fc2697 100644 --- a/PBWebCommitController.m +++ b/PBWebCommitController.m @@ -82,7 +82,7 @@ // Header NSArray *headerItems = [self parseHeader:details]; - NSString *header = [self htmlForHeader:details withRefs:[self refsForCurrentCommit]]; + NSString *header = [self htmlForHeader:headerItems withRefs:[self refsForCurrentCommit]]; // File Stats NSMutableDictionary *stats = [self parseStats:details]; @@ -175,13 +175,14 @@ const NSString *kAuthorKeyDate = @"date"; NSArray *t=[[line substringFromIndex:r_email_e.location+2] componentsSeparatedByString:@" "]; NSDate *date=[NSDate dateWithTimeIntervalSince1970:[[t objectAtIndex:0] doubleValue]]; + NSDictionary *content = [NSDictionary dictionaryWithObjectsAndKeys: + name, kAuthorKeyName, + email, kAuthorKeyEmail, + date, kAuthorKeyDate, + nil]; [result addObject:[NSDictionary dictionaryWithObjectsAndKeys: [comps objectAtIndex:0], kHeaderKeyName, - [NSDictionary dictionaryWithObjectsAndKeys: - name, kAuthorKeyName, - email, kAuthorKeyEmail, - date, kAuthorKeyDate, - nil], + content, kHeaderKeyContent, nil]]; } } @@ -216,12 +217,12 @@ const NSString *kAuthorKeyDate = @"date"; [theDateFormatter setTimeStyle:NSDateFormatterMediumStyle]; NSString *dateString=[theDateFormatter stringForObjectValue:date]; - [auths appendString:[NSString stringWithFormat:@"
",rol]]; + [auths appendString:[NSString stringWithFormat:@"
",[item objectForKey:kHeaderKeyName]]]; if([self isFeatureEnabled:@"gravatar"]){ NSString *hash=[self arbitraryHashForString:email]; [auths appendString:[NSString stringWithFormat:@"",hash]]; } - [auths appendString:[NSString stringWithFormat:@"

%@ (%@)

",name,rol]]; + [auths appendString:[NSString stringWithFormat:@"

%@ (%@)

",name,[item objectForKey:kHeaderKeyName]]]; [auths appendString:[NSString stringWithFormat:@"

%@

",dateString]]; } last_mail=email;