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
e00b7cb2
Commit
e00b7cb2
authored
Jun 14, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
askbot stuff.
parent
a08be527
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
42 deletions
+67
-42
lms/askbot/skins/mitx/templates/course_navigation.jinja.html
+16
-0
lms/askbot/skins/mitx/templates/navigation.jinja.html
+46
-0
lms/askbot/skins/mitx/templates/widgets/header.html
+2
-38
lms/envs/askbotsettings.py
+2
-3
lms/templates/courseware-error.html
+1
-1
No files found.
lms/askbot/skins/mitx/templates/course_navigation.jinja.html
0 → 100644
View file @
e00b7cb2
<nav
class=
"askbot course-material"
>
<div
class=
"inner-wrapper"
>
<ol
class=
"course-tabs"
>
<li
class=
"courseware"
><a
href=
"{{ MITX_ROOT_URL }}/courseware"
>
Courseware
</a></li>
<li
class=
"info"
><a
href=
"{{ MITX_ROOT_URL }}/info"
>
Course Info
</a></li>
{% if user.is_authenticated(): %}
<li
class=
"book"
><a
href=
"{{ MITX_ROOT_URL }}/book"
>
Textbook
</a></li>
<li
class=
"discussion"
><a
href=
"{{ MITX_ROOT_URL }}/discussion/questions/"
class=
"active"
>
Discussion
</a></li>
{% endif%}
<li
class=
"wiki"
><a
href=
"{{ MITX_ROOT_URL }}/wiki/view/"
>
Wiki
</a></li>
{% if user.is_authenticated():%}
<li
class=
"profile"
><a
href=
"{{ MITX_ROOT_URL }}/profile"
>
Profile
</a></li>
{% endif %}
</ol>
</div>
</nav>
lms/askbot/skins/mitx/templates/navigation.jinja.html
0 → 100644
View file @
e00b7cb2
<header
class=
"app"
aria-label=
"Global Navigation"
>
<nav>
<a
href=
"{{ MITX_ROOT_URL }}"
class=
"logo"
>
<img
src=
"/static/images/logo.png"
/>
</a>
{%if request.user.is_authenticated(): %}
<h1>
Circuits and Electronics
</h1>
<ol
class=
"user"
>
<li>
<a
href=
"/dashboard"
class=
"user-dashboard"
>
<span
class=
"avatar"
><img
src=
"/static/images/profile.jpg"
/></span>
{{ request.user.username }}
</a>
</li>
<li>
<a
href=
"#"
class=
"options"
>
&
#9662
</a>
<ol
class=
"user-options"
>
<li><a
href=
"#"
>
Account Settings
</a></li>
<li><a
href=
"/logout"
>
Log Out
</a></li>
</ol>
</li>
</ol>
{%else:%}
<ol>
<li><a
href=
"/courses"
>
Courses
</a></li>
<li><a
href=
"#"
>
How It Works
</a></li>
</ol>
<ol
class=
"user"
>
<li><a
href=
"/dashboard"
>
Log In
</a></li>
<li><a
href=
"#"
>
Sign Up
</a></li>
</ol>
<ol
class=
"secondary"
>
<li>
<a
href=
"#"
>
About
</a>
</li>
<li>
<a
href=
"#"
>
Jobs
</a>
</li>
<li>
<a
href=
"#"
>
faq
</a>
</li>
</ol>
{%endif %}
</nav>
</header>
lms/askbot/skins/mitx/templates/widgets/header.html
View file @
e00b7cb2
<!-- template header.html -->
{% import "macros.html" as macros %}
<div
class=
"header-wrapper"
>
<header>
<hgroup>
<h1><em>
MITx
</em></h1>
<h2><a
href=
"/courseware"
>
Circuits and Electronics!!!!
</a></h2>
</hgroup>
<nav
class=
"discussion"
>
<ul
class=
"coursenav"
>
<li
class=
"courseware"
><a
href=
"/courseware"
>
Courseware
</a></li>
<li
class=
"info"
><a
href=
"/info"
>
Course Info
</a></li>
<li
class=
"book"
><a
href=
"/book"
>
Textbook
</a></li>
<li
class=
"discussion"
><a
href=
"/discussion"
>
Discussion
</a></li>
<li
class=
"wiki"
><a
href=
"/wiki"
>
Wiki
</a></li>
<li
class=
"profile"
><a
href=
"/profile"
>
Profile
</a></li>
</ul>
</nav>
</header>
</div>
<!--<div
id="header"
class="{% if settings.SHOW_LOGO %}with-logo{% else %}without-logo{% endif %}"
>
<div class="content-wrapper">
<div id="userToolsNav">
{% include "widgets/user_navigation.html" %}
</div>
{% if settings.SHOW_LOGO %}
{% include "widgets/logo.html" %}
{% endif %}
<div id="metaNav">
{% include "widgets/meta_nav.html" %}
</div>
<div class="clean"></div>
</div>
</div>-->
<!-- end template header.html -->
{% include "navigation.jinja.html" %}
{% include "course_navigation.jinja.html" %}
lms/envs/askbotsettings.py
View file @
e00b7cb2
...
...
@@ -133,7 +133,7 @@ LIVESETTINGS_OPTIONS = {
'SHOW_LOGO'
:
False
,
'LOCAL_LOGIN_ICON'
:
u'/images/pw-login.gif'
,
'ALWAYS_SHOW_ALL_UI_FUNCTIONS'
:
False
,
'ASKBOT_DEFAULT_SKIN'
:
u'
default
'
,
'ASKBOT_DEFAULT_SKIN'
:
u'
mitx
'
,
'USE_CUSTOM_HTML_HEAD'
:
False
,
'FOOTER_MODE'
:
u'default'
,
'USE_CUSTOM_CSS'
:
False
,
...
...
@@ -290,4 +290,4 @@ LIVESETTINGS_OPTIONS = {
},
},
},
}
\ No newline at end of file
}
lms/templates/courseware-error.html
View file @
e00b7cb2
...
...
@@ -2,7 +2,7 @@
<
%
block
name=
"bodyclass"
>
courseware
</
%
block>
<
%
block
name=
"title"
><title>
Courseware – MITx 6.002x
</title></
%
block>
<
%
include
file=
"navigation.html"
args=
"active_page='courseware'"
/>
<
%
include
file=
"
course_
navigation.html"
args=
"active_page='courseware'"
/>
<section
class=
"main-content"
>
<section
class=
"outside-app"
>
...
...
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