{% extends "master.html" %}

{% block main %}
<div class="container show-bundle">
    <div class="pull-right tags">
        <div class="title">VERSIONS</div>
        <ul class="list-unstyled">
            {% for release in bundle.all_releases %}
            <li>{% if release.tag_name == bundle.last_release.tag_name %}<span class="glyphicon glyphicon-star"></span>{% endif %}{{ release.tag_name }}</li>
            {% endfor %}
        </ul>
    </div>

    <div class="markdown">
        <span class="label label-primary">{{ bundle.repo_name }}</span>
        {% autoescape false %}
            {{ bundle.readme_html }}
        {% endautoescape %}
    </div>

    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'fish-bundles';
        var disqus_identifier = '{{ bundle.repo_name }}';
        var disqus_title = '{{ bundle.repo_name }} fish-bundle - Go get it now!';
        var disqus_url = 'http://bundles.fish/bundles/{{ bundle.slug }}';

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
{% endblock %}
