Changeset 490:ebc65bcb529b
- Timestamp:
- 01/25/10 11:34:29 (7 months ago)
- Author:
- rgrp <http://rufuspollock.org>
- Branch:
- default
- Message:
-
[revision,bugfix][s]: fix brokenness on revision read view due to assuming revision ids were still ints (changed to uuids in cset:e87fbe8d9f78).
- Also change revision read view to display more useful change links
- Location:
- microfacts
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r409
|
r490
|
|
| 59 | 59 | if id is None: |
| 60 | 60 | h.redirect_to(controller='revision', action='list') |
| 61 | | id = int(id) |
| 62 | 61 | c.revision = model.Revision.query.get(id) |
| 63 | 62 | if c.revision is None: |
-
|
r363
|
r490
|
|
| 30 | 30 | <ul py:if="len(items) > 0"> |
| 31 | 31 | <py:for each="item in items"> |
| 32 | | <li>${item}</li> |
| | 32 | <li> |
| | 33 | <py:if test="_type.__name__ in ['Thread','Factlet']"> |
| | 34 | <a href="${h.url_for(controller=_type.__name__.lower(), |
| | 35 | action='read', id=item.id)}">${item.title}</a> |
| | 36 | </py:if> |
| | 37 | <py:if test="_type.__name__ == 'ThreadFactlet'"> |
| | 38 | <a href="${h.url_for(controller='thread', |
| | 39 | action='read', id=item.thread_id)}">${item.thread.title}</a> |
| | 40 | - |
| | 41 | <a href="${h.url_for(controller='factlet', |
| | 42 | action='read', id=item.factlet_id)}">${item.factlet.title}</a> |
| | 43 | </py:if> |
| | 44 | </li> |
| 33 | 45 | </py:for> |
| 34 | 46 | </ul> |