@classmethod
def from_text(cls, text):
"""Tries to return a Competence or a Section."""
- parts = text.rsplit(u'\u2013', 1)
+ parts = re.split(ur'[-\u2013]', text, 1)
if len(parts) == 1:
return Section.objects.get(name__iexact=text.strip())
else:
- return cls.objects.get(name__iexact=parts[1])
+ return cls.objects.get(name__iexact=parts[1].strip())
class Level(models.Model):
group = models.CharField(_('group'), max_length=255)
border-top: 1px solid #c9ccce;
width: 58.75em;
padding: 0.2em 0.625em;
- margin: 2.5em auto 0 auto;
+ margin: 2.5em auto 1em auto;
color: #9a9c9e; }
footer.main p {
font-size: .75em; }
width: 6.25em; }
footer.main .sponsors-column p {
font-size: .75em; }
+ footer.main .footer-extra p {
+ margin-top: 0; }
#search {
font-size: .8em; }
list-style: none; }
.plain li {
margin: 1em 0; }
+
+.flatpage img {
+ border: 0.313em solid #eeeeee;
+ margin: 1.3em; }
border-top: 1px solid #c9ccce;
width: 940 * $px;
padding: .2em 10 * $px;
- margin: 40*$px auto 0 auto;
+ margin: 40*$px auto 1em auto;
color: #9a9c9e;
p {
font-size: .75em;
}
}
+ .footer-extra p {
+ margin-top: 0;
+ }
}
margin: 1em 0;
}
}
+
+.flatpage {
+ img {
+ border: 5*$px solid #eee;
+ margin: 1.3em;
+ }
+}
</div>
{% sponsor_page "footer" %}
<div class="clr"></div>
- {% block footer_extra %}{% endblock %}
+ <div class="footer-extra">{% block footer_extra %}{% endblock %}</div>
</footer>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
{% block title %}{{ flatpage.title }}{% endblock %}
{% block body %}
-<div id="main-bar">
+<div id="main-bar" class="flatpage">
{{ flatpage.content|textile_pl }}
</div>
{% endblock %}