Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
9cd69e6c
Commit
9cd69e6c
authored
12 years ago
by
Bridger Maxwell
Browse files
Options
Downloads
Patches
Plain Diff
Added ability for staff users to moderate an article.
parent
a694d103
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lms/envs/common.py
+4
-1
4 additions, 1 deletion
lms/envs/common.py
lms/templates/wiki/includes/article_menu.html
+8
-4
8 additions, 4 deletions
lms/templates/wiki/includes/article_menu.html
repo-requirements.txt
+1
-1
1 addition, 1 deletion
repo-requirements.txt
with
13 additions
and
6 deletions
lms/envs/common.py
+
4
−
1
View file @
9cd69e6c
...
...
@@ -318,7 +318,10 @@ WIKI_ACCOUNT_HANDLING = False
WIKI_EDITOR
=
'
course_wiki.editors.CodeMirror
'
WIKI_SHOW_MAX_CHILDREN
=
0
# We don't use the little menu that shows children of an article in the breadcrumb
WIKI_ANONYMOUS
=
False
# Don't allow anonymous access until the styling is figured out
WIKI_CAN_CHANGE_PERMISSIONS
=
lambda
article
,
user
:
user
.
has_perm
(
'
wiki.assign
'
)
WIKI_CAN_CHANGE_PERMISSIONS
=
lambda
article
,
user
:
user
.
is_staff
or
user
.
is_superuser
WIKI_CAN_ASSIGN
=
lambda
article
,
user
:
user
.
is_staff
or
user
.
is_superuser
WIKI_USE_BOOTSTRAP_SELECT_WIDGET
=
False
################################# Jasmine ###################################
JASMINE_TEST_DIRECTORY
=
PROJECT_ROOT
+
'
/static/coffee
'
...
...
This diff is collapsed.
Click to expand it.
lms/templates/wiki/includes/article_menu.html
+
8
−
4
View file @
9cd69e6c
## mako
<
%!
from
django.core.urlresolvers
import
reverse
%
>
<
%!
from
django.core.urlresolvers
import
reverse
from
wiki.core.permissions
import
can_change_permissions
%
>
<li
class=
"${"
active
"
if
selected_tab =
=
"
view
"
else
""}"
>
<a
href=
"${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
...
...
@@ -37,9 +40,10 @@
<
%
doc
>
The settings link has been disabled because the notifications app hasn't been integrated yet and those are the only useful settings.
This should be enabled for all non-anonymous users once the notifications app has been integrated and styled.
</
%
doc>
%if
not us
er
.
is
_anonymous(
):
%if
can_change_p
er
m
is
sions(article,user
):
<li
class=
"${"
active
"
if
selected_tab =
=
"
settings
"
else
""}"
>
<a
href=
"${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-settings icon"
></span>
...
...
@@ -47,6 +51,6 @@ The settings link has been disabled because the notifications app hasn't been in
</a>
</li>
%endif
</
%
doc>
This diff is collapsed.
Click to expand it.
repo-requirements.txt
+
1
−
1
View file @
9cd69e6c
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles
-e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
-e git://github.com/benjaoming/django-wiki.git@
3576a2d
#egg=django-wiki
-e git://github.com/benjaoming/django-wiki.git@
50c08a3
#egg=django-wiki
-e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev
-e common/lib/capa
-e common/lib/xmodule
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment