<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -286,6 +286,7 @@ END_MSG
       if !File.exists?(url) || params[:rebuild]
         # no template ---&gt; render
         # clear :
+        # TODO: we should remove info in cached_page for _main
         FileUtils::rmtree(File.dirname(url))
         
         # set the places to search for the included templates
@@ -309,13 +310,41 @@ END_MSG
         
         if session[:dev] &amp;&amp; mode != '*popupLayout'
           # add template edit buttons
-          used_nodes = @expire_with_nodes.merge(@renamed_assets)
-          div = &quot;&lt;div id='dev'&gt;&lt;ul&gt;&quot; + used_nodes.map do |k,n| &quot;&lt;li&gt;#{skin_helper.send(:node_actions, :node=&gt;n)} #{skin_helper.send(:link_to,k,zen_path(n))}&lt;/li&gt;&quot;
-          end.join(&quot;&quot;) +
-          &quot;&lt;li&gt;&lt;span class='actions'&gt;&lt;a href='?rebuild=true'&gt;#{_('rebuild')}&lt;/a&gt;&lt;/li&gt;&quot; +
-          &quot;&lt;li&gt;&lt;span class='actions'&gt;&lt;a href='/users/#{visitor[:id]}/swap_dev'&gt;#{_('turn dev off')}&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&quot; +
-          &quot;&lt;li&gt;(#{@skin_names.join(', ')})&lt;/li&gt;&quot;
-          res.sub!('&lt;/body&gt;', &quot;#{div}&lt;/body&gt;&quot;)
+          used_nodes  = []
+          zafu_nodes  = []
+          image_nodes = []
+          asset_nodes = []
+          @expire_with_nodes.merge(@renamed_assets).each do |k, n|
+            if n.kind_of?(Image)
+              image_nodes &lt;&lt; [k,n]
+            elsif n.kind_of?(Template)
+              zafu_nodes  &lt;&lt; [k,n]
+            else
+              asset_nodes &lt;&lt; [k,n]
+            end
+          end
+          used_nodes &lt;&lt; ['zafu',    zafu_nodes] unless zafu_nodes.empty?
+          used_nodes &lt;&lt; ['images', image_nodes] unless image_nodes.empty?
+          used_nodes &lt;&lt; ['assets', asset_nodes] unless asset_nodes.empty?
+          
+          dev_box = &quot;&lt;div id='dev'&gt;&lt;ul&gt;\n&quot;
+          used_nodes.each do |name, nodes|
+            dev_box &lt;&lt; &quot;  &lt;li&gt;&lt;a class='group' onclick='$(\&quot;_dev_#{name}\&quot;).toggle();' href='#'&gt;#{name}&lt;/a&gt;\n&quot;
+            dev_box &lt;&lt; &quot;  &lt;table id='_dev_#{name}'#{name == 'images' ? &quot; style='display:none;'&quot; : ''}&gt;\n&quot;
+            nodes.each do |k,n|
+              dev_box &lt;&lt; &quot;    &lt;tr&gt;&lt;td class='actions'&gt;#{skin_helper.send(:node_actions, :node=&gt;n)}&lt;/td&gt;&lt;td&gt;#{skin_helper.send(:link_to,k,zen_path(n))}&lt;/td&gt;&lt;/tr&gt;\n&quot;
+            end
+            dev_box &lt;&lt; &quot;  &lt;/table&gt;\n&quot;
+            dev_box &lt;&lt; &quot;  &lt;/li&gt;\n&quot;
+          end
+          
+          dev_box &lt;&lt; &quot;  &lt;li&gt;&lt;a class='group' onclick='$(\&quot;_dev_tools\&quot;).toggle();' href='#'&gt;tools&lt;/a&gt;\n&quot;
+          dev_box &lt;&lt; &quot;    &lt;ul id='_dev_tools'&gt;\n&quot;
+          dev_box &lt;&lt; &quot;      &lt;li&gt;&lt;a href='?rebuild=true'&gt;#{_('rebuild')}&lt;/a&gt;&lt;/li&gt;\n&quot;
+          dev_box &lt;&lt; &quot;      &lt;li&gt;&lt;a href='/users/#{visitor[:id]}/swap_dev'&gt;#{_('turn dev off')}&lt;/a&gt;&lt;/li&gt;\n&quot;
+          dev_box &lt;&lt; &quot;      &lt;li&gt;skins used: #{@skin_names.join(', ')}&lt;/li&gt;\n&quot;
+          dev_box &lt;&lt; &quot;    &lt;ul&gt;\n  &lt;/li&gt;\n&lt;/ul&gt;&lt;/div&gt;&quot;
+          res.sub!('&lt;/body&gt;', &quot;#{dev_box}&lt;/body&gt;&quot;)
         end
         
         secure!(CachedPage) { CachedPage.create(</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -623,7 +623,7 @@ latex_template = %q{
   
   def calendar(options={})
     if template_url = options[:template_url]
-      opts = eval_parameters_from_template_url(template_url).merge(options)
+      opts = (eval_parameters_from_template_url(template_url) || {}).merge(options)
     else
       opts = options
     end</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@
     &lt;li&gt;&lt;label&gt;&lt;%= _('publishers') %&gt;&lt;/label&gt;&lt;%= select('node', 'pgroup_id', form_groups, { :include_blank =&gt; true }, {:disabled=&gt;(@node[:inherit] != 0)}) %&gt;&lt;/li&gt;
     &lt;li&gt;&lt;label&gt;&lt;%= _('writers') %&gt;&lt;/label&gt;&lt;%= select('node', 'wgroup_id',    form_groups, { :include_blank =&gt; true }, {:disabled=&gt;(@node[:inherit] != 0)}) %&gt;&lt;/li&gt;
     &lt;li&gt;&lt;label&gt;&lt;%= _('readers') %&gt;&lt;/label&gt;&lt;%= select('node', 'rgroup_id',    form_groups, { :include_blank =&gt; true }, {:disabled=&gt;(@node[:inherit] != 0)}) %&gt;&lt;/li&gt;
-    &lt;li&gt;&lt;label&gt;&lt;%= _('skin') %&gt;&lt;/label&gt;&lt;%= select('node', 'skin',    form_skins,{}, {:disabled=&gt;(@node[:inherit] != 0)}) %&gt;&lt;/li&gt;
+    &lt;li&gt;&lt;label&gt;&lt;%= _('skin') %&gt;&lt;/label&gt;&lt;%= select('node', 'skin',    form_skins,{}, {:disabled=&gt;(@node[:inherit] == 1)}) %&gt;&lt;/li&gt;
     &lt;li class='submit'&gt;&lt;%= submit_tag _('change') %&gt;&lt;/li&gt;
   &lt;/form&gt;
   &lt;% else %&gt;</diff>
      <filename>app/views/nodes/_groups.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ Assumed:
 
 1. Copy the file 'deploy_config_example.rb' to 'deploy_config.rb' and edit the entries in this new file.
 2. Run =&gt; cap initial_setup
-3. Run =&gt; cap mksite -s host='example.com' -s pass='secret'
+3. Run =&gt; cap mksite -s host='example.com' -s pass='secret' -s lang='en'
 
 If anything goes wrong, ask the mailing list (lists.zenadmin.org) or read the content of this file to understand what went wrong...
 
@@ -115,7 +115,7 @@ end
 #========================== MANAGE HOST   =========================#
 desc &quot;create a new site&quot;
 task :mksite, :roles =&gt; :app do
-  run &quot;#{in_current} rake zena:mksite HOST='#{self[:host]}' PASSWORD='#{self[:pass]}' RAILS_ENV='production' LANG='#{self[:default_lang] || 'en'}'&quot;
+  run &quot;#{in_current} rake zena:mksite HOST='#{self[:host]}' PASSWORD='#{self[:pass]}' RAILS_ENV='production' LANG='#{self[:lang] || 'en'}'&quot;
   create_vhost
   set_permissions
 end</diff>
      <filename>config/deploy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ config.cache_classes = true
 # Full error reports are disabled and caching is turned on
 config.action_controller.consider_all_requests_local = false
 config.action_controller.perform_caching             = true
-config.action_view.cache_template_loading            = true
+config.action_view.cache_template_loading            = false # or zafu will not work !
 Cache.perform_caching                                = true
 CachedPage.perform_caching                           = true
 </diff>
      <filename>config/environments/production.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 = Welcome to Zena
 
-Zena is a CMS. (c) teti.ch 2007
+Zena is a CMS. (c) Gaspard Bucher, teti.ch 2007
 
 This documentation is being massively cleaned up before release.
 </diff>
      <filename>doc/README_FOR_APP</filename>
    </modified>
    <modified>
      <diff>@@ -45,6 +45,10 @@ ul.errors li { margin-left:0.4em; background:inherit; line-height:1.2em;}
 
 /* dev */
 #dev { background:#CABFA6; font-size:10px; position:fixed; bottom:5px; right:5px; 
-padding:5px; border:1px solid #714D3D; }
+padding:5px; border:1px solid #714D3D; text-align:left; color:#444;}
 #dev a { color:inherit; }
-#dev ul { margin:0; }
\ No newline at end of file
+#dev ul, #dev li { margin:0; padding:0; list-style:none; background:none; list-style-image:none;}
+#dev a.group { font-weight:bold; color:#222; display:block;}
+#dev td.actions {width:40px;}
+#dev li img { border:0; }
+#dev li li { clear:both;}
\ No newline at end of file</diff>
      <filename>public/stylesheets/zena.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ec173e0cfc54ba87485a1f5f297d10185a852452</id>
    </parent>
  </parents>
  <author>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </author>
  <url>http://github.com/zena/zena/commit/36c50ee608aa8e08bf4336caeea4c116066bb925</url>
  <id>36c50ee608aa8e08bf4336caeea4c116066bb925</id>
  <committed-date>2008-03-10T05:53:45-07:00</committed-date>
  <authored-date>2008-03-10T05:53:45-07:00</authored-date>
  <message>Fixed a bug in ApplicationHelper preventing calendar from showing if there were no options.
Better 'dev box' to show used templates (easier to read, grouped by type, groups can be closed)






git-svn-id: svn://svn.zenadmin.org/zena/trunk@895 aaa19a3b-e121-0410-9d45-962fd44e537e</message>
  <tree>8aa3f4cba5950f366811464e81d0ffe976dd3ba8</tree>
  <committer>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </committer>
</commit>
