From 73ed5e3f61581d73c7db7122debcb7bfeec36a13 Mon Sep 17 00:00:00 2001 From: Stuart Powers Date: Thu, 15 Mar 2012 00:04:53 +0000 Subject: [PATCH] Don't use dropdown on mobile for top/controversial changed navmenu.compact to use a ${flatlist()} for rendering time options --- r2/r2/templates/navmenu.compact | 35 +-------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/r2/r2/templates/navmenu.compact b/r2/r2/templates/navmenu.compact index 7a119ffd4..35c87e485 100644 --- a/r2/r2/templates/navmenu.compact +++ b/r2/r2/templates/navmenu.compact @@ -23,37 +23,7 @@ <%namespace file="utils.html" import="plain_link, img_link, separator"/> <%def name="dropdown()"> - ## caching comment: - ## see caching comment for plain_link. In addition to the args, - ## this function depends on c.site.name, c.render_style and c.cname. - <% css_class = str(thing.css_class) if thing.css_class else "" %> - %if thing: - %if thing.title and thing.selected: - ${thing.title}: - %endif - - - -
- %for option in thing: - %if option != thing.selected: - ${plain_link(option.title, option.path, _sr_path = option.sr_path, - _class = "choice" + " " + option.css_class)} - %endif - %endfor -
- - %endif + ${flatlist()} @@ -63,9 +33,6 @@