Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added the 'files' CSS class to the /dir column view element, per discussion at /forumpost/092ec8a4d0. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
374ca0c007974d03413af35332035306 |
User & Date: | stephan 2020-01-29 13:52:20 |
Context
2020-01-29
| ||
14:12 | /dir page: changed the (columns: Xex Y) to (Xex auto), as the previous computed value (the number of entries in the list) was a semantic mismatch for that CSS property (the number of columns). ... (check-in: ea66927c user: stephan tags: trunk) | |
13:52 | Added the 'files' CSS class to the /dir column view element, per discussion at /forumpost/092ec8a4d0. ... (check-in: 374ca0c0 user: stephan tags: trunk) | |
12:34 | Several minor internal cleanups in the /json bits, most notably how g.json.isJsonMode gets initialized (based strictly on the path/command, not guessing based on POST input). ... (check-in: 39bef927 user: stephan tags: trunk) | |
Changes
Changes to src/browse.c.
︙ | ︙ | |||
271 272 273 274 275 276 277 | ** directory. */ mxLen = db_int(12, "SELECT max(length(x)) FROM localfiles /*scan*/"); n = db_int(1,"SELECT count(*) FROM localfiles; /*scan*/"); if( mxLen<12 ) mxLen = 12; mxLen += (mxLen+9)/10; db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/"); | | | 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | ** directory. */ mxLen = db_int(12, "SELECT max(length(x)) FROM localfiles /*scan*/"); n = db_int(1,"SELECT count(*) FROM localfiles; /*scan*/"); if( mxLen<12 ) mxLen = 12; mxLen += (mxLen+9)/10; db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/"); @ <div class="columns files" style="columns: %d(mxLen)ex %d(n);"> @ <ul class="browser"> while( db_step(&q)==SQLITE_ROW ){ const char *zFN; zFN = db_column_text(&q, 0); if( zFN[0]=='/' ){ zFN++; @ <li class="dir">%z(href("%s%T",zSubdirLink,zFN))%h(zFN)</a></li> |
︙ | ︙ |