From: Radek Czajka Date: Wed, 20 Feb 2013 09:39:08 +0000 (+0100) Subject: random fixes X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/e76acb4ea49713c4390342ccbdf8f3a5a71f8aee?ds=inline random fixes --- diff --git a/curriculum/models.py b/curriculum/models.py index 004e78e..ad98877 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -50,11 +50,11 @@ class Competence(models.Model): @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) diff --git a/edumed/static/css/base.css b/edumed/static/css/base.css index 5cfe862..c59a82d 100644 --- a/edumed/static/css/base.css +++ b/edumed/static/css/base.css @@ -132,7 +132,7 @@ footer.main { 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; } @@ -146,6 +146,8 @@ footer.main { width: 6.25em; } footer.main .sponsors-column p { font-size: .75em; } + footer.main .footer-extra p { + margin-top: 0; } #search { font-size: .8em; } @@ -199,3 +201,7 @@ footer.main { list-style: none; } .plain li { margin: 1em 0; } + +.flatpage img { + border: 0.313em solid #eeeeee; + margin: 1.3em; } diff --git a/edumed/static/css/base.scss b/edumed/static/css/base.scss index 5c38509..c29938d 100644 --- a/edumed/static/css/base.scss +++ b/edumed/static/css/base.scss @@ -140,7 +140,7 @@ footer.main { 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 { @@ -159,6 +159,9 @@ footer.main { font-size: .75em; } } + .footer-extra p { + margin-top: 0; + } } @@ -239,3 +242,10 @@ footer.main { margin: 1em 0; } } + +.flatpage { + img { + border: 5*$px solid #eee; + margin: 1.3em; + } +} diff --git a/edumed/static/img/favicon.png b/edumed/static/img/favicon.png new file mode 100644 index 0000000..61e13ab Binary files /dev/null and b/edumed/static/img/favicon.png differ diff --git a/edumed/templates/base.html b/edumed/templates/base.html index 2121b81..ee7cde7 100644 --- a/edumed/templates/base.html +++ b/edumed/templates/base.html @@ -92,7 +92,7 @@ {% sponsor_page "footer" %}
- {% block footer_extra %}{% endblock %} + diff --git a/edumed/templates/flatpages/default.html b/edumed/templates/flatpages/default.html index f19f3c3..1ab012c 100755 --- a/edumed/templates/flatpages/default.html +++ b/edumed/templates/flatpages/default.html @@ -4,7 +4,7 @@ {% block title %}{{ flatpage.title }}{% endblock %} {% block body %} -
+
{{ flatpage.content|textile_pl }}
{% endblock %}