comparison MoinMoin/action/info.py @ 3343:04548b25e042

info action: always use recall to allow sending the link (cf. FeatureRequests/UnsortedStuff: Latest version link should include version number as a GET parameter)
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 20 Mar 2008 14:09:17 +0100
parents abb32b0af96b
children dba9666479a9
comparison
equal deleted inserted replaced
3342:6003cadc0791 3343:04548b25e042
107 for line in log.reverse(): 107 for line in log.reverse():
108 rev = int(line.rev) 108 rev = int(line.rev)
109 actions = [] 109 actions = []
110 if line.action in ('SAVE', 'SAVENEW', 'SAVE/REVERT', 'SAVE/RENAME', ): 110 if line.action in ('SAVE', 'SAVENEW', 'SAVE/REVERT', 'SAVE/RENAME', ):
111 size = page.size(rev=rev) 111 size = page.size(rev=rev)
112 if count == 0: # latest page 112 actions.append(render_action(_('view'), {'action': 'recall', 'rev': '%d' % rev}))
113 actions.append(render_action(_('view'), {'action': 'show'}))
114 else:
115 actions.append(render_action(_('view'), {'action': 'recall', 'rev': '%d' % rev}))
116 if count == 0: 113 if count == 0:
117 rchecked = ' checked="checked"' 114 rchecked = ' checked="checked"'
118 lchecked = '' 115 lchecked = ''
119 elif count == 1: 116 elif count == 1:
120 lchecked = ' checked="checked"' 117 lchecked = ' checked="checked"'