author | Jakub Narebski <jnareb@gmail.com> | |
Mon, 4 Dec 2006 22:47:22 +0000 (23:47 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 6 Dec 2006 19:11:58 +0000 (11:11 -0800) | ||
commit | 5a4cf3346d6c37007a7f5f94697868a5b2f2fa29 | |
tree | a06ed7450756a5906230b795093ed582567cc5dc | tree | snapshot |
parent | 211e6eb513f372ad79fecc3db19413b3573ae962 | commit | diff |
gitweb: Allow PNG, GIF, JPEG images to be displayed in "blob" view
Allow images in one of web formats (PNG, GIF, JPEG) - actually files
with mimetype of image/png, image/git, image/jpeg - to be displayed in
"blob" view using <img /> element, instead of using "blob_plain" view
for them, like for all other files except also text/* mimetype files.
This makes possible to easily go to file history, to HEAD version of
the file, to appropriate commit etc; all of those are not available
in "blob_plain" (raw) view.
Only text files can have "blame" view link in the formats part of
navbar.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Allow images in one of web formats (PNG, GIF, JPEG) - actually files
with mimetype of image/png, image/git, image/jpeg - to be displayed in
"blob" view using <img /> element, instead of using "blob_plain" view
for them, like for all other files except also text/* mimetype files.
This makes possible to easily go to file history, to HEAD version of
the file, to appropriate commit etc; all of those are not available
in "blob_plain" (raw) view.
Only text files can have "blame" view link in the formats part of
navbar.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |