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
079b2df4
Commit
079b2df4
authored
Jun 14, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AC-455 adding main to PDF books
parent
b8fbab67
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
53 deletions
+49
-53
lms/static/sass/course/_textbook.scss
+3
-12
lms/templates/static_htmlbook.html
+30
-29
lms/templates/static_pdfbook.html
+14
-12
lms/templates/staticbook.html
+2
-0
No files found.
lms/static/sass/course/_textbook.scss
View file @
079b2df4
...
@@ -27,20 +27,15 @@ div.book-wrapper {
...
@@ -27,20 +27,15 @@ div.book-wrapper {
border-right
:
none
;
border-right
:
none
;
width
:
180px
;
width
:
180px
;
ul
#booknav
{
#booknav
{
font-size
:
em
(
14
);
list-style
:
none
;
.chapter-number
{
}
.chapter
{
.chapter
{
float
:
left
;
width
:
87%
;
line-height
:
1
.4em
;
line-height
:
1
.4em
;
}
}
.page-number
{
.page-number
{
float
:
right
;
@include
float
(
right
)
;
width
:
12%
;
width
:
12%
;
font-size
:
.8em
;
font-size
:
.8em
;
line-height
:
2
.1em
;
line-height
:
2
.1em
;
...
@@ -59,7 +54,6 @@ div.book-wrapper {
...
@@ -59,7 +54,6 @@ div.book-wrapper {
@include
clearfix
();
@include
clearfix
();
padding
:
0
;
padding
:
0
;
color
:
$link-color
;
color
:
$link-color
;
cursor
:
pointer
;
&
:hover
,
&
:focus
{
&
:hover
,
&
:focus
{
background-color
:
transparent
;
background-color
:
transparent
;
...
@@ -231,6 +225,3 @@ div.book-wrapper {
...
@@ -231,6 +225,3 @@ div.book-wrapper {
}
}
}
}
}
}
lms/templates/static_htmlbook.html
View file @
079b2df4
...
@@ -118,33 +118,34 @@ from openedx.core.djangolib.js_utils import (
...
@@ -118,33 +118,34 @@ from openedx.core.djangolib.js_utils import (
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='htmltextbook/{0}'.format(book_index)"
/>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='htmltextbook/{0}'.format(book_index)"
/>
<div
id=
"outerContainer"
>
<div
id=
"outerContainer"
>
<div
id=
"mainContainer"
class=
"book-wrapper"
>
<main
id=
"main"
aria-label=
"${_('Content')}"
tabindex=
"-1"
>
<div
id=
"mainContainer"
class=
"book-wrapper"
>
%if 'chapters' in textbook:
<section
aria-label=
"${_('Textbook Navigation')}"
class=
"book-sidebar"
>
%if 'chapters' in textbook:
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<section
aria-label=
"${_('Textbook Navigation')}"
class=
"book-sidebar"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<li
id=
"htmlchapter-${index_value}"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<a
class=
"chapter"
>
<li
id=
"htmlchapter-${index_value}"
>
${entry.get('title')}
<a
class=
"chapter"
>
</a>
${entry.get('title')}
</li>
</a>
</
%
def>
</li>
</
%
def>
%for (index, entry) in enumerate(textbook['chapters']):
${HTML(print_entry(entry, index+1))}
%for (index, entry) in enumerate(textbook['chapters']):
% endfor
${HTML(print_entry(entry, index+1))}
</ul>
% endfor
</section>
</ul>
%endif
</section>
%endif
<section
id=
"viewerContainer"
class=
"book"
>
<section
class=
"page"
>
<section
id=
"viewerContainer"
class=
"book"
>
<div
id=
"bookpage"
/>
<section
class=
"page"
>
</section>
<div
id=
"bookpage"
/>
</section>
</section>
<span
class=
"idU"
style=
"display:none"
>
${student.id}
</span>
</section>
<span
class=
"idDU"
style=
"display:none"
>
${student.username}
</span>
<span
class=
"idU"
style=
"display:none"
>
${student.id}
</span>
</div>
<span
class=
"idDU"
style=
"display:none"
>
${student.username}
</span>
</div>
</main>
</div>
</div>
lms/templates/static_pdfbook.html
View file @
079b2df4
...
@@ -26,7 +26,8 @@ $(function(){
...
@@ -26,7 +26,8 @@ $(function(){
});
});
</script>
</script>
<div
class=
"book-wrapper"
>
<main
id=
"main"
aria-label=
"${_('Content')}"
tabindex=
"-1"
>
<div
class=
"book-wrapper"
>
%if 'chapters' in textbook:
%if 'chapters' in textbook:
<section
class=
"book-sidebar"
aria-label=
"${_('Textbook Navigation')}"
>
<section
class=
"book-sidebar"
aria-label=
"${_('Textbook Navigation')}"
>
<ul
id=
"booknav"
>
<ul
id=
"booknav"
>
...
@@ -39,14 +40,15 @@ $(function(){
...
@@ -39,14 +40,15 @@ $(function(){
</section>
</section>
%endif
%endif
<div
class=
"book"
>
<div
class=
"book"
>
<iframe
<iframe
title=
"${current_chapter['title']|h}"
title=
"${current_chapter['title']|h}"
id=
"viewer-frame"
id=
"viewer-frame"
src=
"${request.path}?viewer=true${viewer_params}"
src=
"${request.path}?viewer=true${viewer_params}"
width=
"856"
width=
"856"
height=
"1108"
height=
"1108"
frameborder=
"0"
frameborder=
"0"
seamless
></iframe>
seamless
></iframe>
</div>
</div>
</div>
</div>
</main>
lms/templates/staticbook.html
View file @
079b2df4
...
@@ -76,6 +76,7 @@ $("#open_close_accordion a").click(function(){
...
@@ -76,6 +76,7 @@ $("#open_close_accordion a").click(function(){
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='textbook/{0}'.format(book_index)"
/>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='textbook/{0}'.format(book_index)"
/>
<section
class=
"container"
>
<section
class=
"container"
>
<main
id=
"main"
aria-label=
"${_('Content')}"
tabindex=
"-1"
>
<div
class=
"book-wrapper"
>
<div
class=
"book-wrapper"
>
<section
aria-label=
"${_('Textbook Navigation')}"
class=
"book-sidebar"
>
<section
aria-label=
"${_('Textbook Navigation')}"
class=
"book-sidebar"
>
...
@@ -130,4 +131,5 @@ $("#open_close_accordion a").click(function(){
...
@@ -130,4 +131,5 @@ $("#open_close_accordion a").click(function(){
</section>
</section>
</section>
</section>
</div>
</div>
</main>
</section>
</section>
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