From 37f284d11a05880d22e8a5edcd6e8de0239f2bba Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 31 Jan 2013 13:17:28 +0800 Subject: [PATCH] [img_view] enable view prev/next & improved ui --- media/css/seahub.css | 5 +++-- templates/file_view.html | 16 ++++++++++++++ templates/snippets/file_content_html.html | 23 +++++++++++++++++--- templates/snippets/file_content_js.html | 18 ++++++++++++---- views.py | 26 +++++++++++++++++++++++ 5 files changed, 79 insertions(+), 9 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 40861868f5..8e9abfe483 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -1480,8 +1480,9 @@ textarea:-moz-placeholder {/* for FF */ font-family: Consolas,"Liberation Mono",Courier,monospace;/*override .ace_editor*/ min-height: 200px; } -#docu-view .ace_gutter { - height:auto;/*for ie8, in case that docu has only a few lines*/ +#img-prev-next { + font-size:1.1em; + margin-bottom:5px; } #image-view { padding:1px; diff --git a/templates/file_view.html b/templates/file_view.html index d95a939fca..15f379aadc 100644 --- a/templates/file_view.html +++ b/templates/file_view.html @@ -83,7 +83,9 @@ {% endif %} + {% with page='file_view' %} {% include 'snippets/file_content_html.html' %} + {% endwith %}