Fossil SCM
In the new forum reply header, reduce size from H1 to H2 and italicize the thread title.
Commit
7b92fc614dc461230145c56c6db46fed8058eccd2f145fdf24999340a9eb57bc
Parent
0b6b3a001a357d6…
2 files changed
+4
+4
-3
+4
| --- src/default.css | ||
| +++ src/default.css | ||
| @@ -988,10 +988,14 @@ | ||
| 988 | 988 | } |
| 989 | 989 | div.forumPostBody.shrunken { |
| 990 | 990 | /* When an expandable post is un-expanded, it is shrunkend down |
| 991 | 991 | to this size instead of its original size. */ |
| 992 | 992 | max-height: 8em; |
| 993 | +} | |
| 994 | +span.forumPostReplyTitle { | |
| 995 | + /* thread title part of the page header when replying to a post */ | |
| 996 | + font-style: italic; | |
| 993 | 997 | } |
| 994 | 998 | |
| 995 | 999 | div.forumSel { |
| 996 | 1000 | background-color: #cef; |
| 997 | 1001 | } |
| 998 | 1002 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -988,10 +988,14 @@ | |
| 988 | } |
| 989 | div.forumPostBody.shrunken { |
| 990 | /* When an expandable post is un-expanded, it is shrunkend down |
| 991 | to this size instead of its original size. */ |
| 992 | max-height: 8em; |
| 993 | } |
| 994 | |
| 995 | div.forumSel { |
| 996 | background-color: #cef; |
| 997 | } |
| 998 |
| --- src/default.css | |
| +++ src/default.css | |
| @@ -988,10 +988,14 @@ | |
| 988 | } |
| 989 | div.forumPostBody.shrunken { |
| 990 | /* When an expandable post is un-expanded, it is shrunkend down |
| 991 | to this size instead of its original size. */ |
| 992 | max-height: 8em; |
| 993 | } |
| 994 | span.forumPostReplyTitle { |
| 995 | /* thread title part of the page header when replying to a post */ |
| 996 | font-style: italic; |
| 997 | } |
| 998 | |
| 999 | div.forumSel { |
| 1000 | background-color: #cef; |
| 1001 | } |
| 1002 |
+4
-3
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -1324,16 +1324,17 @@ | ||
| 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 | |
| 1329 | + @ <h2>Replying to | |
| 1330 | 1330 | @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a> |
| 1331 | 1331 | if( pRootPost->zThreadTitle ){ |
| 1332 | - @ in thread %h(pRootPost->zThreadTitle) | |
| 1332 | + @ in thread | |
| 1333 | + @ <span class="forumPostReplyTitle">%h(pRootPost->zThreadTitle)</span> | |
| 1333 | 1334 | } |
| 1334 | - @ </h1> | |
| 1335 | + @ </h2> | |
| 1335 | 1336 | zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate); |
| 1336 | 1337 | zDisplayName = display_name_from_login(pPost->zUser); |
| 1337 | 1338 | @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3> |
| 1338 | 1339 | fossil_free(zDisplayName); |
| 1339 | 1340 | fossil_free(zDate); |
| 1340 | 1341 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -1324,16 +1324,17 @@ | |
| 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 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -1324,16 +1324,17 @@ | |
| 1324 | /* Reply */ |
| 1325 | char *zDisplayName; |
| 1326 | zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE); |
| 1327 | zContent = PDT("content",""); |
| 1328 | style_header("Reply"); |
| 1329 | @ <h2>Replying to |
| 1330 | @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a> |
| 1331 | if( pRootPost->zThreadTitle ){ |
| 1332 | @ in thread |
| 1333 | @ <span class="forumPostReplyTitle">%h(pRootPost->zThreadTitle)</span> |
| 1334 | } |
| 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 |