Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flattr Buttons for Contributors of featured episode on overview-page? #1

Open
tobybaier opened this issue Dec 10, 2014 · 1 comment

Comments

@tobybaier
Copy link

Hi Tim,
since I use this template on the start page of einschlafen-podcast.de (two weeks), the contributors of my episodes do not get flattred anymore, which is sad. I guess that is because they do not get any flattr buttons on the start page, but only on the episode page.

Hence the question: how can I generate flattr buttons per contributor of the featured episode on the overview-page?

Thanks,
Toby

@tobybaier
Copy link
Author

BTW, I tried this below episode-summary, see on http://www.pubkameraden.de/podcast-episoden/ how it renders generic user Flattr buttons:

{# Contributors #}

            {% if episode.contributors() %}
                <div class="episode-contributors">
                <table>
                    <colgroup>
                        {% for contributor in episode.contributors() %}
                        <col width="{{ avatar_size }}px" />
                        {% endfor %}
                    </colgroup>
                    <tr>
                    {% for contributor in episode.contributors() %}
                        <td style="vertical-align: top; width: {{ avatar_size }}px">
                        <img src="{{ contributor.avatar.url }}" title="{{ contributor.name }}" height="{{ avatar_size }}" width="{{ avatar_size }}"/ /><br/>
                        {% if contributor.flattr %}
                            <br/><a target="_blank"
                            class="FlattrButton"
                            title="Flattr {{ contributor.name }}"
                            rel="flattr;uid:{{ contributor.flattr }};button:compact;popout:0"
                            href="{{ contributor.flattr_url }}">
                            Flattr {{ contributor.name }}
                            </a>
                        {% endif %}
                        </td>
                    {% endfor %}
                    </tr>
                </table>
                </div>
                {% endif %}

katrinleinweber added a commit to KonScience/podlove-templates that referenced this issue Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant