richie 2.34.1.dev23__py2.py3-none-any.whl → 2.34.1.dev25__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of richie might be problematic. Click here for more details.

@@ -2,43 +2,47 @@
2
2
 
3
3
  {% for child in children %}
4
4
  {% with children_slug=child.get_menu_title|slugify menu_options=child.menu_extension %}
5
- <li class="topbar__item
6
- {% if menu_options.allow_submenu and child.children %}dropdown{% endif %}
7
- {% if menu_options.allow_submenu and menu_options.menu_color %} topbar__item--{{ menu_options.menu_color }}{% endif %}
8
- {% if child.selected or child.attr.redirect_url == current_page.get_absolute_url %} topbar__item--selected{% endif %}
9
- {% if child.ancestor %} topbar__item--ancestor{% endif %}
10
- {% if child.sibling %} topbar__item--sibling{% endif %}
11
- {% if child.descendant %} topbar__item--descendant{% endif %}"
12
- >
13
- {% comment %}Dropdown menu for children are only for page with index page
14
- extension with a specific option enabled{% endcomment %}
15
- {% if menu_options.allow_submenu and child.children %}
16
- <button
17
- aria-expanded="false"
18
- aria-haspopup="true"
19
- aria-controls="dropdown-{{ child.id }}"
20
- id="dropdown-button-{{ child.id }}"
21
- >
22
- {{ child.get_menu_title }}
23
- <svg class="icon" aria-hidden="true">
24
- <use xlink:href="#icon-chevron-down"></use>
25
- </svg>
26
- </button>
27
- <nav
28
- class="topbar__sublist"
29
- id="dropdown-{{ child.id }}"
30
- aria-labelledby="dropdown-button-{{ child.id }}"
31
- >
32
- <ul role="menu">
33
- {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
34
- </ul>
35
- </nav>
36
- {% else %}
37
- <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">
38
- {{ child.get_menu_title }}
39
- </a>
40
- {% endif %}
41
- </li>
5
+ {% with page_url=current_page.get_absolute_url redirect_url=child.attr.redirect_url %}
6
+ <li class="topbar__item
7
+ {% if menu_options.allow_submenu and child.children %}dropdown{% endif %}
8
+ {% if menu_options.allow_submenu and menu_options.menu_color %} topbar__item--{{ menu_options.menu_color }}{% endif %}
9
+ {% if child.ancestor %} topbar__item--ancestor{% endif %}
10
+ {% if child.sibling %} topbar__item--sibling{% endif %}
11
+ {% if child.descendant %} topbar__item--descendant{% endif %}
12
+ {% if child.selected %} topbar__item--selected
13
+ {% elif redirect_url and page_url == redirect_url %} topbar__item--selected
14
+ {% endif %}"
15
+ >
16
+ {% comment %}Dropdown menu for children are only for page with index page
17
+ extension with a specific option enabled{% endcomment %}
18
+ {% if menu_options.allow_submenu and child.children %}
19
+ <button
20
+ aria-expanded="false"
21
+ aria-haspopup="true"
22
+ aria-controls="dropdown-{{ child.id }}"
23
+ id="dropdown-button-{{ child.id }}"
24
+ >
25
+ {{ child.get_menu_title }}
26
+ <svg class="icon" aria-hidden="true">
27
+ <use xlink:href="#icon-chevron-down"></use>
28
+ </svg>
29
+ </button>
30
+ <nav
31
+ class="topbar__sublist"
32
+ id="dropdown-{{ child.id }}"
33
+ aria-labelledby="dropdown-button-{{ child.id }}"
34
+ >
35
+ <ul role="menu">
36
+ {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
37
+ </ul>
38
+ </nav>
39
+ {% else %}
40
+ <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">
41
+ {{ child.get_menu_title }}
42
+ </a>
43
+ {% endif %}
44
+ </li>
45
+ {% endwith %}
42
46
  {% endwith %}
43
47
  {% endfor %}
44
48
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: richie
3
- Version: 2.34.1.dev23
3
+ Version: 2.34.1.dev25
4
4
  Summary: A CMS to build learning portals for open education
5
5
  Author-email: "Open FUN (France Université Numérique)" <fun.dev@fun-mooc.fr>
6
6
  License: MIT License
@@ -894,7 +894,7 @@ richie/apps/core/templates/djangocms_video/default/video_player.html,sha256=6sLP
894
894
  richie/apps/core/templates/djangocms_video/full-width/video_player.html,sha256=X6SPaxKGHKwVDoP6H9AGS9Sl-NmKIjKhUUYP7THU9n0,123
895
895
  richie/apps/core/templates/menu/breadcrumb_item.html,sha256=dRSuDI12o85cPsSseuzgUbkEIvxG9nz14jelFIODvtw,285
896
896
  richie/apps/core/templates/menu/breadcrumbs.html,sha256=tvKDobvDogY-B5SPsF0pgEVNa2D6lVOAIf5rKUbkXvM,300
897
- richie/apps/core/templates/menu/header_menu.html,sha256=Wlev0hpQD-ByYqGjK0tzqb7EwECwzHe8-NwLFJctXF0,2171
897
+ richie/apps/core/templates/menu/header_menu.html,sha256=1UuenORE_0e0XRruUZEogV2oPFRvLp2ADLRiQfSsAIY,2515
898
898
  richie/apps/core/templates/menu/language_menu.html,sha256=x1hGxia3pv4l7YKa8ziJW34gjV8C4MgJ2aeTMLIO1fg,803
899
899
  richie/apps/core/templates/menu/menu.html,sha256=hXRtIwCZHGuUmNKAX79oj8AfNznIKw0yXXzu3Ezp_iA,864
900
900
  richie/apps/core/templates/richie/base.html,sha256=oboUl8ifCYCSwmGU6fZvnMQNExjAs03ogiMaR_VO9d0,21247
@@ -2474,9 +2474,9 @@ richie/static/richie/js/build/9986.058a216db3bba2db30ae.index.js,sha256=YZTuD2Zq
2474
2474
  richie/static/richie/js/build/99895.058a216db3bba2db30ae.index.js,sha256=h1YYGHeo8oCSliYfI_xAakYX_lCb02Bo291YxevGfbw,2570
2475
2475
  richie/static/richie/js/build/99953.058a216db3bba2db30ae.index.js,sha256=OWoLPJnHrmvF3HBQPgXooAGo5E0yJpJ7QTFHFghJpI8,135
2476
2476
  richie/static/richie/js/build/index.js,sha256=2GRBOGjixStzjiMagbJTC1I_dp_fJE8bS_3CDMl515w,1332005
2477
- richie-2.34.1.dev23.dist-info/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
2478
- richie-2.34.1.dev23.dist-info/METADATA,sha256=Rz9N0hiiSyCbngeH_51HuwjYgA8ge_SCYOoBTLv5Yn0,6987
2479
- richie-2.34.1.dev23.dist-info/WHEEL,sha256=SrDKpSbFN1G94qcmBqS9nyHcDMp9cUS9OC06hC0G3G0,109
2480
- richie-2.34.1.dev23.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
2481
- richie-2.34.1.dev23.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2482
- richie-2.34.1.dev23.dist-info/RECORD,,
2477
+ richie-2.34.1.dev25.dist-info/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
2478
+ richie-2.34.1.dev25.dist-info/METADATA,sha256=rN5aPrfZQ_mwp-MerDWtsdjP81IfmegVKSCfm1NAgpc,6987
2479
+ richie-2.34.1.dev25.dist-info/WHEEL,sha256=SrDKpSbFN1G94qcmBqS9nyHcDMp9cUS9OC06hC0G3G0,109
2480
+ richie-2.34.1.dev25.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
2481
+ richie-2.34.1.dev25.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2482
+ richie-2.34.1.dev25.dist-info/RECORD,,