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
1e5d7bd3
Commit
1e5d7bd3
authored
Dec 10, 2013
by
Giulio Gratta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding unauthenticated use footer
parent
3a4a1e94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletions
+28
-1
lms/static/sass/course/courseware/_courseware.scss
+17
-0
lms/templates/courseware/courseware.html
+11
-1
No files found.
lms/static/sass/course/courseware/_courseware.scss
View file @
1e5d7bd3
...
@@ -272,3 +272,20 @@ section.foldit {
...
@@ -272,3 +272,20 @@ section.foldit {
}
}
}
}
section
.unauth-tos
{
position
:
relative
;
margin
:
30px
auto
0
auto
;
background-color
:
$black
;
color
:
$white
;
border-radius
:
5px
;
padding
:
15px
;
font-weight
:
bold
;
text-align
:
center
;
}
section
.unauth-tos
a
{
padding
:
5px
;
background-color
:
$white
;
border-radius
:
5px
;
font-weight
:
bold
;
}
lms/templates/courseware/courseware.html
View file @
1e5d7bd3
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
student
.
models
import
UserProfile
%
>
<
%
inherit
file=
"/main.html"
/>
<
%
inherit
file=
"/main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"bodyclass"
>
courseware ${course.css_class}
</
%
block>
<
%
block
name=
"bodyclass"
>
courseware ${course.css_class}
</
%
block>
...
@@ -188,6 +192,12 @@ ${fragment.foot_html()}
...
@@ -188,6 +192,12 @@ ${fragment.foot_html()}
${fragment.body_html()}
${fragment.body_html()}
</section>
</section>
</div>
</div>
% if course and user.is_authenticated() and not UserProfile.has_registered(user):
<section
class=
"unauth-tos"
>
${_("By exploring and using these course materials, you are implicitly agreeing to our")}
<a
href=
"${marketing_link('TOS')}"
>
${_("Terms of Service and Honor Code")}
</a>
.
</section>
% endif
</section>
</section>
% if course.show_calculator:
% if course.show_calculator:
...
...
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