From e2ac79c612bb1f372c284d7033bf783fd91d2f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20de=20Villamil?= Date: Wed, 8 Feb 2012 08:08:19 +0100 Subject: [PATCH] Adds the media back into the editor. --- TODO.todo | 1 - app/helpers/admin/base_helper.rb | 7 +++--- app/views/admin/content/_form.html.erb | 2 +- app/views/admin/pages/_form.html.erb | 2 +- .../stylesheets/administration_structure.css | 25 ++++++++++++++++++- 5 files changed, 30 insertions(+), 7 deletions(-) diff --git a/TODO.todo b/TODO.todo index 7a8e835c53..d5e876e3bf 100644 --- a/TODO.todo +++ b/TODO.todo @@ -2,7 +2,6 @@ neuro for 6.0.10: Editor: - - Add the media back into the editor. - Fix pagination display Typogarden: diff --git a/app/helpers/admin/base_helper.rb b/app/helpers/admin/base_helper.rb index e3a184c46d..00192e723d 100644 --- a/app/helpers/admin/base_helper.rb +++ b/app/helpers/admin/base_helper.rb @@ -250,9 +250,10 @@ def show_thumbnail_for_editor(image) # If something went wrong with thumbnail generation, we just display a place holder thumbnail = (File.exists? thumb) ? "#{this_blog.base_url}/files/thumb_#{image.filename}" : "#{this_blog.base_url}/images/thumb_blank.jpg" - picture = "" + picture = "" + picture << "" + picture << "" return picture end diff --git a/app/views/admin/content/_form.html.erb b/app/views/admin/content/_form.html.erb index e24991d5e6..d88451ed01 100644 --- a/app/views/admin/content/_form.html.erb +++ b/app/views/admin/content/_form.html.erb @@ -99,7 +99,7 @@ <%= text_field 'article', 'title', :class => 'span1', :style => ' width: 99%', :placeholder => _('Title') %> - <%#= render('images', { :images => @images}) unless @images.empty? %> + <%= render('images', { :images => @images}) unless @images.empty? %>