remove gazeta links - lektury.gazeta.pl is dead
authorJan Szejko <janek37@gmail.com>
Thu, 22 Feb 2018 10:12:24 +0000 (11:12 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 22 Feb 2018 10:12:24 +0000 (11:12 +0100)
src/catalogue/admin.py
src/catalogue/management/commands/report_dead_links.py
src/catalogue/templates/catalogue/book_detail.html
src/catalogue/templates/catalogue/picture_detail.html
src/catalogue/templates/catalogue/tagged_object_list.html
src/pdcounter/templates/pdcounter/author_detail.html

index 51305e2..76d32dc 100644 (file)
@@ -37,7 +37,7 @@ class BookAdmin(TaggableModelAdmin):
     def change_view(self, request, object_id, extra_context=None):
         if 'advanced' not in request.GET:
             self.form = forms.ModelForm
-            self.fields = ('title', 'description', 'gazeta_link', 'wiki_link', 'recommended')
+            self.fields = ('title', 'description', 'wiki_link', 'recommended')
             self.readonly_fields = ('title',)
         else:
             self.form = TaggableModelForm
index 508880e..1eb7312 100644 (file)
@@ -23,7 +23,6 @@ class Command(BaseCommand):
             (
                 Book,
                 [
-                    ('gazeta_link', lambda b: b.gazeta_link),
                     ('wiki_link', lambda b: b.wiki_link),
                     ('źródło', lambda b: b.extra_info.get('source_url')),
                 ],
@@ -32,7 +31,6 @@ class Command(BaseCommand):
             (
                 Picture,
                 [
-                    ('gazeta_link', lambda p: p.culturepl_link),
                     ('wiki_link', lambda p: p.wiki_link),
                     ('źródło', lambda p: p.extra_info.get('source_url')),
                 ],
index 4f590ce..e3f4d73 100644 (file)
       {% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a>
     </div>
   {% endif %}
-  {% if book.gazeta_link %}
-    <div class="white-box">
-      <a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a>
-    </div>
-  {% endif %}
   {% if book.wiki_link %}
     <div class="white-box">
       <a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a>
index 5eeea7f..fb864f6 100644 (file)
         {% if picture.info.about and not hide_about %}
           <li><a href="{{ picture.info.about }}">{% trans "Image on the Editor's Platform" %}</a></li>
         {% endif %}
-        {% comment %}
-        {% if book.gazeta_link %}
-          <li><a href="{{ book.gazeta_link }}">{% trans "Picture description on Lektury.Gazeta.pl" %}</a></li>
-        {% endif %}
-        {% if book.wiki_link %}
-          <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
-        {% endif %}
-        {% endcomment %}
       </ul>
       <p><a href="{{ picture.xml_file.url }}">{% trans "View XML source" %}</a></p>
     </div>
index f83c7d5..f4ba699 100644 (file)
         {% endif %}
       </div>
 
-      {% if tag.gazeta_link %}
-        <div class="white-box"><a href="{{ tag.gazeta_link }}">
-          {{ tag }} {% trans "in Lektury.Gazeta.pl" %}
-        </a></div>
-      {% endif %}
       {% if tag.wiki_link %}
         <div class="white-box">
         <a href="{{ tag.wiki_link }}">
index 35d27e7..2c346ba 100644 (file)
         <div class="clearboth"></div>
         <div id="toggle-description"><p></p></div>
       {% endif %}
-      {% if author.gazeta_link %}
-        <p>
-          <a href="{{ author.gazeta_link }}">
-            {% trans "Read work's study of this author on Lektury.Gazeta.pl" %}
-          </a>
-        </p>
-      {% endif %}
       {% if author.wiki_link %}
         <p>
           <a href="{{ author.wiki_link }}">