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
261c43aa
Commit
261c43aa
authored
Nov 26, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sidebar column; fixed main column float bug
parent
f32388f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
cms/static/sass/_unit.scss
+1
-0
cms/templates/course_info.html
+20
-16
No files found.
cms/static/sass/_unit.scss
View file @
261c43aa
...
...
@@ -4,6 +4,7 @@
}
.main-column
{
clear
:
both
;
float
:
left
;
width
:
70%
;
}
...
...
cms/templates/course_info.html
View file @
261c43aa
...
...
@@ -11,20 +11,19 @@
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
document
).
ready
(
function
(){
var
course_updates
=
new
CMS
.
Models
.
CourseUpdateCollection
();
course_updates
.
reset
(
$
{
course_updates
|
n
});
course_updates
.
urlbase
=
'${url_base}'
;
var
editor
=
new
CMS
.
Views
.
CourseInfoEdit
({
el
:
$
(
'.main-wrapper'
),
model
:
new
CMS
.
Models
.
CourseInfo
({
courseId
:
'${context_course.location}'
,
updates
:
course_updates
,
// FIXME add handouts
handouts
:
null
})
});
editor
.
render
();
var
editor
=
new
CMS
.
Views
.
CourseInfoEdit
({
el
:
$
(
'.main-wrapper'
),
model
:
new
CMS
.
Models
.
CourseInfo
({
courseId
:
'${context_course.location}'
,
updates
:
course_updates
,
// FIXME add handouts
handouts
:
null
})
});
editor
.
render
();
});
</script>
</
%
block>
...
...
@@ -33,12 +32,17 @@
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
Course Info
</h1>
<article
class=
"unit-body window"
id=
"course-update-view"
>
<h2>
Updates
</h2>
<a
href=
"#"
class=
"new-update-button"
>
New Update
</a>
<ol
class=
"update-list"
id=
"course-update-list"
></ol>
<!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field -->
</article>
<div
class=
"main-column"
>
<article
class=
"unit-body window"
id=
"course-update-view"
>
<h2>
Updates
</h2>
<a
href=
"#"
class=
"new-update-button"
>
New Update
</a>
<ol
class=
"update-list"
id=
"course-update-list"
></ol>
<!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field -->
</article>
</div>
<div
class=
"sidebar window"
>
handouts go here
</div>
</div>
</div>
</div>
...
...
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