Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | A a "View" submenu option for the content viewer when the file is HTML. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
d4fedbb4ad3cb50eac684c1a09fb5bbb |
| User & Date: | drh 2009-01-28 22:23:02.000 |
Context
|
2009-01-28
| ||
| 22:56 | Add a "View" submenu item on the artifact viewer for files with wiki mimetype. ... (check-in: 0a2a1b4dde user: drh tags: trunk) | |
| 22:23 | A a "View" submenu option for the content viewer when the file is HTML. ... (check-in: d4fedbb4ad user: drh tags: trunk) | |
| 21:41 | 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. ... (check-in: 923d644b89 user: drh tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
style_header("Artifact Content");
@ <h2>Content Of:</h2>
@ <blockquote>
blob_zero(&downloadName);
object_description(rid, 0, &downloadName);
style_submenu_element("Download", "Download",
"%s/raw/%T?name=%d", g.zTop, blob_str(&downloadName), rid);
@ </blockquote>
@ <hr>
@ <blockquote>
content_get(rid, &content);
zMime = mimetype_from_content(&content);
if( zMime==0 ){
@ <pre>
| > > > > > | 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 |
style_header("Artifact Content");
@ <h2>Content Of:</h2>
@ <blockquote>
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);
zMime = mimetype_from_content(&content);
if( zMime==0 ){
@ <pre>
|
| ︙ | ︙ |