first cut of UI
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -28,4 +28,5 @@ nosetests.xml
|
||||
cover_html/
|
||||
.idea/
|
||||
.redcar/
|
||||
chromedriver.log
|
||||
chromedriver.log
|
||||
/nbproject
|
||||
|
||||
@@ -210,6 +210,9 @@ def forum_form_discussion(request, course_id):
|
||||
|
||||
user_cohort_id = get_cohort_id(request.user, course_id)
|
||||
|
||||
|
||||
|
||||
|
||||
context = {
|
||||
'csrf': csrf(request)['csrf_token'],
|
||||
'course': course,
|
||||
|
||||
BIN
lms/static/images/__MACOSX/._pinned.png
Normal file
BIN
lms/static/images/__MACOSX/._pinned.png
Normal file
Binary file not shown.
BIN
lms/static/images/__MACOSX/._unpinned.png
Normal file
BIN
lms/static/images/__MACOSX/._unpinned.png
Normal file
Binary file not shown.
BIN
lms/static/images/pinned.png
Normal file
BIN
lms/static/images/pinned.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 518 B |
BIN
lms/static/images/unpinned.png
Normal file
BIN
lms/static/images/unpinned.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 498 B |
@@ -2442,4 +2442,39 @@ body.discussion {
|
||||
color:#000;
|
||||
font-style: italic;
|
||||
background-color:#fff;
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-flag-abuse {
|
||||
font-size: 12px;
|
||||
float:right;
|
||||
padding-right: 5px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.notpinned .icon
|
||||
{
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 14px;
|
||||
padding-right: 3px;
|
||||
background: transparent url('../images/notpinned.png') no-repeat 0 0;
|
||||
}
|
||||
|
||||
.pinned .icon
|
||||
{
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 14px;
|
||||
padding-right: 3px;
|
||||
background: transparent url('../images/pinned.png') no-repeat 0 0;
|
||||
}
|
||||
|
||||
.pinned span {
|
||||
color: #B82066;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.notpinned span {
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -45,6 +45,11 @@
|
||||
</header>
|
||||
|
||||
<div class="post-body">${'<%- body %>'}</div>
|
||||
|
||||
% if has_permission(user, 'create_comment', course.id):
|
||||
<div class="discussion-flag-pin notpinned" data-role="thread-pin" data-tooltip="pin this thread">
|
||||
<i class="icon"></i><span class="pin-label">Pin Thread</span></div>
|
||||
% endif
|
||||
${'<% if (obj.courseware_url) { %>'}
|
||||
<div class="post-context">
|
||||
(this post is about <a href="${'<%- courseware_url%>'}">${'<%- courseware_title %>'}</a>)
|
||||
|
||||
Reference in New Issue
Block a user