Fossil SCM

Slight reformatting of the forum reply page header based on feedback from [https://sqlite.org/forum/forumpost/c745cf3a7f6246de|sqlite forum post c745cf3a7f6246de]. Now says: Replying to HASH-with-link in thread TITLE-without-link

stephan 2022-11-24 14:38 trunk
Commit 0b6b3a001a357d6d4bc88e6da3c27be67b5f050dbdd6264d5c1acf1009fea6d5
1 file changed +4 -5
+4 -5
--- src/forum.c
+++ src/forum.c
@@ -1324,17 +1324,16 @@
13241324
/* Reply */
13251325
char *zDisplayName;
13261326
zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
13271327
zContent = PDT("content","");
13281328
style_header("Reply");
1329
+ @ <h1>Replying to
1330
+ @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
13291331
if( pRootPost->zThreadTitle ){
1330
- @ <h1>Thread: %h(pRootPost->zThreadTitle)</h1>
1332
+ @ in thread %h(pRootPost->zThreadTitle)
13311333
}
1332
- @ <h2>Replying To:
1333
- @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
1334
- @ <a href="%R/forumpost/%!S(zFpid)?raw" target="_blank">[source]</a>
1335
- @ </h2>
1334
+ @ </h1>
13361335
zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
13371336
zDisplayName = display_name_from_login(pPost->zUser);
13381337
@ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
13391338
fossil_free(zDisplayName);
13401339
fossil_free(zDate);
13411340
--- src/forum.c
+++ src/forum.c
@@ -1324,17 +1324,16 @@
1324 /* Reply */
1325 char *zDisplayName;
1326 zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
1327 zContent = PDT("content","");
1328 style_header("Reply");
 
 
1329 if( pRootPost->zThreadTitle ){
1330 @ <h1>Thread: %h(pRootPost->zThreadTitle)</h1>
1331 }
1332 @ <h2>Replying To:
1333 @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
1334 @ <a href="%R/forumpost/%!S(zFpid)?raw" target="_blank">[source]</a>
1335 @ </h2>
1336 zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
1337 zDisplayName = display_name_from_login(pPost->zUser);
1338 @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
1339 fossil_free(zDisplayName);
1340 fossil_free(zDate);
1341
--- src/forum.c
+++ src/forum.c
@@ -1324,17 +1324,16 @@
1324 /* Reply */
1325 char *zDisplayName;
1326 zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
1327 zContent = PDT("content","");
1328 style_header("Reply");
1329 @ <h1>Replying to
1330 @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
1331 if( pRootPost->zThreadTitle ){
1332 @ in thread %h(pRootPost->zThreadTitle)
1333 }
1334 @ </h1>
 
 
 
1335 zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
1336 zDisplayName = display_name_from_login(pPost->zUser);
1337 @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
1338 fossil_free(zDisplayName);
1339 fossil_free(zDate);
1340

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button