Skip to content

Commit

Permalink
constants, design fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Jan 23, 2025
1 parent 8339690 commit cfa66d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions cms/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
COMMON_COURSEWARE_COMPONENT_INDEX_SLUG = "common-courseware-component-pages"

ALL_TOPICS = "All Topics"
ALL_LANGUAGES = "All Languages"
ALL_TAB = "all-tab"

# ************** CONSTANTS FOR WEBINARS **************
Expand Down
5 changes: 3 additions & 2 deletions cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
from cms.constants import (
ALL_TAB,
ALL_TOPICS,
ALL_LANGUAGES,
BLOG_INDEX_SLUG,
CERTIFICATE_INDEX_SLUG,
COMMON_COURSEWARE_COMPONENT_INDEX_SLUG,
Expand Down Expand Up @@ -652,8 +653,8 @@ def get_context(self, request, *args, **kwargs): # noqa: ARG002
}
for sorting_option in CatalogSorting
],
selected_language=request.GET.get("language", ""),
language_options=["All Languages"]
selected_language=request.GET.get("language", ALL_LANGUAGES),
language_options=[ALL_LANGUAGES]
+ [
course_language.name
for course_language in CourseLanguage.objects.filter(is_active=True)
Expand Down
4 changes: 2 additions & 2 deletions static/scss/catalog/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@
display: block;
margin-left: 0;
border: none;
padding: 16px 0;
margin-top: 0;
margin-bottom: 32px;
padding: 0;

&.show,
&:hover {
Expand Down

0 comments on commit cfa66d8

Please sign in to comment.