[Zope-dev] Small ZMI enhancement

Casey Duncan c.duncan@nlada.org
Fri, 19 Oct 2001 11:45:33 -0400


When working in versions, it is currently a pain to get to the current version you 
are working in. Since the ZMI displays the path to the current version at the top, 
I thought, why now make this a link to the version so that you can get there in 
one click and manage it?

Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

*** manage_tabs.dtml~	Fri Oct 19 11:34:11 2001
--- manage_tabs.dtml	Fri Oct 19 11:37:48 2001
***************
*** 161,167 ****

  <dtml-if Zope-Version>
  <div class="system-msg">
! <em>You are currently working in version <dtml-var Zope-Version html_quote></em>
  </div>
  </dtml-if>
  </dtml-unless>
--- 161,167 ----

  <dtml-if Zope-Version>
  <div class="system-msg">
! <em>You are currently working in version <a href="&dtml-SERVER_URL;&dtml-Zope-Version;/manage_main"><dtml-var Zope-Version html_quote></a></em>
  </div>
  </dtml-if>
  </dtml-unless>

Anyone object to putting this in the core?

Enjoy.

/---------------------------------------------------\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  c.duncan@nlada.org
\---------------------------------------------------/