From: Jan Szejko Date: Wed, 13 Apr 2016 08:17:15 +0000 (+0200) Subject: Merge branch 'dev' X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0 Merge branch 'dev' Conflicts: src/api/management/commands/mobileinit.py src/catalogue/templates/catalogue/inline_tag_list.html src/catalogue/templates/catalogue/plain_list.html src/catalogue/views.py src/wolnelektury/static/scss/main/book_box.scss src/wolnelektury/static/scss/main/header.scss src/wolnelektury/templates/main_page.html src/wolnelektury/templates/superbase.html --- 9a938c8b406ce05e3bca4a5a483d473ece9e17b0 diff --cc src/api/management/commands/mobileinit.py index ccbff3e21,ed4d624f9..ccf27bc76 --- a/src/api/management/commands/mobileinit.py +++ b/src/api/management/commands/mobileinit.py @@@ -139,16 -138,17 +138,17 @@@ def add_book(db, book) html_file_size = book.html_file.size else: html_file = html_file_size = None - if book.cover: - cover = book.cover.url - else: - cover = None - parent = book.parent_id - parent_number = book.parent_number - sort_key = book.sort_key - size_str = pretty_size(html_file_size) - authors = book.author_unicode() - db.execute(book_sql, locals()) + db.execute(book_sql, { + 'title': book.title, + 'cover': book.cover.url if book.cover else None, + 'html_file': html_file, + 'html_file_size': html_file_size, + 'parent': book.parent_id, + 'parent_number': book.parent_number, + 'sort_key': book.sort_key, + 'size_str': pretty_size(html_file_size), - 'authors': ", ".join(t.name for t in book.tags.filter(category='author')), ++ 'authors': book.author_unicode(), + }) def add_tag(db, tag): diff --cc src/catalogue/templates/catalogue/inline_tag_list.html index f6d59a788,cf53e2d73..802fcb19e --- a/src/catalogue/templates/catalogue/inline_tag_list.html +++ b/src/catalogue/templates/catalogue/inline_tag_list.html @@@ -1,34 -1,29 +1,27 @@@ {% load i18n %} {% load catalogue_tags %} - {% if choices %} - {% if category_choices %} - - {% endif %} - {% if tags %} + + {% if choices %} + {% if category_choices %} - {% endif %} - {% else %} - {% if tags %} -