Give older/newer buttons the autodisable treatment
This commit is contained in:
		
							parent
							
								
									0e42efd32b
								
							
						
					
					
						commit
						4639d4a7db
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,12 +30,12 @@
 | 
			
		|||
  % if master.supports_prev_next:
 | 
			
		||||
      <div style="float: right;">
 | 
			
		||||
        % if prev_instance:
 | 
			
		||||
            ${h.link_to(u"« Older", url('{}.view'.format(route_prefix), uuid=prev_instance.uuid), class_='button')}
 | 
			
		||||
            ${h.link_to(u"« Older", url('{}.view'.format(route_prefix), uuid=prev_instance.uuid), class_='button autodisable')}
 | 
			
		||||
        % else:
 | 
			
		||||
            ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')}
 | 
			
		||||
        % endif
 | 
			
		||||
        % if next_instance:
 | 
			
		||||
            ${h.link_to(u"Newer »", url('{}.view'.format(route_prefix), uuid=next_instance.uuid), class_='button')}
 | 
			
		||||
            ${h.link_to(u"Newer »", url('{}.view'.format(route_prefix), uuid=next_instance.uuid), class_='button autodisable')}
 | 
			
		||||
        % else:
 | 
			
		||||
            ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')}
 | 
			
		||||
        % endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue