Introduce src dir.
[librarian.git] / src / librarian / sponsor.py
diff --git a/src/librarian/sponsor.py b/src/librarian/sponsor.py
new file mode 100644 (file)
index 0000000..1374cda
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from __future__ import unicode_literals
+
+from librarian import get_resource
+
+
+def sponsor_logo(name):
+    return {
+        'Narodowe Centrum Kultury': get_resource('res/sponsors/nck.png')
+    }.get(name.strip())