[Checkins] SVN: zope.kgs/trunk/src/zope/kgs/ Hook up changelog and announcement link.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jan 27 04:49:05 EST 2009
Log message for revision 95097:
Hook up changelog and announcement link.
Changed:
U zope.kgs/trunk/src/zope/kgs/site.py
U zope.kgs/trunk/src/zope/kgs/templates/index.html
-=-
Modified: zope.kgs/trunk/src/zope/kgs/site.py
===================================================================
--- zope.kgs/trunk/src/zope/kgs/site.py 2009-01-27 09:44:48 UTC (rev 95096)
+++ zope.kgs/trunk/src/zope/kgs/site.py 2009-01-27 09:49:05 UTC (rev 95097)
@@ -123,9 +123,9 @@
# directory
shutil.move(kgsPath, versionDir)
if set.changelog:
- shutil.move(kgs.changelog, versionDir)
+ shutil.move(set.changelog, versionDir)
if set.announcement:
- shutil.move(kgs.announcement, versionDir)
+ shutil.move(set.announcement, versionDir)
# Let's now recreate some of the important variables.
kgsPath = os.path.join(versionDir, 'controlled-packages.cfg')
Modified: zope.kgs/trunk/src/zope/kgs/templates/index.html
===================================================================
--- zope.kgs/trunk/src/zope/kgs/templates/index.html 2009-01-27 09:44:48 UTC (rev 95096)
+++ zope.kgs/trunk/src/zope/kgs/templates/index.html 2009-01-27 09:49:05 UTC (rev 95097)
@@ -11,20 +11,29 @@
<li tal:repeat="version versions">
<a href="#">Version <span tal:replace="version/name">1</span></a>
<ul class="level-two" style="display: none;">
- <li tal:repeat="feature version/features">
- <a href="#"
- tal:attributes="href feature/url"
- tal:content="feature/title">Feature 1</a>
- </li>
- <li tal:replace="nothing">
- <a href="#">Feature 2</a>
- </li>
- <li tal:replace="nothing">
- <a href="#">Feature 3</a>
- </li>
- <li tal:replace="nothing">
- <a href="#">Feature 4</a>
- </li>
+
+ <li tal:condition="version/announcement">
+ <a href="#"
+ tal:attributes="href version/announcement">Announcement</a>
+ </li>
+ <li tal:condition="version/changelog">
+ <a href="#"
+ tal:attributes="href version/changelog">Changelog</a>
+ </li>
+ <li tal:repeat="feature version/features">
+ <a href="#"
+ tal:attributes="href feature/url"
+ tal:content="feature/title">Feature 1</a>
+ </li>
+ <li tal:replace="nothing">
+ <a href="#">Feature 2</a>
+ </li>
+ <li tal:replace="nothing">
+ <a href="#">Feature 3</a>
+ </li>
+ <li tal:replace="nothing">
+ <a href="#">Feature 4</a>
+ </li>
</ul>
</li>
More information about the Checkins
mailing list