Differences From:
File
src/browse.c
part of check-in
[923d644b89]
- Add the ci=LABEL parameter to the "dir" webpage in order to look at just
files within a single check-in. Add a Download link on the artifact and
hexdump viewers.
by
drh on
2009-01-28 21:41:41.
[view]
To:
File
src/browse.c
part of check-in
[4165033b40]
- Remove the extra space character before filenames in web directory
listings. Ticket 28d861eb5799a60
by
drh on
2009-10-31 13:23:28.
[view]
@@ -214,27 +214,25 @@
db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x");
@ <table border="0" width="100%%"><tr><td valign="top" width="25%%">
i = 0;
while( db_step(&q)==SQLITE_ROW ){
- const char *zFName;
+ const char *zFN;
if( i==nRow ){
@ </td><td valign="top" width="25%%">
i = 0;
}
i++;
- zFName = db_column_text(&q, 0);
- if( zFName[0]=='/' ){
- zFName++;
- @ <li><a href="%s(zSubdirLink)%T(zFName)">
- @ %h(zFName)/</a></li>
+ zFN = db_column_text(&q, 0);
+ if( zFN[0]=='/' ){
+ zFN++;
+ @ <li><a href="%s(zSubdirLink)%T(zFN)">%h(zFN)/</a></li>
}else if( zCI ){
const char *zUuid = db_column_text(&q, 1);
- @ <li><a href="%s(g.zBaseURL)/artifact?name=%s(zUuid)">%h(zFName)</a>
+ @ <li><a href="%s(g.zBaseURL)/artifact?name=%s(zUuid)">%h(zFN)</a>
}else{
- @ <li><a href="%s(g.zBaseURL)/finfo?name=%T(zPrefix)%T(zFName)">
- @ %h(zFName)</a></li>
+ @ <li><a href="%s(g.zBaseURL)/finfo?name=%T(zPrefix)%T(zFN)">%h(zFN)</a>
}
}
db_finalize(&q);
@ </td></tr></table>
style_footer();
}