Fossil SCM
Show the number of bytes for image artifacts and attachments as well.
Commit
f4c6e49a43d07bb71f0628506a63ad81b5ccaec0
Parent
dc72fd9624dcd15…
2 files changed
+2
+1
+2
| --- src/attach.c | ||
| +++ src/attach.c | ||
| @@ -615,10 +615,12 @@ | ||
| 615 | 615 | @ <pre> |
| 616 | 616 | @ %h(z) |
| 617 | 617 | @ </pre> |
| 618 | 618 | } |
| 619 | 619 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 620 | + int sz = db_int(0, "SELECT size FROM blob WHERE rid=%d", ridSrc); | |
| 621 | + @ <i>(file is %d(sz) bytes of image data)</i><br> | |
| 620 | 622 | @ <img src="%R/raw/%s(zSrc)?m=%s(zMime)"></img> |
| 621 | 623 | style_submenu_element("Image", "Image", "%R/raw/%s?m=%s", zSrc, zMime); |
| 622 | 624 | }else{ |
| 623 | 625 | int sz = db_int(0, "SELECT size FROM blob WHERE rid=%d", ridSrc); |
| 624 | 626 | @ <i>(file is %d(sz) bytes of binary data)</i> |
| 625 | 627 |
| --- src/attach.c | |
| +++ src/attach.c | |
| @@ -615,10 +615,12 @@ | |
| 615 | @ <pre> |
| 616 | @ %h(z) |
| 617 | @ </pre> |
| 618 | } |
| 619 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 620 | @ <img src="%R/raw/%s(zSrc)?m=%s(zMime)"></img> |
| 621 | style_submenu_element("Image", "Image", "%R/raw/%s?m=%s", zSrc, zMime); |
| 622 | }else{ |
| 623 | int sz = db_int(0, "SELECT size FROM blob WHERE rid=%d", ridSrc); |
| 624 | @ <i>(file is %d(sz) bytes of binary data)</i> |
| 625 |
| --- src/attach.c | |
| +++ src/attach.c | |
| @@ -615,10 +615,12 @@ | |
| 615 | @ <pre> |
| 616 | @ %h(z) |
| 617 | @ </pre> |
| 618 | } |
| 619 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 620 | int sz = db_int(0, "SELECT size FROM blob WHERE rid=%d", ridSrc); |
| 621 | @ <i>(file is %d(sz) bytes of image data)</i><br> |
| 622 | @ <img src="%R/raw/%s(zSrc)?m=%s(zMime)"></img> |
| 623 | style_submenu_element("Image", "Image", "%R/raw/%s?m=%s", zSrc, zMime); |
| 624 | }else{ |
| 625 | int sz = db_int(0, "SELECT size FROM blob WHERE rid=%d", ridSrc); |
| 626 | @ <i>(file is %d(sz) bytes of binary data)</i> |
| 627 |
+1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1953,10 +1953,11 @@ | ||
| 1953 | 1953 | @ <pre> |
| 1954 | 1954 | @ %h(z) |
| 1955 | 1955 | @ </pre> |
| 1956 | 1956 | } |
| 1957 | 1957 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1958 | + @ <i>(file is %d(blob_size(&content)) bytes of image data)</i><br> | |
| 1958 | 1959 | @ <img src="%R/raw/%s(zUuid)?m=%s(zMime)" /> |
| 1959 | 1960 | style_submenu_element("Image", "Image", |
| 1960 | 1961 | "%R/raw/%s?m=%s", zUuid, zMime); |
| 1961 | 1962 | }else{ |
| 1962 | 1963 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1963 | 1964 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1953,10 +1953,11 @@ | |
| 1953 | @ <pre> |
| 1954 | @ %h(z) |
| 1955 | @ </pre> |
| 1956 | } |
| 1957 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1958 | @ <img src="%R/raw/%s(zUuid)?m=%s(zMime)" /> |
| 1959 | style_submenu_element("Image", "Image", |
| 1960 | "%R/raw/%s?m=%s", zUuid, zMime); |
| 1961 | }else{ |
| 1962 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1963 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1953,10 +1953,11 @@ | |
| 1953 | @ <pre> |
| 1954 | @ %h(z) |
| 1955 | @ </pre> |
| 1956 | } |
| 1957 | }else if( strncmp(zMime, "image/", 6)==0 ){ |
| 1958 | @ <i>(file is %d(blob_size(&content)) bytes of image data)</i><br> |
| 1959 | @ <img src="%R/raw/%s(zUuid)?m=%s(zMime)" /> |
| 1960 | style_submenu_element("Image", "Image", |
| 1961 | "%R/raw/%s?m=%s", zUuid, zMime); |
| 1962 | }else{ |
| 1963 | @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i> |
| 1964 |