fix chapter handling
authorStefan Kögl <stefan@skoegl.net>
Thu, 19 Sep 2013 18:00:45 +0000 (19 20:00 +0200)
committerStefan Kögl <stefan@skoegl.net>
Thu, 19 Sep 2013 18:13:56 +0000 (19 20:13 +0200)
mygpo/web/templates/episode.html
mygpo/web/urls.py

index da6f7cd..fd2bd92 100644 (file)
      <tr {% if chapter.is_own %}class="own-chapter"{% endif %} >
       <td>{{ chapter.start|sec_to_time|time:"H:i:s" }}{% if chapter.start != chapter.end %} - {{ chapter.end|sec_to_time|time:"H:i:s" }}{% endif %}</td>
       <td>{% if chapter.advertisement %}Yes{% endif %}</td>
-      <td>{{ chapter.label }}</strong>
+      <td><strong>{{ chapter.label }}</strong></td>
       <td>
        {% if chapter.is_own %}
-        <a href="{% episode_link_target episode "remove-chapter" chapter.start chapter.end %}">
+        <a href="{% episode_link_target episode podcast "remove-chapter" chapter.start chapter.end %}">
          <img src="{% static "unsubscribe.png" %}" alt="{% trans "Remove" %}" />
         </a>
        {% endif %}
index acd9233..11e4b5c 100644 (file)
@@ -84,7 +84,7 @@ urlpatterns += patterns('mygpo.web.views.episode',
  url(r'^podcast/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)$',                'show_slug_id',            name='episode-slug-id'),
  url(r'^episode/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)/add-chapter$',    'add_chapter_slug_id',     name='add-chapter-slug-id'),
  url(r'^episode/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)/remove-chapter/(?P<start>\d+)-(?P<end>\d+)$',
-                                                                              'remove_chapter',          name='remove-chapter'),
+                                                                              'remove_chapter_slug_id',  name='remove-chapter-slug-id'),
  url(r'^episode/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)/toggle-favorite', 'toggle_favorite_slug_id', name='episode-fav-slug-id'),
  url(r'^episode/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)/add-action',      'add_action_slug_id',      name='add-episode-action-slug-id'),
  url(r'^podcast/(?P<p_slug_id>[\w-]+)/(?P<e_slug_id>[\w-]+)/-flattr',         'flattr_episode_slug_id',  name='flattr-episode-slug-id'),