Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
021f86a9
Commit
021f86a9
authored
Sep 13, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #669 from MITx/feature/kfiedler/widows
Added widow fix for subtitles too
parents
f253186e
2b9268ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
lms/static/sass/course/courseware/_sidebar.scss
+2
-1
lms/templates/accordion.html
+2
-5
lms/templates/courseware/courseware.html
+1
-1
No files found.
lms/static/sass/course/courseware/_sidebar.scss
View file @
021f86a9
...
...
@@ -119,11 +119,12 @@ section.course-index {
margin-bottom
:
0
;
line-height
:
1
.3
;
span
.subtitle
{
&
.subtitle
{
color
:
#666
;
font-size
:
13px
;
font-weight
:
normal
;
display
:
block
;
margin
:
0
;
}
}
...
...
lms/templates/accordion.html
View file @
021f86a9
...
...
@@ -9,11 +9,8 @@
% for section in chapter['sections']:
<li
class=
"${'active' if 'active' in section and section['active'] else ''} ${'graded' if 'graded' in section and section['graded'] else ''}"
>
<a
href=
"${reverse('courseware_section', args=[course_id, chapter['url_name'], section['url_name']])}"
>
<p>
${section['display_name']}
<span
class=
"subtitle"
>
${section['format']} ${"due " + section['due'] if 'due' in section and section['due'] != '' else ''}
</span>
</p>
<p>
${section['display_name']}
</p>
<p
class=
"subtitle"
>
${section['format']} ${"due " + section['due'] if 'due' in section and section['due'] != '' else ''}
</p>
</a>
</li>
% endfor
...
...
lms/templates/courseware/courseware.html
View file @
021f86a9
...
...
@@ -38,7 +38,7 @@
var
$$course_id
=
"${course.id}"
;
$
(
function
(){
$
(
".ui-accordion-header a"
).
each
(
function
()
{
$
(
".ui-accordion-header a
, .ui-accordion-content .subtitle
"
).
each
(
function
()
{
var
wordArray
=
$
(
this
).
text
().
split
(
" "
);
var
finalTitle
=
""
;
for
(
i
=
0
;
i
<=
wordArray
.
length
-
1
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment