Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
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
OpenEdx
django-wiki
Commits
ea70181c
Commit
ea70181c
authored
Feb 15, 2013
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootstrap typography and remove extra <li>s on article_list
parent
61131d8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
wiki/plugins/macros/templates/wiki/plugins/templatetags/article_list.html
+11
-5
wiki/static/wiki/bootstrap/less/wiki/wiki-bootstrap.less
+4
-0
No files found.
wiki/plugins/macros/templates/wiki/plugins/templatetags/article_list.html
View file @
ea70181c
{% load wiki_macro_tags %}
{% load wiki_macro_tags %}
{% load url from future %}
{% load url from future %}
<li><a
href=
"{% url 'wiki:get' path=parent.path article_id=parent.article.id %}"
>
{{ parent.article.current_revision.title }}
</a>
<li>
{% with parent.children.active as children %}
<a
href=
"{% url 'wiki:get' path=parent.path article_id=parent.article.id %}"
>
{% if parent.level
<
depth
and
children
.
count
%}
{{ parent.article.current_revision.title }}
{% if not parent.article.other_read %}
<i
class=
"icon-lock"
></i>
{% endif %}
</a>
{% if parent.article.other_read %}
{% with parent.children.active as children %}
{% if parent.level
<
depth
and
children
.
count
%}
<
ul
>
<
ul
>
{% for child in parent.children.active %}
{% for child in parent.children.active %}
<li>
{% article_list child depth %}
</li>
{% article_list child depth %}
{% endfor %}
{% endfor %}
</ul>
</ul>
{% endif %}
{% endwith %}
{% endif %}
{% endif %}
{% endwith %}
</li>
</li>
wiki/static/wiki/bootstrap/less/wiki/wiki-bootstrap.less
View file @
ea70181c
...
@@ -138,11 +138,15 @@ h1#article-title {font-size: 2em; margin-top: -5px;}
...
@@ -138,11 +138,15 @@ h1#article-title {font-size: 2em; margin-top: -5px;}
{
{
font-size: @baseFontSize * 1.75;
font-size: @baseFontSize * 1.75;
.page-header;
.page-header;
margin-bottom: 20px;
padding-bottom: 0px;
}
}
.wiki-article h3
.wiki-article h3
{
{
font-size: @baseFontSize * 1.50;
font-size: @baseFontSize * 1.50;
margin: 15px 0 10px;
line-height: 30px;
}
}
.wiki-article h4
.wiki-article h4
...
...
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