diff options
| -rw-r--r-- | chimere/models.py | 2 | ||||
| -rw-r--r-- | chimere/static/chimere/css/styles.css | 9 | ||||
| -rw-r--r-- | chimere/templates/chimere/detail.html | 2 | ||||
| -rw-r--r-- | example_project/settings.py | 1 |
4 files changed, 8 insertions, 6 deletions
diff --git a/chimere/models.py b/chimere/models.py index 29d1fb6..eced32e 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -497,7 +497,7 @@ def multimediafile_post_save(sender, **kwargs): for idx, mf in enumerate(mfs.all()): mf.order = idx + 1 mf.save() - multimediafile.order = idx + 2 + multimediafile.order = mfs.count() + 2 multimediafile.save() post_save.connect(multimediafile_post_save, sender=MultimediaFile) diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css index c59702d..ee47557 100644 --- a/chimere/static/chimere/css/styles.css +++ b/chimere/static/chimere/css/styles.css @@ -302,7 +302,7 @@ ul#action-2 { top:274px; bottom:38px; right:18px; - width:300px; + width:400px; } #detail div{ @@ -596,7 +596,7 @@ table.inline-table td input[type=file]{ } .small-gallery{ - width:260px; + width:320px; min-height:30px; text-align:center; } @@ -605,8 +605,9 @@ table.inline-table td input[type=file]{ .small-gallery video, .small-gallery iframe { - width:236px; - height:150px; + width:300px; + min-height:50px; + /*height:180px;*/ } /** jme **/ diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index 3f68ee9..6c9f27c 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -48,6 +48,7 @@ </div>{% endfor %} </div> </div> +{% endif %} <script language='javascript' type='text/javascript'> $('html').addClass('js-on'); $(function(){ @@ -93,4 +94,3 @@ $('#show_gallery_link').click(function(){ return false; }); </script> -{% endif %} diff --git a/example_project/settings.py b/example_project/settings.py index 25e9c51..71db794 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -163,6 +163,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware' ) ROOT_URLCONF = 'example_project.urls' |
