| | @@ -2359,11 +2359,11 @@ |
| 2359 | 2359 | style_submenu_entry("n","Max:",4,0); |
| 2360 | 2360 | iOfst = atoi(PD("x","0")); |
| 2361 | 2361 | iCnt = 0; |
| 2362 | 2362 | if( db_table_exists("repository","forumpost") ){ |
| 2363 | 2363 | db_prepare(&q, |
| 2364 | | - "WITH thread(age,duration,cnt,root,last,sticky) AS (" |
| 2364 | + "WITH thread(age,duration,cnt,root,last,pinned) AS (" |
| 2365 | 2365 | " SELECT" |
| 2366 | 2366 | " julianday('now') - max(fmtime)," |
| 2367 | 2367 | " max(fmtime) - min(fmtime)," |
| 2368 | 2368 | " sum(fprev IS NULL)," |
| 2369 | 2369 | " froot," |
| | @@ -2389,11 +2389,11 @@ |
| 2389 | 2389 | " thread.duration," /* 1 */ |
| 2390 | 2390 | " thread.cnt," /* 2 */ |
| 2391 | 2391 | " blob.uuid," /* 3 */ |
| 2392 | 2392 | " substr(event.comment,instr(event.comment,':')+1)," /* 4 */ |
| 2393 | 2393 | " thread.last," /* 5 */ |
| 2394 | | - " thread.sticky" /* 6 */ |
| 2394 | + " thread.pinned" /* 6 */ |
| 2395 | 2395 | " FROM thread, blob, event" |
| 2396 | 2396 | " WHERE blob.rid=thread.last" |
| 2397 | 2397 | " AND event.objid=thread.last" |
| 2398 | 2398 | " ORDER BY 7 DESC, 1;", |
| 2399 | 2399 | g.perm.ModForum ? "" : "AND y.fpid NOT IN private" /*safe-for-%s*/, |
| | @@ -2401,11 +2401,11 @@ |
| 2401 | 2401 | iLimit+1, iOfst |
| 2402 | 2402 | ); |
| 2403 | 2403 | while( db_step(&q)==SQLITE_ROW ){ |
| 2404 | 2404 | char *zAge = human_readable_age(db_column_double(&q,0)); |
| 2405 | 2405 | int nMsg = db_column_int(&q, 2); |
| 2406 | | - int bSticky = db_column_int(&q, 6); |
| 2406 | + int bPinned = db_column_int(&q, 6); |
| 2407 | 2407 | const char *zUuid = db_column_text(&q, 3); |
| 2408 | 2408 | const char *zTitle = db_column_text(&q, 4); |
| 2409 | 2409 | if( iCnt==0 ){ |
| 2410 | 2410 | if( iOfst>0 ){ |
| 2411 | 2411 | @ <h1>Threads at least %s(zAge) old</h1> |
| | @@ -2430,25 +2430,25 @@ |
| 2430 | 2430 | @ %z(href("%R/forum?x=%d&n=%d",iOfst+iLimit,iLimit))\ |
| 2431 | 2431 | @ ↓ Older...</a></td></tr> |
| 2432 | 2432 | fossil_free(zAge); |
| 2433 | 2433 | break; |
| 2434 | 2434 | } |
| 2435 | | - @ <tr%s(bSticky ? " class='sticky'" : "")><td>%h(zAge) ago</td> |
| 2436 | | - @ <td>%z(href("%R/forumpost/%S",zUuid))%h(zTitle)</a></td> |
| 2437 | | - @ <td>\ |
| 2435 | + @ <tr%s(bPinned ? " class='pinned'" : "")><td>%h(zAge) ago</td> |
| 2436 | + @ <td class='subject'>%z(href("%R/forumpost/%S",zUuid))%h(zTitle)</a>\ |
| 2437 | + @ </td><td>\ |
| 2438 | 2438 | if( g.perm.ModForum && moderation_pending(db_column_int(&q,5)) ){ |
| 2439 | 2439 | @ <span class="modpending">\ |
| 2440 | 2440 | @ Awaiting Moderator Approval</span><br> |
| 2441 | 2441 | } |
| 2442 | 2442 | if( nMsg<2 ){ |
| 2443 | | - @ no replies</td> |
| 2443 | + @ no replies\ |
| 2444 | 2444 | }else{ |
| 2445 | 2445 | char *zDuration = human_readable_age(db_column_double(&q,1)); |
| 2446 | | - @ %d(nMsg) posts spanning %h(zDuration)</td> |
| 2446 | + @ %d(nMsg) posts spanning %h(zDuration)\ |
| 2447 | 2447 | fossil_free(zDuration); |
| 2448 | 2448 | } |
| 2449 | | - @ </tr> |
| 2449 | + @ </td></tr> |
| 2450 | 2450 | fossil_free(zAge); |
| 2451 | 2451 | } |
| 2452 | 2452 | db_finalize(&q); |
| 2453 | 2453 | } |
| 2454 | 2454 | if( iCnt>0 ){ |
| 2455 | 2455 | |