Mark as disabled articles not yet finished in the summary

This commit is contained in:
Samy Pessé
2014-03-31 23:02:43 -07:00
parent eed1dfb243
commit d36dfee40b
3 changed files with 15 additions and 2 deletions
File diff suppressed because one or more lines are too long
+6 -1
View File
@@ -46,7 +46,7 @@
}
}
a {
a, span {
display: block;
height: 40px;
padding: 11px 15px;
@@ -60,6 +60,11 @@
padding-left: 26px;
}
span {
cursor: not-allowed;
.opacity(0.3);
}
&.active > a, a:hover {
background: #242628;
text-decoration: none;
+8
View File
@@ -12,16 +12,24 @@
</li>
{% for item in summary.chapters %}
<li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}">
{% if item.path %}
<a href="{{ basePath }}/{{ item.path }}">
<i class="fa fa-check"></i> <b>{{ item.level }})</b> {{ item.title }}
</a>
{% else %}
<span><b>{{ item.level }})</b> {{ item.title }}</span>
{% endif %}
{% if item.articles.length > 0 %}
<ul class="articles">
{% for article in item.articles %}
<li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}">
{% if article.path %}
<a href="{{ basePath }}/{{ article.path }}">
<i class="fa fa-check"></i> <b>{{ article.level }})</b> {{ article.title }}
</a>
{% else %}
<span><b>{{ article.level }})</b> {{ article.title }}</span>
{% endif %}
</li>
{% endfor %}
</ul>