Fossil SCM
follow-up to [e22fca9640|Hex adjustment checkin]; an image -is- a binary file already - no need to display a "Hex" link for it explicitly (already done).
Commit
fab89453c50ecfa409ba15b75534fb6b7a7218e4
Parent
8c3bba8e97a29c0…
1 file changed
-1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1167,11 +1167,10 @@ | ||
| 1167 | 1167 | @ <pre> |
| 1168 | 1168 | @ %h(blob_str(&content)) |
| 1169 | 1169 | @ </pre> |
| 1170 | 1170 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1171 | 1171 | @ <img src="%s(g.zTop)/raw?name=%s(zUuid)&m=%s(zMime)"></img> |
| 1172 | - style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid); | |
| 1173 | 1172 | }else{ |
| 1174 | 1173 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1175 | 1174 | } |
| 1176 | 1175 | @ </blockquote> |
| 1177 | 1176 | } |
| 1178 | 1177 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1167,11 +1167,10 @@ | |
| 1167 | @ <pre> |
| 1168 | @ %h(blob_str(&content)) |
| 1169 | @ </pre> |
| 1170 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1171 | @ <img src="%s(g.zTop)/raw?name=%s(zUuid)&m=%s(zMime)"></img> |
| 1172 | style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid); |
| 1173 | }else{ |
| 1174 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1175 | } |
| 1176 | @ </blockquote> |
| 1177 | } |
| 1178 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1167,11 +1167,10 @@ | |
| 1167 | @ <pre> |
| 1168 | @ %h(blob_str(&content)) |
| 1169 | @ </pre> |
| 1170 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1171 | @ <img src="%s(g.zTop)/raw?name=%s(zUuid)&m=%s(zMime)"></img> |
| 1172 | }else{ |
| 1173 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1174 | } |
| 1175 | @ </blockquote> |
| 1176 | } |
| 1177 |