Changeset d0e3a9 in indico for indico/MaKaC/conference.py


Ignore:
Timestamp:
07/22/11 18:00:41 (22 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
6ea3df
Parents:
c69730
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (07/22/11 17:59:21)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (07/22/11 18:00:41)
Message:

[FIX] "First"/"Last" arrow hiding

  • When an event is the first in the category, so not display the "first" arrow. Same for "last".
  • Also check if the catalog exists before trying to return an index;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/conference.py

    rfa8006 rd0e3a9  
    11901190 
    11911191        nextEvt = next(categIter, None) 
     1192 
     1193        # if the event is already the first or the last, don't confuse 
     1194        # users by showing the respective arrow 
     1195        if first == conf: 
     1196            first = None 
     1197        if last == conf: 
     1198            last = None 
    11921199 
    11931200        return prev, nextEvt, first, last 
Note: See TracChangeset for help on using the changeset viewer.