From db6939a567a6401acc02aad1ccf1815e41905d17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sun, 3 Jun 2012 11:42:34 +0200 Subject: [PATCH] fix some problems with bootstrap --- htdocs/media/screen.css | 6 +- mygpo/web/templates/base.html | 5 +- mygpo/web/templates/podcast.html | 434 +++++++++++++++++---------------- mygpo/web/templates/subscriptions.html | 26 +- 4 files changed, 241 insertions(+), 230 deletions(-) rewrite mygpo/web/templates/podcast.html (60%) diff --git a/htdocs/media/screen.css b/htdocs/media/screen.css index 9afed5c1..8d6d1abc 100644 --- a/htdocs/media/screen.css +++ b/htdocs/media/screen.css @@ -582,6 +582,7 @@ button img, div.button img{ padding-right: 2em; } +/* .podcast-state { clear: both; @@ -605,7 +606,8 @@ button img, div.button img{ margin-bottom: -2000px; padding-bottom: 2000px; } - +*/ +/* .podcast-state > div.tags > div, .podcast-state > div.share > div { @@ -615,6 +617,8 @@ button img, div.button img{ width: 96% !important; } +*/ + .tag-list span.other { color: #888; diff --git a/mygpo/web/templates/base.html b/mygpo/web/templates/base.html index 67a0eda8..554de5ba 100644 --- a/mygpo/web/templates/base.html +++ b/mygpo/web/templates/base.html @@ -108,9 +108,8 @@

Hello, world!

This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.

Learn more »

- + -->
---> {% if messages %} {% for message in messages %} @@ -131,7 +130,7 @@
-
+
    diff --git a/mygpo/web/templates/podcast.html b/mygpo/web/templates/podcast.html dissimilarity index 60% index 09d23f91..62758787 100755 --- a/mygpo/web/templates/podcast.html +++ b/mygpo/web/templates/podcast.html @@ -1,209 +1,225 @@ -{% extends "base.html" %} -{% load i18n %} -{% load humanize %} -{% load episodes %} -{% load podcasts %} -{% load devices %} -{% load charts %} -{% load facebook %} -{% load google %} - -{% load menu %} -{% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %} -{% block sectionmenu %} - {% if podcast.title %} - {{ "/podcast/"|section_menu:podcast.title }} - {% else %} - {{ "/podcast/"|section_menu:"Unnamed Podcast" }} - {% endif %} -{% endblock %} - -{% block head %} - {{ podcast|opengraph_podcast }} - {% google_plus_one_head %} -{% endblock %} - -{% block title %}{{ podcast.title|default:"Unnamed Podcast"|striptags }}{% endblock %} - -{% block content %} - {% if podcast.logo_url %} - - {% endif %} - -

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

    - - {% 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 related_podcasts %} - - {% endif %} - - {% if podcast.description %} -

    {{ podcast.description|striptags }}

    - {% endif %} - - - - -
    - -
    - -

    {% trans "Subscriptions" %}

    - - {% if not user.is_authenticated %} - - {% endif %} - - {% if devices or can_subscribe %} - - {% for device in devices %} - - - - - {% endfor %} - {% if can_subscribe %} - - - {% csrf_token %} - - - - - {% endif %} -
    - {{ device|device_icon }} - {{ device.name|striptags }} - -
    - -
    -
    {{ subscribe_form.as_p }} - -
    - {% endif %} -
    - -
    -

    Tags

    - -
    - {% for tag in tags %}{% spaceless %} - {% if tag.is_own %} - {{ tag.tag }} X - {% else %} - {{ tag.tag }} - {% endif %} - {% if not forloop.last %},{% endif %} - {% endspaceless %} - {% endfor %} - {% if user.is_authenticated %} -
    -
    - -
    - -
    - {% endif %} -
    -
    - -
    -

    {% trans "Share" %}

    -
    - {% google_plus_one_button %} - {{ podcast|fb_like_podcast }} - - {% if user.is_authenticated and devices %} - {% if is_public %} -
    - {% csrf_token %} - -
    - - {% else %} -
    - {% csrf_token %} - -
    - - {% endif %} - {% endif %} -
    -
    - -
    - - - {% if episodes %} - - - - - - - - - {% for episode in episodes %} - - - - - - - {% endfor %} -
    {% trans "Episode" %}{% trans "Released" %}{% trans "Listeners" %}
    {{ episode.action|episode_status_icon }} -

    {% episode_link episode podcast %}

    -

    {{ episode.description|default:""|striptags }}

    -
    {{ episode.released|default:""|date:"Y-m-d" }} - {% if episode.listeners %} - {{ episode.listeners|vertical_bar:max_listeners }} - {% endif %} -
    - {% endif %} - - {% if history %} -

    {% trans "Subscription History" %}

    - - - - - - - {% for s in history %} - - - - - - {% endfor %} -
    {% trans "Timestamp" %}{% trans "Action" %}{% trans "Devices" %}
    {{ s.timestamp|naturalday }}{{ s|podcast_status_icon }} - {{ s.device|device_icon }} {{ s.device.name|striptags }} -
    - {% endif %} - - {% if not podcast.title %} -
    {% trans "Why Unnamed Podcast?" %} {% trans "Because we display names after we have fetched the information form the feed -- and this may take some time. Until this is completed, the podcast will simply be called this way." %}
    - {% endif %} - -{% endblock %} - +{% extends "base.html" %} +{% load i18n %} +{% load humanize %} +{% load episodes %} +{% load podcasts %} +{% load devices %} +{% load charts %} +{% load facebook %} +{% load google %} + +{% load menu %} +{% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %} +{% block sectionmenu %} + {% if podcast.title %} + {{ "/podcast/"|section_menu:podcast.title }} + {% else %} + {{ "/podcast/"|section_menu:"Unnamed Podcast" }} + {% endif %} +{% endblock %} + +{% block head %} + {{ podcast|opengraph_podcast }} + {% google_plus_one_head %} +{% endblock %} + +{% block title %}{{ podcast.title|default:"Unnamed Podcast"|striptags }}{% endblock %} + +{% block content %} + +
    + + + + {% if podcast.logo_url %} + + {% endif %} + +

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

    + + + {% 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 related_podcasts %} + + {% endif %} + + {% if podcast.description %} +

    {{ podcast.description|striptags }}

    + {% endif %} + +
    +
+ + +
+ + +
+

{% trans "Subscriptions" %}

+ {% if not user.is_authenticated %} + + {% endif %} + + {% if devices or can_subscribe %} + + {% for device in devices %} + + + + + {% endfor %} + {% if can_subscribe %} + + + {% csrf_token %} + + + + + {% endif %} +
+ {{ device|device_icon }} + {{ device.name|striptags }} + +
+ +
+
{{ subscribe_form.as_p }} + +
+ {% endif %} +
+ +
+

Tags

+ + {% for tag in tags %} + {% spaceless %} + {% if tag.is_own %} + {{ tag.tag }} X + {% else %} + {{ tag.tag }} + {% endif %} + {% if not forloop.last %} + , + {% endif %} + {% endspaceless %} + {% endfor %} + + {% if user.is_authenticated %} +
+
+ +
+ +
+ {% endif %} +
+ +
+

{% trans "Share" %}

+ {% google_plus_one_button %} + {{ podcast|fb_like_podcast }} + + {% if user.is_authenticated and devices %} + {% if is_public %} +
+ {% csrf_token %} + +
+ + {% else %} +
+ {% csrf_token %} + +
+ + {% endif %} + {% endif %} +
+ + + {% if episodes %} + + + + + + + + + {% for episode in episodes %} + + + + + + + {% endfor %} +
{% trans "Episode" %}{% trans "Released" %}{% trans "Listeners" %}
{{ episode.action|episode_status_icon }} +

{% episode_link episode podcast %}

+

{{ episode.description|default:""|striptags }}

+
{{ episode.released|default:""|date:"Y-m-d" }} + {% if episode.listeners %} + {{ episode.listeners|vertical_bar:max_listeners }} + {% endif %} +
+ {% endif %} + + {% if history %} +

{% trans "Subscription History" %}

+ + + + + + + {% for s in history %} + + + + + + {% endfor %} +
{% trans "Timestamp" %}{% trans "Action" %}{% trans "Devices" %}
{{ s.timestamp|naturalday }}{{ s|podcast_status_icon }} + {{ s.device|device_icon }} {{ s.device.name|striptags }} +
+ {% endif %} + + {% if not podcast.title %} +
{% trans "Why Unnamed Podcast?" %} {% trans "Because we display names after we have fetched the information form the feed -- and this may take some time. Until this is completed, the podcast will simply be called this way." %}
+ {% endif %} + +{% endblock %} + diff --git a/mygpo/web/templates/subscriptions.html b/mygpo/web/templates/subscriptions.html index aa4b775d..1ac8e717 100644 --- a/mygpo/web/templates/subscriptions.html +++ b/mygpo/web/templates/subscriptions.html @@ -32,21 +32,13 @@ {% endfor %} - + + {% trans "Share" %} + {% else %} @@ -61,10 +53,10 @@ {% url search as search-url %} {% url suggestions as suggestions-url %} {% blocktrans %}Browse the toplist and your personal suggestions, search or simply copy and paste the podcast's URL here{% endblocktrans %} -
+ -
-- 2.11.4.GIT