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
0a9ad1a5
Commit
0a9ad1a5
authored
Aug 13, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added settings template.
parent
ff1a0ba2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
2 deletions
+55
-2
lms/templates/wiki/includes/article_menu.html
+2
-2
lms/templates/wiki/settings.html
+53
-0
No files found.
lms/templates/wiki/includes/article_menu.html
View file @
0a9ad1a5
...
...
@@ -16,14 +16,14 @@
%if not user.is_anonymous():
<li
class=
"pull-right${"
active
"
if
selected =
=
"
settings
"
else
""}"
>
%if not user.is_anonymous:
<a
href=
"${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-wrench"
></span>
Settings
</a>
%endif
</li>
%endif
<li
class=
"pull-right${"
active
"
if
selected =
=
"
history
"
else
""}"
>
<a
href=
"${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-time"
></span>
...
...
lms/templates/wiki/settings.html
0 → 100644
View file @
0a9ad1a5
## mako
<
%
inherit
file=
"mako_base.html"
/>
<
%!
from
wiki
.
templatetags
.
wiki_tags
import
wiki_form
from
mitxmako
.
templatetag_helpers
import
render_inclusion
%
>
<
%
namespace
name=
"article_menu"
file=
"includes/article_menu.html"
/>
<
%
namespace
name=
"breadcrumbs"
file=
"includes/breadcrumbs.html"
/>
<
%
block
name=
"title"
><title>
Settings: ${article.current_revision.title}
</title></
%
block>
<
%
block
name=
"wiki_breadcrumbs"
>
${breadcrumbs.body(article, urlpath)}
</
%
block>
<
%
block
name=
"wiki_contents"
>
<div
class=
"tabbable tabs-top"
style=
"margin-top: 20px;"
>
<ul
class=
"nav nav-tabs"
>
<li
style=
"float: left"
>
<h1
style=
"margin-top: -10px;"
>
${article.current_revision.title}
</h1>
</li>
${article_menu.body('settings', article, plugins)}
</ul>
<div
class=
"tab-content"
>
%for form in forms:
<form
method=
"POST"
class=
"form-horizontal"
id=
"settings_form"
action=
"?f=${form.action}"
>
<h2>
${form.settings_form_headline}
</h2>
<div
class=
"well"
>
${ render_inclusion(wiki_form, 'wiki/includes/form.html', True, django_context, form ) }
</div>
<div
class=
"form-actions"
>
<button
type=
"submit"
name=
"save"
value=
"1"
class=
"btn btn-large btn-primary"
>
<span
class=
"icon-ok"
></span>
Save changes
</button>
</div>
</form>
%endfor
</div>
</div>
<div
class=
"tabbable tabs-below"
style=
"margin-top: 20px;"
>
<ul
class=
"nav nav-tabs"
>
${article_menu.body('settings', article, plugins)}
<li
style=
"margin-top: 10px;"
><em>
Article last modified: ${ article.current_revision.modified }
</em></li>
</ul>
</div>
</
%
block>
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