Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DONE] add filter HIDE_CURSUS #968

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pod/main/configuration.json
ptitloup marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -4376,6 +4376,19 @@
"pod_version_end": "",
"pod_version_init": "3.1.0"
},
"HIDE_CURSUS": {
"default_value": false,
"description": {
"en": [
""
],
"fr": [
"Si True, permet de ne pas afficher les cursus dans la colonne de droite"
]
},
"pod_version_end": "",
"pod_version_init": "3.1.0"
},
"HIDE_LANGUAGE_SELECTOR": {
"default_value": false,
"description": {
Expand Down
2 changes: 2 additions & 0 deletions pod/main/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@

HIDE_DISCIPLINES = getattr(django_settings, "HIDE_DISCIPLINES", False)

HIDE_CURSUS = getattr(django_settings, "HIDE_CURSUS", False)

HIDE_TYPES = getattr(django_settings, "HIDE_TYPES", False)

USE_BBB = getattr(django_settings, "USE_BBB", False)
Expand Down
3 changes: 2 additions & 1 deletion pod/video/templates/videos/filter_aside.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h2 class="card-title pod-card__title h4">
</div>
</fieldset>
{% endif %}

{% if HIDE_CURSUS == False %}
<fieldset class="border-right border-bottom mt-2">
<legend class="h5"><i class="bi bi-archive" aria-hidden="true"></i> {% trans 'University course' %}</legend>
<div id="filterCursus">
Expand All @@ -140,6 +140,7 @@ <h2 class="card-title pod-card__title h4">
{% endif %}
</div>
</fieldset>
{% endif %}
<input class="d-none" type="submit" value="{% trans 'Filter' %}">
</form>
</div>
Expand Down