Projet

Général

Profil

0001-misc-remove-old-mobile-mode-25942.patch

Frédéric Péters, 14 juillet 2019 20:39

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH] misc: remove old mobile mode (#25942)

 auquotidien/modules/root.py | 5 -----
 1 file changed, 5 deletions(-)
auquotidien/modules/root.py
945 945

  
946 946
        all_formdefs = FormDef.select(lambda x: not x.is_disabled() or x.disabled_redirection,
947 947
                order_by = 'name')
948
        if get_response().page_template_key == 'mobile':
949
            # if we are in 'mobile' mode, and some formdefs have a 'mobile'
950
            # keyword, we limit the display to those
951
            if any((x for x in all_formdefs if x.keywords and 'mobile' in x.keywords)):
952
                all_formdefs = [x for x in all_formdefs if x.keywords and 'mobile' in x.keywords]
953 948

  
954 949
        if position:
955 950
            t = self.display_list_of_formdefs(
956
-