Merge pull request #16249 from edx/andya/responsive-discussions
Make the discussion board responsive
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<form class="search-form" role="search" action="/courses/course-v1:W3Cx+HTML5.0x+1T2017/search/">
|
||||
<label class="field-label sr-only" for="search" id="search-hint">Search the course</label>
|
||||
<input
|
||||
class="field-input input-text search-input"
|
||||
class="field-input input-text search-input form-control"
|
||||
type="search"
|
||||
name="query"
|
||||
id="search"
|
||||
|
||||
@@ -31,13 +31,13 @@ from openedx.features.course_experience import UNIFIED_COURSE_TAB_FLAG, SHOW_REV
|
||||
<form class="search-form" role="search" action="${reverse('openedx.course_search.course_search_results', args=[course_key])}">
|
||||
<label class="field-label sr-only" for="search" id="search-hint">${_('Search the course')}</label>
|
||||
<input
|
||||
class="field-input input-text search-input"
|
||||
class="field-input input-text search-input form-control"
|
||||
type="search"
|
||||
name="query"
|
||||
id="search"
|
||||
placeholder="${_('Search the course')}"
|
||||
/>
|
||||
<button class="btn btn-small search-button" type="submit">${_('Search')}</button>
|
||||
<button class="btn btn-outline-primary search-button" type="submit">${_('Search')}</button>
|
||||
</form>
|
||||
</div>
|
||||
% endif
|
||||
|
||||
@@ -52,7 +52,10 @@ class CourseHomeView(CourseTabView):
|
||||
"""
|
||||
return super(CourseHomeView, self).get(request, course_id, 'courseware', **kwargs)
|
||||
|
||||
def uses_bootstrap(self, request, course):
|
||||
def uses_bootstrap(self, request, course, tab):
|
||||
"""
|
||||
Returns true if the USE_BOOTSTRAP Waffle flag is enabled.
|
||||
"""
|
||||
return USE_BOOTSTRAP_FLAG.is_enabled(course.id)
|
||||
|
||||
def render_to_fragment(self, request, course=None, tab=None, **kwargs):
|
||||
|
||||
@@ -31,7 +31,10 @@ class CourseReviewsView(CourseTabView):
|
||||
"""
|
||||
return super(CourseReviewsView, self).get(request, course_id, 'courseware', **kwargs)
|
||||
|
||||
def uses_bootstrap(self, request, course):
|
||||
def uses_bootstrap(self, request, course, tab):
|
||||
"""
|
||||
Returns true if the USE_BOOTSTRAP Waffle flag is enabled.
|
||||
"""
|
||||
return USE_BOOTSTRAP_FLAG.is_enabled(course.id)
|
||||
|
||||
def render_to_fragment(self, request, course=None, tab=None, **kwargs):
|
||||
|
||||
@@ -63,7 +63,10 @@ class CourseUpdatesView(CourseTabView):
|
||||
"""
|
||||
return super(CourseUpdatesView, self).get(request, course_id, 'courseware', **kwargs)
|
||||
|
||||
def uses_bootstrap(self, request, course):
|
||||
def uses_bootstrap(self, request, course, tab):
|
||||
"""
|
||||
Returns true if the USE_BOOTSTRAP Waffle flag is enabled.
|
||||
"""
|
||||
return USE_BOOTSTRAP_FLAG.is_enabled(course.id)
|
||||
|
||||
def render_to_fragment(self, request, course=None, tab=None, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user