From c2a4268f7098a7d72d939ef4b370e2e19e7b8413 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sat, 17 Nov 2012 18:04:35 +0100 Subject: [PATCH] redesign podcast, episode subtitle line --- htdocs/media/screen.css | 8 ++++++ mygpo/publisher/templates/publisher/episode.html | 28 +++++++++++++++----- mygpo/publisher/templates/publisher/episodes.html | 2 +- mygpo/publisher/templates/publisher/podcast.html | 23 +++++++++++++---- mygpo/web/templates/episode.html | 21 +++++++++------ mygpo/web/templates/podcast.html | 31 ++++++++++++++++------- 6 files changed, 83 insertions(+), 30 deletions(-) diff --git a/htdocs/media/screen.css b/htdocs/media/screen.css index cd740fdf..fe177b13 100644 --- a/htdocs/media/screen.css +++ b/htdocs/media/screen.css @@ -28,6 +28,8 @@ h1 font-size: 16pt; font-family: 'Source Sans Pro', sans-serif; font-weight: 700; + margin-bottom: 0; + line-height: 25px; } h2 @@ -196,6 +198,12 @@ table form color: #666; } + +div.description +{ + margin-top: 1em; +} + /* don't show images in the description of the podcast page */ .first-episode img { diff --git a/mygpo/publisher/templates/publisher/episode.html b/mygpo/publisher/templates/publisher/episode.html index f7749a8f..4bef3f07 100644 --- a/mygpo/publisher/templates/publisher/episode.html +++ b/mygpo/publisher/templates/publisher/episode.html @@ -28,16 +28,30 @@ {% endif %} -

{% trans "Publisher Pages:" %} {% if episode.title %}{{ episode.title|striptags }}{% else %}{% trans "Unnamed Episode" %}{%endif%}

+

{% if episode.title %}{{ episode.title|striptags }}{% else %}{% trans "Unnamed Episode" %}{%endif%} {% trans "Publisher Pages" %}

- {% trans "from" %} {% podcast_group_link podcast %}{% if episode.timestamp %}, {% trans "released" %} {{episode.timestamp}}{% endif %}, - {% trans "links" %}: - {% trans "download" %}{% if episode.link and episode.link != episode.url %}, {% trans "website" %} - {% endif %}, - {% trans "stats:" %} {% blocktrans with episode.listener_count as listener_count %}{{listener_count}} listeners{% endblocktrans %} + {% trans "from" %} {% podcast_group_link podcast %}· + {% if not episode.outdated or "hide-outdated-urls" not in podcast.restrictions %} + + + + {% endif %} + {% if episode.link and episode.link != episode.url %}· + + + + {% endif %} + {% if episode.listeners %}· + {{ episode.listeners }} {% trans "listeners" %} + {% endif %} -

{% trans "Return to the episode list" %}

+

+

+

{% endblock %} diff --git a/mygpo/publisher/templates/publisher/episodes.html b/mygpo/publisher/templates/publisher/episodes.html index 9e193096..d16742e7 100644 --- a/mygpo/publisher/templates/publisher/episodes.html +++ b/mygpo/publisher/templates/publisher/episodes.html @@ -20,7 +20,7 @@ {% endif %} -

{% trans "Publisher Pages:" %} {% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans "Unnamed Podcast" %}{%endif%}

+

{% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans "Unnamed Podcast" %}{%endif%} {% trans "Publisher Pages" %}

{% trans "Return to Podcast Page" %}

{% endblock %} diff --git a/mygpo/publisher/templates/publisher/podcast.html b/mygpo/publisher/templates/publisher/podcast.html index 97f6deeb..1f6dcfff 100644 --- a/mygpo/publisher/templates/publisher/podcast.html +++ b/mygpo/publisher/templates/publisher/podcast.html @@ -22,12 +22,25 @@ {% endif %} -

{% trans "Publisher Pages:" %} {% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans "Unnamed Podcast" %}{%endif%}

+

{% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans "Unnamed Podcast" %}{%endif%} {% trans "Publisher Pages" %}

- {% trans "links" %}: - {% trans "feed" %}{% if podcast.link %}, {% trans "website" %} - {% endif %}, - {% trans "stats:" %} {% blocktrans with podcast.subscriber_count as subscriber_count and podcast.listener_count as listener_count %}{{subscriber_count}} subscribers, {{listener_count}} listeners{% endblocktrans %} + {% if podcast.author %}{% trans "by" %} + {{ podcast.author|striptags }} + {% endif %} + {% if podcast.twitter %} + + {% endif %}· + + + + {% if podcast.link %}· + + + + {% endif %} + {% if podcast.subscriber_count %}· + {{ podcast.subscriber_count }} {% trans "subscribers" %} + {% endif %} {% endblock %} diff --git a/mygpo/web/templates/episode.html b/mygpo/web/templates/episode.html index 3f8f46c1..a9b4a21f 100644 --- a/mygpo/web/templates/episode.html +++ b/mygpo/web/templates/episode.html @@ -47,15 +47,20 @@ {{ episode.released|naturalday }} - {% trans "from" %} {% podcast_group_link podcast %}, - {% trans "links" %}: + {% trans "from" %} {% podcast_group_link podcast %}· {% if not episode.outdated or "hide-outdated-urls" not in podcast.restrictions %} - {% trans "download" %} + + + {% endif %} - {% if episode.link and episode.link != episode.url %} - {% trans "website" %} - {% endif %}, - {% trans "stats:" %} {% blocktrans with episode.listener_count as listener_count %}{{listener_count}} listeners{% endblocktrans %} + {% if episode.link and episode.link != episode.url %}· + + + + {% endif %} + {% if episode.listeners %}· + {{ episode.listeners }} {% trans "listeners" %} + {% endif %} {% endblock %} @@ -116,7 +121,7 @@ {% endif %}
  • - {% trans "Episode-List" %} + {% trans "..." %}
  • {% if next %}
  • diff --git a/mygpo/web/templates/podcast.html b/mygpo/web/templates/podcast.html index de535836..5ed15ea1 100755 --- a/mygpo/web/templates/podcast.html +++ b/mygpo/web/templates/podcast.html @@ -42,27 +42,40 @@ - {% trans "links" %}: - - {% trans "feed" %} + {% if podcast.author %}{% trans "by" %} + {{ podcast.author|striptags }} + {% endif %} + {% if podcast.twitter %} + + {% endif %}· + + - {% if podcast.link %}, - {% trans "website" %} - {% endif %}, - {% blocktrans with podcast.subscriber_count as subscriber_count and podcast.listener_count as listener_count %}{{subscriber_count}} subscribers, {{listener_count}} listeners{% endblocktrans %} + {% if podcast.link %}· + + + + {% endif %} + {% if podcast.subscriber_count %}· + {{ podcast.subscriber_count }} {% trans "subscribers" %} + {% endif %} {% if related_podcasts %} {% endif %} {% if podcast.description %} -
    {{ podcast.description|markdown }}
    +
    + {{ podcast.description|markdown }} +
    {% endif %} {% endblock %} -- 2.11.4.GIT