Loading opds_catalog/__pycache__/feeds.cpython-35.pyc +140 B (40.2 KiB) File changed.No diff preview for this file type. View original file View changed file opds_catalog/feeds.py +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ from opds_catalog import models from opds_catalog import settings from django.http.response import Http404 lang_codes = {1:_('Cyrillic'), 2:_('Latin'), 3:_('Digits'), 9:_('Other symbols'), 0:_('Show all')} class AuthFeed(Feed): request = None def __call__(self,request,*args,**kwargs): Loading Loading @@ -718,6 +720,7 @@ class LangFeed(AuthFeed): } def items(self): # TODO: переделать, используя словарь lang_codes langitems = [ {"id":1, "title":_("Cyrillic")}, {"id":2, "title":_("Latin")}, Loading sopds_web_backend/__pycache__/views.cpython-35.pyc −344 B (11.2 KiB) File changed.No diff preview for this file type. View original file View changed file sopds_web_backend/templates/sopds_menu.html +13 −21 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ <div id="main_menu"> <ul class="menu sopdsmenu" style="font-size:100%;"> {# vertical medium-horizontal menu #} <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="{% url "web:book" %}">Books</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="{% url "web:book" %}?lang=0">Books</a></li> <li {% if current == "author" %} class="active" {% endif %}><a href="#">Authors</a></li> <li {% if current == "genre" %} class="active" {% endif %}><a href="#">Genres</a></li> <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a></li> Loading @@ -14,38 +14,30 @@ <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="#">Books</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "author" %} class="active" {% endif %}><a href="#">Authors</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "genre" %} class="active" {% endif %}><a href="#">Genres</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> </ul> Loading sopds_web_backend/templates/sopds_selectbook.html 0 → 100644 +21 −0 Original line number Diff line number Diff line {% extends "sopds_main.html" %} {% load staticfiles %} {% block body %} <table> {% for chars in items %} <tr> <td> {% if chars.cnt >= splititems %} <a href="{% url "web:book" %}?lang={{lang_code}}&chars={{chars.id}}">{{ chars.id }}</a> {% else %} <a href="{% url "web:searchbooks" %}?searchtype=b&searchterms={{chars.id}}">{{ chars.id }}</a> {% endif %} <span style="font-size:80%">Total: {{ chars.cnt }} books.</span> </td> </tr> {% endfor %} </table> {% endblock %} {# body #} No newline at end of file Loading
opds_catalog/__pycache__/feeds.cpython-35.pyc +140 B (40.2 KiB) File changed.No diff preview for this file type. View original file View changed file
opds_catalog/feeds.py +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ from opds_catalog import models from opds_catalog import settings from django.http.response import Http404 lang_codes = {1:_('Cyrillic'), 2:_('Latin'), 3:_('Digits'), 9:_('Other symbols'), 0:_('Show all')} class AuthFeed(Feed): request = None def __call__(self,request,*args,**kwargs): Loading Loading @@ -718,6 +720,7 @@ class LangFeed(AuthFeed): } def items(self): # TODO: переделать, используя словарь lang_codes langitems = [ {"id":1, "title":_("Cyrillic")}, {"id":2, "title":_("Latin")}, Loading
sopds_web_backend/__pycache__/views.cpython-35.pyc −344 B (11.2 KiB) File changed.No diff preview for this file type. View original file View changed file
sopds_web_backend/templates/sopds_menu.html +13 −21 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ <div id="main_menu"> <ul class="menu sopdsmenu" style="font-size:100%;"> {# vertical medium-horizontal menu #} <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="{% url "web:book" %}">Books</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="{% url "web:book" %}?lang=0">Books</a></li> <li {% if current == "author" %} class="active" {% endif %}><a href="#">Authors</a></li> <li {% if current == "genre" %} class="active" {% endif %}><a href="#">Genres</a></li> <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a></li> Loading @@ -14,38 +14,30 @@ <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> <li {% if current == "book" %} class="active" {% endif %}><a href="#">Books</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "author" %} class="active" {% endif %}><a href="#">Authors</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "genre" %} class="active" {% endif %}><a href="#">Genres</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a> <ul class="vertical menu sopdsmenu"> <li><a href="#">Cyrillic</a></li> <li><a href="#">Latin</a></li> <li><a href="#">Digits</a></li> <li><a href="#">Other symbols</a></li> <li><a href="#">Show all</a></li> {% for key, value in lang_codes.items %} <li><a href="{% url "web:book" %}?lang={{ key }}">{{ value }}</a></li> {% endfor %} </ul> </li> </ul> Loading
sopds_web_backend/templates/sopds_selectbook.html 0 → 100644 +21 −0 Original line number Diff line number Diff line {% extends "sopds_main.html" %} {% load staticfiles %} {% block body %} <table> {% for chars in items %} <tr> <td> {% if chars.cnt >= splititems %} <a href="{% url "web:book" %}?lang={{lang_code}}&chars={{chars.id}}">{{ chars.id }}</a> {% else %} <a href="{% url "web:searchbooks" %}?searchtype=b&searchterms={{chars.id}}">{{ chars.id }}</a> {% endif %} <span style="font-size:80%">Total: {{ chars.cnt }} books.</span> </td> </tr> {% endfor %} </table> {% endblock %} {# body #} No newline at end of file