Changeset 1808
- Timestamp:
- 11/24/08 17:27:17 (16 months ago)
- Location:
- trunk/pylucid_project
- Files:
-
- 1 removed
- 5 modified
- 1 moved
-
media/PyLucid/internal_page/main_menu/main_menu.html (deleted)
-
media/PyLucid/internal_page/main_menu/main_menu_li.html (modified) (2 diffs)
-
media/PyLucid/internal_page/main_menu/main_menu_ul.css (moved) (moved from trunk/pylucid_project/media/PyLucid/internal_page/main_menu/main_menu.css) (1 diff)
-
PyLucid/admin.py (modified) (1 diff)
-
PyLucid/db/page.py (modified) (2 diffs)
-
PyLucid/plugins_internal/main_menu/main_menu.py (modified) (3 diffs)
-
PyLucid/plugins_internal/SiteMap/SiteMap.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/media/PyLucid/internal_page/main_menu/main_menu_li.html
r1792 r1808 1 <li> 1 {% spaceless %} 2 3 {% if showlinks %}<li> 2 4 <a href="{{ href }}" title="{{ title }}"{% if is_current or active %} class="{% if active %}active{% endif %}{% if is_current %} current{% endif %}"{% endif %}>{{ name }}</a> 5 {% endif %} 6 3 7 {% if submenu %} 4 8 <ul> … … 6 10 </ul> 7 11 {% endif %} 8 </li> 12 13 {% if showlinks %}</li>{% endif %} 14 15 {% endspaceless %} -
trunk/pylucid_project/media/PyLucid/internal_page/main_menu/main_menu_ul.css
r1792 r1808 8 8 font-weight: bold; 9 9 } 10 .main_menu ul ul{11 margin-left:1em;12 } -
trunk/pylucid_project/PyLucid/admin.py
r1777 r1808 38 38 list_display_links = ("shortcut",) 39 39 list_filter = ( 40 "createby", "lastupdateby","permitViewPublic",40 "createby", "lastupdateby", "permitViewPublic", "showlinks", 41 41 "template", "style", "markup", 42 42 ) -
trunk/pylucid_project/PyLucid/db/page.py
r1722 r1808 41 41 """ 42 42 page_data = Page.objects.values( 43 "id", "parent", "name", "title", "shortcut" 43 "id", "parent", "name", "title", "shortcut", "showlinks", 44 44 ).order_by("position", "name", "id") 45 45 tree = TreeGenerator(page_data) … … 65 65 """ 66 66 page_data = Page.objects.values( 67 "id", "parent", "name", "title", "shortcut" 68 ). filter(showlinks = True).order_by("position", "name", "id")67 "id", "parent", "name", "title", "shortcut", "showlinks", 68 ).order_by("position", "name", "id") 69 69 70 70 if request.user.is_anonymous(): -
trunk/pylucid_project/PyLucid/plugins_internal/main_menu/main_menu.py
r1806 r1808 33 33 from django.utils.safestring import mark_safe 34 34 35 35 TEMPLATE_DEBUG = False 36 #TEMPLATE_DEBUG = True 36 37 37 38 class main_menu(PyLucidBasePlugin): … … 57 58 "max": max 58 59 } 59 self._render_template("main_menu_ul", context )60 self._render_template("main_menu_ul", context, debug=TEMPLATE_DEBUG) 60 61 61 62 … … 92 93 93 94 # Render one menu entry 94 html = self._get_rendered_template("main_menu_li", entry) 95 html = self._get_rendered_template( 96 "main_menu_li", entry, debug=TEMPLATE_DEBUG 97 ) 95 98 result.append(html) 96 99 elif int(entry["level"]) < self.min: -
trunk/pylucid_project/PyLucid/plugins_internal/SiteMap/SiteMap.py
r1634 r1808 89 89 90 90 href.append(entry["shortcut"]) 91 92 href = "/".join(href) 91 93 92 href = "/".join(href) 93 entry["href"] = self.URLs["absoluteIndex"] + href + "/" 94 95 result.append(HTML_TEMPLATE % entry) 94 if entry["showlinks"] == True: 95 entry["href"] = self.URLs["absoluteIndex"] + href + "/" 96 result.append(HTML_TEMPLATE % entry) 96 97 97 98 if "subitems" in entry: