Differences From:
File
src/info.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/info.c
part of check-in
[d4fedbb4ad]
- A a "View" submenu option for the content viewer when the file is HTML.
by
drh on
2009-01-28 22:23:02.
[view]
@@ -1041,8 +1041,13 @@
blob_zero(&downloadName);
object_description(rid, 0, &downloadName);
style_submenu_element("Download", "Download",
"%s/raw/%T?name=%d", g.zTop, blob_str(&downloadName), rid);
+ zMime = mimetype_from_name(blob_str(&downloadName));
+ if( zMime && strcmp(zMime, "text/html")==0 ){
+ style_submenu_element("View", "View",
+ "%s/raw?name=%d&m=text/html", g.zTop, rid);
+ }
@ </blockquote>
@ <hr>
@ <blockquote>
content_get(rid, &content);