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
Commit
0b6b3a001a357d6d4bc88e6da3c27be67b5f050dbdd6264d5c1acf1009fea6d5
Parent
a9e589ca28a2866…
1 file changed
+4
-5
+4
-5
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -1324,17 +1324,16 @@ | ||
| 1324 | 1324 | /* Reply */ |
| 1325 | 1325 | char *zDisplayName; |
| 1326 | 1326 | zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE); |
| 1327 | 1327 | zContent = PDT("content",""); |
| 1328 | 1328 | style_header("Reply"); |
| 1329 | + @ <h1>Replying to | |
| 1330 | + @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a> | |
| 1329 | 1331 | if( pRootPost->zThreadTitle ){ |
| 1330 | - @ <h1>Thread: %h(pRootPost->zThreadTitle)</h1> | |
| 1332 | + @ in thread %h(pRootPost->zThreadTitle) | |
| 1331 | 1333 | } |
| 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> | |
| 1336 | 1335 | zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate); |
| 1337 | 1336 | zDisplayName = display_name_from_login(pPost->zUser); |
| 1338 | 1337 | @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3> |
| 1339 | 1338 | fossil_free(zDisplayName); |
| 1340 | 1339 | fossil_free(zDate); |
| 1341 | 1340 |
| --- 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 |