Skip to content

Commit

Permalink
option to hide explore page in customize class
Browse files Browse the repository at this point in the history
  • Loading branch information
Annelein committed Apr 22, 2024
1 parent c56a94c commit fb3511a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions templates/customize-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ <h3 class="px-4"><u>{{_('other_settings')}}</u></h3>
if "hide_parsons" in customizations['other_settings'] %}checked{% endif %}>
</td>
</tr>
<tr>
<td class="text-left border-t border-r border-gray-400">{{_('disable_explore_page')}}</td>
<td class="border-t border-gray-400">
<input class="other_settings_checkbox" id="hide_explore" type="checkbox" {%
if "hide_explore" in customizations['other_settings'] %}checked{% endif %}>
</td>
</tr>
</tbody>
</table>
</div>
Expand Down
4 changes: 3 additions & 1 deletion templates/incl/menubar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<li class="ltr:mr-2 rtl:ml-2"><a href="/" class="inline-block w-10 lg:w-12"><img src="{{static('/images/Hedy-logo-96x96-round.png')}}" height="48px" width="48px" alt="{{_('hedy_logo_alt')}}"></a></li>
<li class="flex-initial menubar-item{% if current_page == 'start' %} active{% endif %}"><a class="menubar-text" href="/" title="{{_('nav_start')}}">{{_('nav_start')}}</a></li>
<li class="flex-initial menubar-item{% if current_page == 'hedy' %} active{% endif %}"><a class="menubar-text" id="hedybutton" href="/hedy" title="{{_('nav_hedy')}}">{{_('nav_hedy')}}</a></li>
<li class="flex-initial truncate menubar-item{% if current_page == 'explore' %} active{% endif %}"><a class="menubar-text" id="explorebutton" href="/explore" title="{{_('nav_explore')}}">{{_('nav_explore')}}</a></li>
{% if not 'hide_explore' in customizations['other_settings'] %}
<li class="flex-initial truncate menubar-item{% if current_page == 'explore' %} active{% endif %}"><a class="menubar-text" id="explorebutton" href="/explore" title="{{_('nav_explore')}}">{{_('nav_explore')}}</a></li>
{% endif %}
{% if is_teacher or is_second_teacher %}
<li class="flex-initial truncate menubar-item{% if current_page == 'for-teachers' %} active{% endif %}"><a class="menubar-text" href="/for-teachers" title="{{_('for_teachers')}}">{{_('for_teachers')}}</a></li>
<li class="flex-initial truncate menubar-item{% if current_page == 'teacher-manual' %} active{% endif %}"><a class="menubar-text" href="/for-teachers/manual" title="{{_('teacher_manual')}}">{{_('teacher_manual')}}</a></li>
Expand Down

0 comments on commit fb3511a

Please sign in to comment.