<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,11 @@ TODO
 Flexitypes
 ----------
 
+- Posterframe
+  - Editieren vom File in neuem Fenster
+  - &quot;Zur&#252;ck&quot; in Assets sollte richtig zur&#252;ck, nicht zur Asset-Liste, sondern
+    zum Dokument
+
 - Security for uploading assets
 - Ensure the proper transmission of styles for assets
   - Sane behavior in case of error</diff>
      <filename>TODOS</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,14 @@ class Asset &lt; ActiveRecord::Base
   belongs_to :assetable, :polymorphic =&gt; true
   
   attr_accessor :vrame_styles
+
+  DEFAULT_STYLES = {
+    :vrame_backend        =&gt; &quot;100x50&quot;,
+    :thumbnail            =&gt; &quot;100x140&quot;,
+    :thumbnail_square     =&gt; &quot;100x100#&quot;,
+    :full                 =&gt; &quot;300x250&quot;,
+    :bg_thumb             =&gt; &quot;392x272&quot;
+  }
   
   has_attached_file :file,
     :path =&gt; &quot;:rails_root/public/system/assets/:class/:id/:style.:extension&quot;,
@@ -16,23 +24,12 @@ class Asset &lt; ActiveRecord::Base
     :path =&gt; &quot;:rails_root/public/system/assets/:class/:id/posterframe_:style.:extension&quot;,
     :url  =&gt;                   &quot;/system/assets/:class/:id/posterframe_:style.:extension&quot;,
     :styles =&gt; lambda { |attachment|
-      # @TODO 
-      # create configuration
-      # which is controlable from env.rb
-      # with mere hook
-      {
-        :menucarddesign_thumb =&gt; &quot;85x57#&quot;,
-        :qbus_large           =&gt; [&quot;x506&quot;, :jpg],
-        :qbus_medium          =&gt; [&quot;294x166#&quot;, :jpg],
-        :qbus_thumb           =&gt; [&quot;x124&quot;, :jpg],
-        :qbus_backend         =&gt; [&quot;x57&quot;, :jpg],
-        :vrame_backend      =&gt; &quot;100x50&quot;,
-        :thumbnail          =&gt; &quot;100x140&quot;,
-        :thumbnail_square   =&gt; &quot;100x100#&quot;,
-        :full               =&gt; &quot;300x250&quot;,
-        :bg_thumb           =&gt; &quot;392x272&quot;
-      }
-    }
+                  returning(HashWithIndifferentAccess.new) do |styles|
+                    styles.merge!(attachment.instance.vrame_styles) if attachment.instance.vrame_styles.is_a? Hash
+                    styles.merge!(Vrame.configuration.posterframe_styles)
+                    styles.merge!(Asset::DEFAULT_STYLES)
+                  end
+                }
     
   def serialize
     file.url</diff>
      <filename>app/models/asset.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,14 @@
 class Image &lt; Asset
   belongs_to :collection
   
-  DEFAULT_STYLES = {
-    :vrame_backend        =&gt; &quot;100x50&quot;,
-    :thumbnail            =&gt; &quot;100x140&quot;,
-    :thumbnail_square     =&gt; &quot;100x100#&quot;,
-    :full                 =&gt; &quot;300x250&quot;,
-    :bg_thumb             =&gt; &quot;392x272&quot;
-  }
-  
   has_attached_file :file,
     :path =&gt; &quot;:rails_root/public/system/assets/:class/:id/:style.:extension&quot;,
     :url  =&gt;                   &quot;/system/assets/:class/:id/:style.:extension&quot;,
     :styles =&gt; lambda { |attachment|
-                  if attachment.instance.vrame_styles.is_a? Hash
-                    Image::DEFAULT_STYLES.merge(attachment.instance.vrame_styles)
-                  else
-                    Image::DEFAULT_STYLES
+                  returning(HashWithIndifferentAccess.new) do |styles|
+                    styles.merge!(attachment.instance.vrame_styles) if attachment.instance.vrame_styles.is_a? Hash
+                    styles.merge!(Vrame.configuration.image_styles)
+                    styles.merge!(Asset::DEFAULT_STYLES)
                   end
                 },
     :convert_options =&gt; { :all =&gt; &quot;-quality 80 -colorspace RGB -strip&quot; }</diff>
      <filename>app/models/image.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33332f616c3d12f6b096775f594538867c525eb6</id>
    </parent>
  </parents>
  <author>
    <name>Jan Varwig</name>
    <email>jan@varwig.org</email>
  </author>
  <url>http://github.com/sebastiandeutsch/vrame/commit/20ecaf752a3019ca212a4b1fd49515f0ce588a66</url>
  <id>20ecaf752a3019ca212a4b1fd49515f0ce588a66</id>
  <committed-date>2009-11-06T08:43:01-08:00</committed-date>
  <authored-date>2009-11-06T08:42:56-08:00</authored-date>
  <message>Styles configurable in Vrame config</message>
  <tree>8985761cb06e99ff2c06b56bdcf7ba6e3b58d114</tree>
  <committer>
    <name>Jan Varwig</name>
    <email>jan@varwig.org</email>
  </committer>
</commit>
