-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Model field updated, more test cases added
- Loading branch information
1 parent
03afb18
commit 5ff3ae8
Showing
9 changed files
with
141 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
{% load static wagtailimages_tags wagtailcore_tags %} | ||
<div | ||
id="courseOverview" | ||
class="text-block {% if page.dark_theme %} dark-theme {% endif %}" | ||
> | ||
<div class="container section-spacing"> | ||
<div class="row justify-content-center"> | ||
<div class="col-lg-10"> | ||
{% if page.heading %} | ||
<h1 class="text-center">{{ page.heading }}</h1> | ||
{% endif %} | ||
|
||
{% if page.sub_heading %} | ||
{{ page.sub_heading|richtext }} | ||
{% else %} | ||
{{ page.get_parent.specific.description|richtext }} | ||
{% endif %} | ||
</div> | ||
{% load static wagtailcore_tags %} | ||
<div id="courseOverview" class="course-overview-block section-spacing"> | ||
<div class="container"> | ||
<div class="course-overview-heading"> | ||
{% if page.heading %} | ||
<h1>{{ page.heading | safe }}</h1> | ||
{% endif %} | ||
{{ page.get_overview | richtext }} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// sass-lint:disable mixins-before-declarations | ||
@import "common"; | ||
|
||
.course-overview-block { | ||
background: white url("#{$static-path}/images/dotted-bg.png") repeat-x 0 0; | ||
|
||
.course-overview-heading { | ||
margin: 0 auto; | ||
max-width: 1000px; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
max-width: 700px; | ||
margin: 0 auto 20px; | ||
color: $primary; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters