Check-in [99639ef945]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:99639ef945ac175dbc86e875a8d72b5d225993e7
Date: 2009-10-30 15:54:53
User: dmitry
Comment:Fix formatting.
Tags And Properties
Changes

Changes to TimelineGenerator.m

Old (9a1290c2482e3d84) New (d5407ed3fc09483d)
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import <sqlite3.h> 2 #import <sqlite3.h>
3 3
4 NSMutableString *HTMLTimelineForDatabase(const char *database) 4 NSMutableString *HTMLTimelineForDatabase(const char *database)
5 { 5 {
52 hidden lines
58 value = (char *)sqlite3_column_text(st, 1); 58 value = (char *)sqlite3_column_text(st, 1);
59 if (key && value && 59 if (key && value &&
60 (strcmp(key, "project-name") == 0 || 60 (strcmp(key, "project-name") == 0 ||
61 strcmp(key, "project-description") == 0 /*|| 61 strcmp(key, "project-description") == 0 /*||
62 strcmp(key, "last-sync-url") == 0*/)) { 62 strcmp(key, "last-sync-url") == 0*/)) {
63 [html appendFormat:@"<div class='%s'>%s</div>", key, value]; | 63 [html appendFormat:@"<div class='%s'>%s</div>", key, value];
64 } 64 }
65 } 65 }
66 sqlite3_finalize(st); 66 sqlite3_finalize(st);
67 67
68 [html appendString:@"</div>"]; 68 [html appendString:@"</div>"];
69 69
70 sql = "SELECT bgcolor, type, datetime(mtime,'localtime') AS timestamp, " 70 sql = "SELECT bgcolor, type, datetime(mtime,'localtime') AS timestamp, "
71 "substr(uuid,0,10) AS uuid, comment, user FROM event " | 71 "substr(uuid,0,10) AS uuid, comment, user FROM event "
72 "JOIN blob where blob.rid = event.objid " | 72 "JOIN blob where blob.rid = event.objid "
73 "ORDER BY mtime DESC limit 20"; | 73 "ORDER BY mtime DESC limit 20";
74 74
75 rc = sqlite3_prepare_v2(db, sql, -1, &st, 0); 75 rc = sqlite3_prepare_v2(db, sql, -1, &st, 0);
76 76
77 BOOL isOdd = NO; 77 BOOL isOdd = NO;
78 while (sqlite3_step(st) == SQLITE_ROW) { 78 while (sqlite3_step(st) == SQLITE_ROW) {
36 hidden lines
115 115
116 out: 116 out:
117 sqlite3_close(db); 117 sqlite3_close(db);
118 return html; 118 return html;
119 } 119 }