Revision 59ab14be
b/cloudcms/forms.py | ||
---|---|---|
203 | 203 |
|
204 | 204 |
|
205 | 205 |
except Exception, e: |
206 |
print e |
|
206 | 207 |
logger.exception("RST import failed") |
207 | 208 |
logger.removeHandler(stream_handler) |
208 | 209 |
logger.setLevel(old_level) |
b/cloudcms/static/cloudcms/css/modules.css | ||
---|---|---|
1 | 1 |
body { overflow-y: scroll;} |
2 |
|
|
2 | 3 |
.wrapper { margin:0 auto; position:relative; width:820px; padding:36px 70px; } |
3 | 4 |
.container .wrapper, |
4 | 5 |
.footer .wrapper { border: 1px solid #808080; border-top:0 none;} |
... | ... | |
260 | 261 |
.details ul li a, |
261 | 262 |
.details ul li a:hover, |
262 | 263 |
.question .content a:hover { color:#F6921E } |
263 |
.details .extra-menu { border-top: 1px dashed #000; padding-top:20px; margin-top:20px; } |
|
264 |
.details .extra-menu { background: url(../images/dots.jpg) repeat-x center top ;padding-top:20px; margin-top:20px; } |
|
265 |
.details .faq-category h2 { font-size:1em; } |
|
264 | 266 |
.question .next-prev { margin:10px 0; } |
265 |
.question .next { float:right; } |
|
267 |
.question .next { float:right; } |
|
268 |
.details img { max-width:100%; } |
|
269 |
.question .section { margin-top:1em; } |
|
270 |
.question pre { border:1px dashed #000; padding:5px; } |
b/cloudcmsfaq/templates/cloudcmsfaq/archive.html | ||
---|---|---|
3 | 3 |
<div class="faq"> |
4 | 4 |
|
5 | 5 |
{% for service in services %} |
6 |
|
|
7 |
<div class="two-cols clearfix unequal-dotted"> |
|
8 |
<div class="rt"> |
|
9 |
<img src="{{ service.image_faq.get_absolute_url }}" alt="{{ service.image_faq.title }}" /> |
|
10 |
</div> |
|
11 |
<div class="lt"> |
|
12 |
<div class="faq-category {{ service.class_name }}"> |
|
13 |
<h2>{{ service.translation.title_faq|upper }}</h2> |
|
14 |
{% for category, questions in service|get_service_faqs %} |
|
15 |
<h3>{{ category.translation.title }}</h3> |
|
16 |
<ul> |
|
17 |
{% for q in questions %} |
|
18 |
<li {% if q == question %}class="current"{% endif %}> |
|
19 |
<a href="{{ q.get_absolute_url }}">{{ q.title }}</a> |
|
20 |
</li> |
|
21 |
{% endfor %} |
|
22 |
<br /> |
|
23 |
</ul> |
|
24 |
{% endfor %} |
|
25 |
</div> |
|
26 |
</div> |
|
27 |
|
|
28 |
|
|
29 |
</div> |
|
30 |
|
|
6 |
{% if service.get_first_question %} |
|
7 |
<div class="two-cols clearfix unequal-dotted">
|
|
8 |
<div class="rt">
|
|
9 |
<img src="{{ service.image_faq.get_absolute_url }}" alt="{{ service.image_faq.title }}" />
|
|
10 |
</div>
|
|
11 |
<div class="lt">
|
|
12 |
<div class="faq-category {{ service.class_name }}">
|
|
13 |
<h2>{{ service.translation.title_faq|upper }}</h2>
|
|
14 |
{% for category, questions in service|get_service_faqs %}
|
|
15 |
<h3>{{ category.translation.title }}</h3>
|
|
16 |
<ul>
|
|
17 |
{% for q in questions %}
|
|
18 |
<li {% if q == question %}class="current"{% endif %}>
|
|
19 |
<a href="{{ q.get_absolute_url }}">{{ q.title }}</a>
|
|
20 |
</li>
|
|
21 |
{% endfor %}
|
|
22 |
<br />
|
|
23 |
</ul>
|
|
24 |
{% endfor %}
|
|
25 |
</div>
|
|
26 |
</div>
|
|
27 |
|
|
28 |
|
|
29 |
</div>
|
|
30 |
{% endif %} |
|
31 | 31 |
{% endfor %} |
32 | 32 |
</div> |
b/cloudcmsfaq/templates/cloudcmsfaq/detail.html | ||
---|---|---|
22 | 22 |
</div> |
23 | 23 |
</div> |
24 | 24 |
|
25 |
<div class="extra-menu"> |
|
25 |
<!--div class="extra-menu">
|
|
26 | 26 |
{% for service in services %} |
27 | 27 |
{% if service == question.service %} |
28 | 28 |
<div class="faq-category {{ service.class_name }}"> |
... | ... | |
42 | 42 |
</div> |
43 | 43 |
{% endif %} |
44 | 44 |
{% endfor %} |
45 |
</div> |
|
45 |
</div-->
|
|
46 | 46 |
</div> |
47 | 47 |
|
48 | 48 |
<div class="lt"> |
b/cloudcmsguide/templates/cloudcmsguide/archive.html | ||
---|---|---|
3 | 3 |
<div class="faq"> |
4 | 4 |
|
5 | 5 |
{% for service in services %} |
6 |
|
|
6 |
{% if service.get_first_entry %} |
|
7 | 7 |
<div class="two-cols clearfix unequal-dotted"> |
8 | 8 |
<div class="rt"> |
9 | 9 |
<img src="{{ service.image_userguide.get_absolute_url }}" alt="{{ service.image_userguide.title }}" /> |
... | ... | |
23 | 23 |
|
24 | 24 |
|
25 | 25 |
</div> |
26 |
|
|
26 |
{% endif %} |
|
27 | 27 |
{% endfor %} |
28 | 28 |
</div> |
b/cloudcmsguide/templates/cloudcmsguide/detail.html | ||
---|---|---|
58 | 58 |
{% endif %} |
59 | 59 |
</h2> |
60 | 60 |
|
61 |
{% for category, questions in service|get_service_faqs %} |
|
62 |
|
|
63 |
{% if service == question.service %} |
|
64 |
<h3>{{ category.translation.title }}</h3> |
|
65 |
<ul> |
|
66 |
{% for q in questions %} |
|
67 |
<li> |
|
68 |
{% if q != question %}<a href="{{ q.get_absolute_url }}">{% endif %}{{ q.title }}{% if q != question %}</a>{% endif %} |
|
69 |
</li> |
|
70 |
{% endfor %} |
|
71 |
<br /> |
|
72 |
</ul> |
|
73 |
{% endif %} |
|
74 |
{% endfor %} |
|
61 |
{% if service == entry.service %} |
|
62 |
<ul> |
|
63 |
{% for e in service.userguideentries.active %} |
|
64 |
<li>{% if e != entry %}<a href="{{ e.get_absolute_url }}">{% endif %}{{ e.title }}{% if e != entry %}</a>{% endif %}</li> |
|
65 |
{% endfor %} |
|
66 |
</ul> |
|
67 |
{% endif %} |
|
68 |
|
|
75 | 69 |
</div> |
76 | 70 |
{% endfor %} |
77 | 71 |
</div> |
Also available in: Unified diff