Fossil

Check-in [daa43661]
Login

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

Overview
Comment:Add portion of MANIFEST_UUID to TH1 URL variables.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:daa43661dd3ca4ccf639d2de61603ade835cae1b
User & Date: joel 2014-01-02 12:36:14
Context
2014-01-02
16:50
Fix /tree page and "timeline-utc" setting in combination with --disable-internal-sqlite configuration check-in: bd115112 user: jan.nijtmans tags: trunk
15:17
merge trunk check-in: d5fd6cc1 user: jan.nijtmans tags: timeline-utc
12:47
Propose tree-view enhancement. check-in: 377a4f2d user: joel tags: csstree
12:36
Add portion of MANIFEST_UUID to TH1 URL variables. check-in: daa43661 user: joel tags: trunk
2014-01-01
20:25
Improve the label of tree-view so that it shows the number of files and the number of check-ins, if appropriate. Make tree-view the default for the "files" link of /vinfo. check-in: 9930c46e user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/style.c.

252
253
254
255
256
257
258
259

260
261
262
263
264
265
266
*/
static void url_var(
  const char *zVarPrefix,
  const char *zConfigName,
  const char *zPageName
){
  char *zMtime = db_get_mtime(zConfigName, 0, 0);
  char *zUrl = mprintf("%s/%s/%s", g.zTop, zPageName, zMtime);

  char *zVarName = mprintf("%s_url", zVarPrefix);
  Th_Store(zVarName, zUrl);
  free(zMtime);
  free(zUrl);
  free(zVarName);
}








|
>







252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
*/
static void url_var(
  const char *zVarPrefix,
  const char *zConfigName,
  const char *zPageName
){
  char *zMtime = db_get_mtime(zConfigName, 0, 0);
  char *zUrl = mprintf("%s/%s/%s%.5s", g.zTop, zPageName, zMtime,
                       MANIFEST_UUID);
  char *zVarName = mprintf("%s_url", zVarPrefix);
  Th_Store(zVarName, zUrl);
  free(zMtime);
  free(zUrl);
  free(zVarName);
}