@@ -82,7 +82,7 @@ - (void)commitDetailsLoaded:(NSNotification *)notification
82
82
83
83
// Header
84
84
NSArray *headerItems = [self parseHeader: details];
85
- NSString *header = [self htmlForHeader: details withRefs: [self refsForCurrentCommit ]];
85
+ NSString *header = [self htmlForHeader: headerItems withRefs: [self refsForCurrentCommit ]];
86
86
87
87
// File Stats
88
88
NSMutableDictionary *stats = [self parseStats: details];
@@ -175,13 +175,14 @@ - (NSArray *)parseHeader:(NSString *)text
175
175
NSArray *t=[[line substringFromIndex: r_email_e.location+2 ] componentsSeparatedByString: @" " ];
176
176
NSDate *date=[NSDate dateWithTimeIntervalSince1970: [[t objectAtIndex: 0 ] doubleValue ]];
177
177
178
+ NSDictionary *content = [NSDictionary dictionaryWithObjectsAndKeys:
179
+ name, kAuthorKeyName ,
180
+ email, kAuthorKeyEmail ,
181
+ date, kAuthorKeyDate ,
182
+ nil ];
178
183
[result addObject: [NSDictionary dictionaryWithObjectsAndKeys:
179
184
[comps objectAtIndex: 0 ], kHeaderKeyName ,
180
- [NSDictionary dictionaryWithObjectsAndKeys:
181
- name, kAuthorKeyName ,
182
- email, kAuthorKeyEmail ,
183
- date, kAuthorKeyDate ,
184
- nil ],
185
+ content, kHeaderKeyContent ,
185
186
nil ]];
186
187
}
187
188
}
@@ -216,12 +217,12 @@ - (NSString *)htmlForHeader:(NSArray *)header withRefs:(NSString *)badges
216
217
[theDateFormatter setTimeStyle: NSDateFormatterMediumStyle];
217
218
NSString *dateString=[theDateFormatter stringForObjectValue: date];
218
219
219
- [auths appendString: [NSString stringWithFormat: @" <div class='user %@ clearfix'>" ,rol ]];
220
+ [auths appendString: [NSString stringWithFormat: @" <div class='user %@ clearfix'>" ,[item objectForKey: kHeaderKeyName ] ]];
220
221
if ([self isFeatureEnabled: @" gravatar" ]){
221
222
NSString *hash=[self arbitraryHashForString: email];
222
223
[auths appendString: [NSString stringWithFormat: @" <img class='avatar' src='http://www.gravatar.com/avatar/%@ ?d=wavatar&s=30'/>" ,hash]];
223
224
}
224
- [auths appendString: [NSString stringWithFormat: @" <p class='name'>%@ <span class='rol'>(%@ )</span></p>" ,name,rol ]];
225
+ [auths appendString: [NSString stringWithFormat: @" <p class='name'>%@ <span class='rol'>(%@ )</span></p>" ,name,[item objectForKey: kHeaderKeyName ] ]];
225
226
[auths appendString: [NSString stringWithFormat: @" <p class='time'>%@ </p></div>" ,dateString]];
226
227
}
227
228
last_mail=email;
0 commit comments