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
d19dc6a9
Commit
d19dc6a9
authored
Aug 29, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new post button to primary nav
parent
f12022b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
14 deletions
+48
-14
lms/static/sass/_discussion.scss
+14
-10
lms/templates/discussion/single_thread.html
+34
-4
No files found.
lms/static/sass/_discussion.scss
View file @
d19dc6a9
...
...
@@ -22,17 +22,21 @@
body
.discussion
{
.new-post-btn
{
@include
blue-button
;
}
.course-tabs
.right
{
float
:
right
;
.new-post-icon
{
display
:
block
;
float
:
left
;
width
:
16px
;
height
:
17px
;
margin
:
8px
7px
0
0
;
background
:
url(../images/new-post-icon.png)
no-repeat
;
.new-post-btn
{
@include
blue-button
;
}
.new-post-icon
{
display
:
block
;
float
:
left
;
width
:
16px
;
height
:
17px
;
margin
:
8px
7px
0
0
;
background
:
url(../images/new-post-icon.png)
no-repeat
;
}
}
}
...
...
lms/templates/discussion/single_thread.html
View file @
d19dc6a9
...
...
@@ -15,11 +15,41 @@
<
%
static:js
group=
'discussion'
/>
</
%
block>
<
%
include
file=
"../courseware/course_navigation.html"
args=
"active_page='discussion'"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
courseware
.
access
import
has_access
%
>
<div
class=
""
>
<a
href=
"#"
class=
"new-post-btn"
><span
class=
"new-post-icon"
></span>
New Post
</a>
</div>
<nav
class=
"course-material"
>
<div
class=
"inner-wrapper"
>
<ol
class=
"course-tabs"
>
<li
class=
"courseware"
><a
href=
"${reverse('courseware', args=[course.id])}"
>
Courseware
</a></li>
<li
class=
"info"
><a
href=
"${reverse('info', args=[course.id])}"
>
Course Info
</a></li>
% if hasattr(course,'syllabus_present') and course.syllabus_present:
<li
class=
"syllabus"
><a
href=
"${reverse('syllabus', args=[course.id])}"
>
Syllabus
</a></li>
% endif
% if user.is_authenticated():
% if settings.MITX_FEATURES.get('ENABLE_TEXTBOOK'):
% for index, textbook in enumerate(course.textbooks):
<li
class=
"book"
><a
href=
"${reverse('book', args=[course.id, index])}"
>
${textbook.title}
</a></li>
% endfor
% endif
% if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_SERVICE'):
<li
class=
"discussion"
><a
href=
"${reverse('django_comment_client.forum.views.forum_form_discussion', args=[course.id])}"
class=
"active"
>
Discussion
</a></li>
% endif
% endif
% if settings.WIKI_ENABLED:
<li
class=
"wiki"
><a
href=
"${reverse('course_wiki', args=[course.id])}"
>
Wiki
</a></li>
% endif
% if user.is_authenticated():
<li
class=
"profile"
><a
href=
"${reverse('progress', args=[course.id])}"
>
Progress
</a></li>
% endif
% if staff_access:
<li
class=
"instructor"
><a
href=
"${reverse('instructor_dashboard', args=[course.id])}"
>
Instructor
</a></li>
% endif
<li
class=
"right"
><a
href=
"#"
class=
"new-post-btn"
><span
class=
"new-post-icon"
></span>
New Post
</a></li>
</ol>
</div>
</nav>
<div
class=
"discussion container"
>
<div
class=
"discussion-body"
>
...
...
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