X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5923c1d5a9adb03043d45cf47684825aaa1e6f93..92c4a21dbc8fa9ff9c8d10127b7afffed5341b23:/wolnelektury/templates/catalogue/main_page.html diff --git a/wolnelektury/templates/catalogue/main_page.html b/wolnelektury/templates/catalogue/main_page.html index c9546e392..94eba6723 100644 --- a/wolnelektury/templates/catalogue/main_page.html +++ b/wolnelektury/templates/catalogue/main_page.html @@ -12,70 +12,122 @@ <p>{{ form.q }} {{ form.tags }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url catalogue.views.book_list %}">zobacz spis utworów</a> w naszym zbiorze</p> </form> - <div id="tags-list"> - <div id="categories-list"> - {% if categories.set %} - <h2>PóÅki</h2> - <ul> - {% for set in categories.set %} - <li><a href="{% catalogue_url set %}">{{ set }} ({{ set.count }})</a></li> + <div id="intro"> + <p id="tags-description">â PrzeglÄ daj lektury wedÅug wybranych kategorii i motywów literackich â</p> + <div id="propaganda"> + <h2>Twoje póÅki z lekturami</h2> + {% if user.is_authenticated %} + {% if shelves %} + <ul class="shelf-list"> + {% for shelf in shelves %} + <li><a href="{% url delete_shelf shelf.slug %}" class="delete-shelf">usuÅ</a> <a href="{{ shelf.get_absolute_url }}" class="visit-shelf">{{ shelf.name }}</a></li> {% endfor %} </ul> - {% endif %} - - {% if categories.author %} - <h2>Autorzy</h2> - <ul> - {% for author in categories.author %} - <li><a href="{% catalogue_url author %}">{{ author }} ({{ author.count }})</a></li> - {% endfor %} - </ul> - {% endif %} - - {% if categories.epoch %} - <h2>Epoki</h2> - <ul> - {% for epoch in categories.epoch %} - <li><a href="{% catalogue_url epoch %}">{{ epoch }} ({{ epoch.count }})</a></li> - {% endfor %} - </ul> - {% endif %} - - {% if categories.kind %} - <h2>Rodzaje</h2> - <ul> - {% for kind in categories.kind %} - <li><a href="{% catalogue_url kind %}">{{ kind }} ({{ kind.count }})</a></li> - {% endfor %} - </ul> - {% endif %} - - {% if categories.genre %} - <h2>Gatunki literackie</h2> - <ul> - {% for genre in categories.genre %} - <li><a href="{% catalogue_url genre %}">{{ genre }} ({{ genre.count }})</a></li> - {% endfor %} - </ul> + {% else %} + <p>Nie posiadasz żadnych póÅek. JeÅli chcesz, możesz utworzyÄ póÅkÄ poniżej.</p> + {% endif %} + <hr /> + <form action="{% url catalogue.views.new_set %}" method="post" accept-charset="utf-8" class="cuteform"> + <ol> + <li>{{ new_set_form.name }} <input type="submit" value="Utwórz póÅkÄ"/></li> + </ol> + </form> + {% else %} + <p>Stwórz wÅasny zestaw lektur. Możesz siÄ nim później podzieliÄ z innymi, przesyÅajÄ c im link do Twojej póÅki.</p> + <p>Aby zarzÄ dzaÄ swoimi póÅkami, musisz siÄ <a class="login-register-link" href="#">zalogowaÄ</a>.</p> {% endif %} </div> - <div id="themes-list"> - {% if categories.theme %} - <h2>Motywy</h2> - <ul> - {% for theme in fragment_tags %} - <li><a href="{% catalogue_url theme %}">{{ theme }} ({{ theme.count }})</a></li> - {% endfor %} - </ul> - {% endif %} + <div id="tags-list"> + <div id="categories-list"> + {% if categories.author %} + <h2>Autorzy</h2> + {% folded_tag_list categories.author %} + {% endif %} + {% if categories.kind %} + <h2>Rodzaje</h2> + {% folded_tag_list categories.kind %} + {% endif %} + {% if categories.genre %} + <h2>Gatunki literackie</h2> + {% folded_tag_list categories.genre %} + {% endif %} + {% if categories.epoch %} + <h2>Epoki</h2> + {% folded_tag_list categories.epoch %} + {% endif %} + </div> + <div id="themes-list"> + {% if fragment_tags %} + <h2>Motywy i tematy</h2> + {% folded_tag_list fragment_tags %} + {% endif %} + <h2>Rodziny motywów</h2> + <div class="shown-tags"> + <ol> + <li>Åwiat w perspektywie etycznej + <span class="subcategories"> + <a href="/katalog/dobro/">Dobro</a>, <a href="/katalog/zlo">ZÅo</a>, + <a href="/katalog/sumienie/">Sumienie</a>, <a href="/katalog/kuszenie/">Kuszenie</a> + </span> + </li> + <li>polityczny obraz Åwiata + <span class="subcategories"> + <a href="/katalog/panstwo/">PaÅstwo</a>, <a href="/katalog/obywatel/">Obywatel</a>, + <a href="/katalog/patriota/">Patriota</a>, <a href="/katalog/ojczyzna/">Ojczyzna</a> + </span> + </li> + <li>przyroda + <span class="subcategories"> + <a href="/katalog/natura/">Natura</a>, <a href="/katalog/zywioly/">Å»ywioÅy</a>, + <a href="/katalog/ogien/">OgieÅ</a>, <a href="/katalog/ziemia/">Ziemia</a> + </span> + </li> + </ol> + <p><a href="#" class="show-all-tags">Zobacz wiÄcej</a></p> + </div> + <div class="all-tags"> + <ol> + <li>Åwiat w perspektywie etycznej + <span class="subcategories"> + <a href="/katalog/dobro/">Dobro</a>, <a href="/katalog/zlo">ZÅo</a>, + <a href="/katalog/sumienie/">Sumienie</a>, <a href="/katalog/kuszenie/">Kuszenie</a> + </span> + </li> + <li>polityczny obraz Åwiata + <span class="subcategories"> + <a href="/katalog/panstwo/">PaÅstwo</a>, <a href="/katalog/obywatel/">Obywatel</a>, + <a href="/katalog/patriota/">Patriota</a>, <a href="/katalog/ojczyzna/">Ojczyzna</a> + </span> + </li> + <li>przyroda + <span class="subcategories"> + <a href="/katalog/natura/">Natura</a>, <a href="/katalog/zywioly/">Å»ywioÅy</a>, + <a href="/katalog/ogien/">OgieÅ</a>, <a href="/katalog/ziemia/">Ziemia</a> + </span> + </li> + </ol> + </div> + </div> + <div class="clearboth"></div> </div> - <div class="clearboth"></div> </div> + <div class="clearboth"></div> - <div id="latest-blog-posts"> - <h2>AktualnoÅci z naszego bloga</h2> - {% cache 1800 latest-blog-posts %} - {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %} - {% endcache %} + <div id="site-info"> + <div id="latest-blog-posts"> + <h2>AktualnoÅci</h2> + {% cache 1800 latest-blog-posts %} + {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %} + {% endcache %} + </div> + <div id="you-can-help"> + <h2>Możesz nam pomóc!</h2> + <p>Utwory wÅÄ czane sukcesywnie do naszej biblioteki staramy siÄ opracowywaÄ jak najdokÅadniej. Jest to możliwe tylko dziÄki wspóÅpracujÄ cym z nami wolontariuszom.</p> + <p>Zapraszamy wszystkie osoby, które chcÄ wspóÅtworzyÄ szkolnÄ bibliotekÄ internetowÄ Wolne Lektury.</p> + </div> + <div id="about-us"> + <h2>O projekcie</h2> + <p>Biblioteka internetowa z lekturami szkolnymi âWolne Lekturyâ (<a href="http://wolnelektury.pl">www.wolnelektury.pl</a>) to projekt realizowany przez FundacjÄ Nowoczesna Polska. DziaÅa od 2007 roku i udostÄpnia w swoich zbiorach lektury szkolne, które sÄ zalecane do użytku przez Ministerstwo Edukacji Narodowej i które trafiÅy już do domeny publicznej.</p> + </div> </div> {% endblock %}