Changeset 262:d3952f6bf6d5
- Timestamp:
- 02/08/10 21:52:12 (6 months ago)
- Author:
- rgrp
- Branch:
- default
- Message:
-
[templates,controllers/site][s]: change blog link to news and add in word of the week (wotw) proxy.
- Location:
- shakespeare
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r260
|
r262
|
|
| 27 | 27 | map.connect('home', '/', controller='site', action='index') |
| 28 | 28 | map.connect('about', '/about/', controller='site', action='about') |
| | 29 | map.connect('news', '/news/', controller='site', action='news') |
| | 30 | map.connect('wotw', '/wotw/{url:.*}', controller='site', action='wotw') |
| 29 | 31 | map.connect('guide', '/guide/', controller='site', action='guide') |
| 30 | | map.connect('news', '/news/', controller='site', action='news') |
| 31 | 32 | map.connect('/resource/{action}/{id}{url:.*}', controller='our_resource') |
| 32 | 33 | map.connect('/material/{action}/{id}', controller='text') |
-
|
r252
|
r262
|
|
| 46 | 46 | <rule> |
| 47 | 47 | <replace content="children:#content" theme="children:#content" /> |
| | 48 | <!-- |
| 48 | 49 | <append content="children:#sidebar" theme="children:#primary" /> |
| | 50 | --> |
| 49 | 51 | </rule> |
| 50 | 52 | </ruleset> |
| … |
… |
|
| 78 | 80 | return render('index.html') |
| 79 | 81 | |
| | 82 | def guide(self): |
| | 83 | return render('guide.html') |
| | 84 | |
| 80 | 85 | def about(self): |
| 81 | 86 | if DELIVERANCE_ENABLE: |
| … |
… |
|
| 83 | 88 | else: |
| 84 | 89 | return render('about.html') |
| 85 | | |
| 86 | | def guide(self): |
| 87 | | return render('guide.html') |
| 88 | 90 | |
| 89 | 91 | def news(self): |
| … |
… |
|
| 94 | 96 | return self.deliverance(request.environ, self.start_response) |
| 95 | 97 | else: |
| 96 | | return '' |
| | 98 | return render('index.html') |
| | 99 | |
| | 100 | def wotw(self): |
| | 101 | if DELIVERANCE_ENABLE: |
| | 102 | # modify path for proxy to strip out /news/ |
| | 103 | currentpath = request.environ['PATH_INFO'] |
| | 104 | request.environ['PATH_INFO'] = '/category' + request.environ['PATH_INFO'] |
| | 105 | return self.deliverance(request.environ, self.start_response) |
| | 106 | else: |
| | 107 | return render('index.html') |
| 97 | 108 | |
| 98 | 109 | @property |
-
|
r255
|
r262
|
|
| 64 | 64 | <li><a href="${h.url_for('guide')}">Guide</a></li> |
| 65 | 65 | <li><a href="${h.url_for('about')}">About</a></li> |
| 66 | | <li><a href="http://blog.openshakespeare.org">Blog</a></li> |
| | 66 | <li><a href="${h.url_for('news')}">News</a></li> |
| 67 | 67 | </ul> |
| 68 | 68 | <h3 class="hidden">In this section:</h3> |