<commit_before>{% extends "base.html" %}
{% load issue_type %}
{% load staticfiles %}
{% load gravatar %}
{% load email_obfuscator %}
{% load socialaccount %}
{% providers_media_js %}
{% block style %}
    .alt-img{
        padding-top: 25px;
        width: 100px;
        filter: blur(2px);
        -webkit-filter:blur(2px);
        display: none;
    }
    .header {
        display: inline-flex;
    }
    .header h3 {
        padding-left: 20px;
        margin-top: 30px;        
    }
    .panel-body .list-group-item {
        display: inline-flex;
        width: 100%;
        height: 120px;
    }
    .header h3 a,
    .panel-body .list-group-item a {
        text-decoration: none;
    }
    .header small {
        margin-top: 35px;
        padding-left: 10px;
    }
    .badge {
        margin-top: 15px;
    }
    .panel-heading a {
        padding: 10px;
        background: whitesmoke;
        text-decoration: none;
    }
    .title-text {
        font-size: 20px;
        padding-left: 10px;
        width: 75%;
    }
    .panel-body .list-group-item .text-muted {
        position: absolute;
        top: 90px;
        left: 110px;
    }
    .screenshot-image {
        position: absolute;        
        right: 10px;
        width: 100px;
        height: 100px;
    }
{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-lg-10 col-md-10 header">
            <img src="{{domain.get_logo}}" height="100" onerror="this.onerror=null; this.style.display='none';this.parentNode.childNodes[3].style.display='block';">
            <img src="{% static 'img/logo-small-transparent.png' %}" class="alt-img">
            <h3><a href="http://{{domain}}" target="/new">{{name}}</a></h3>
            <small>({{issues|length}} issue{{issues|length|pluralize}})</small>
        </div>
        <div class="col-lg-2 col-md-2">
            <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
                <input type="hidden" name="cmd" value="_s-xclick">
                <input type="hidden" name="hosted_button_id" value="SC7E9NRCWHGTL">
                <input type="hidden" name="hcustom" value="{{domian.name}}">
                <button type="submit" class="btn btn-danger btn-sm pull-right">
                <i class="fa fa-envelope fa-lg"></i>Subscribe to {{name}} bugs</button>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-3 col-md-3">
            {% if domain.email %}                        
                {{ domain.email|obfuscate_mailto }}
                {% if domain.email_event %}
                    <div>Last email {{domain.email_event|default:""}} {{domain.modified|timesince }} ago | Clicks {{domain.clicks|default:"0"}}</div>
                {% endif %}
            {% endif %}
        </div>
    </div>    

    <div class="row">
        <div class="col-lg-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <a href="all">ALL({{ total_issues }})</a>
                    <a href="open">OPEN({{ total_open }})</a>
                    <a href="closed">CLOSED({{ total_closed }})</a>
                </div>
                <div class="panel-body">
                    <div class="list-group">                   
                        {% for activity in issues %}
                            {% if issue_choice == "all" %}
                                {% define issue_choice as condition %}                                
                            {% else %}
                                {% define activity.status as condition %}
                            {% endif %}                     

                            {% if condition == issue_choice %}
                                <div class="list-group-item">
                                    {% if activity.user.socialaccount_set.all.0.get_avatar_url %}
                                        <img src="{{activity.user.socialaccount_set.all.0.get_avatar_url}}" width="80" class="img-responsive img-rounded">
                                    {% else %}
                                        <img src="{% gravatar_url activity.user.email 50 %}" width="80" class="img-responsive img-rounded">
                                    {% endif %}

                                    <span class="title-text">
                                        {{ activity.user.username }} entered issue
                                        <a href="{{ activity.get_absolute_url }}">
                                            <img src="http://{{activity.hostname_domain}}/favicon.ico" height="16" onerror="this.onerror=null; this.style.display ='none';">
                                            {{ activity.domain_title }} - {{ activity|truncatechars:80 }}
                                        </a>
                                    </span>
                                    <span class="text-muted small">
                                        <em>{{ activity.created|timesince }} ago</em>
                                    </span>

                                     <a class="comment_link" href="{{activity.get_absolute_url }}#comments_form">
                                         {{ activity.comments.all|length  }} comments
                                     </a>

                                    {% if activity.screenshot %}
                                        <a href="{{ activity.get_absolute_url }}">
                                            <img src="{{ activity.screenshot.url }}" class="img-responsive screenshot-image">
                                        </a>
                                    {% endif %}
                                </div>                                
                            {% endif %}    
                        {% endfor %}
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <h4 class="text-center">Top Bug Hunters for {{name}}</h4>
            <div class="list-group">
                {% if leaderboard %}
                    {% for leader in leaderboard %}
                        <div class="list-group-item">
                            {% if leader.socialaccount_set.all.0.get_avatar_url %}
                                <img src="{{leader.socialaccount_set.all.0.get_avatar_url}}" width="50" height="50">
                            {% else %}
                                <img src="{% gravatar_url leader.email 50 %}" width="50" height="50">
                            {% endif %}
                            <a href="/profile/{{leader.username}}">{{leader.username}}</a>
                            <span class="badge">{{leader.total}} bug{{leader.total|pluralize}}</span>
                        </div>
                    {% endfor %}
                {% else %}
                Leaderboard reset for {% now "F" %}. Be first to find issues!
                {% endif %}
            </div>
        </div>

        <div class="col-lg-3 col-md-3 ">
            {% if domain.webshot %}
                <div class="col-lg-12">
                    <a href="https://{{domain}}" target="_new">
                        <img src="{{domain.webshot.url}}">
                    </a>
                </div>
            {% endif %}
        </div>
    </div>
{% endblock %}
<commit_msg>bug status, open/closed or bug type is not showing on the domain detail page closes #322<commit_after>{% extends "base.html" %}
{% load issue_type %}
{% load staticfiles %}
{% load gravatar %}
{% load email_obfuscator %}
{% load socialaccount %}
{% providers_media_js %}
{% block style %}
    .alt-img{
        padding-top: 25px;
        width: 100px;
        filter: blur(2px);
        -webkit-filter:blur(2px);
        display: none;
    }
    .header {
        display: inline-flex;
    }
    .header h3 {
        padding-left: 20px;
        margin-top: 30px;        
    }
    .panel-body .list-group-item {
        display: inline-flex;
        width: 100%;
        height: 120px;
    }
    .header h3 a,
    .panel-body .list-group-item a {
        text-decoration: none;
    }
    .header small {
        margin-top: 35px;
        padding-left: 10px;
    }
    .badge {
        margin-top: 15px;
    }
    .panel-heading a {
        padding: 10px;
        background: whitesmoke;
        text-decoration: none;
    }
    .title-text {
        font-size: 20px;
        padding-left: 10px;
        width: 75%;
    }
    .panel-body .list-group-item .text-muted {
        position: absolute;
        top: 90px;
        left: 110px;
    }
    .screenshot-image {
        position: absolute;        
        right: 10px;
        width: 100px;
        height: 100px;
    }
{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-lg-10 col-md-10 header">
            <img src="{{domain.get_logo}}" height="100" onerror="this.onerror=null; this.style.display='none';this.parentNode.childNodes[3].style.display='block';">
            <img src="{% static 'img/logo-small-transparent.png' %}" class="alt-img">
            <h3><a href="http://{{domain}}" target="/new">{{name}}</a></h3>
            <small>({{issues|length}} issue{{issues|length|pluralize}})</small>
        </div>
        <div class="col-lg-2 col-md-2">
            <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
                <input type="hidden" name="cmd" value="_s-xclick">
                <input type="hidden" name="hosted_button_id" value="SC7E9NRCWHGTL">
                <input type="hidden" name="hcustom" value="{{domian.name}}">
                <button type="submit" class="btn btn-danger btn-sm pull-right">
                <i class="fa fa-envelope fa-lg"></i>Subscribe to {{name}} bugs</button>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-3 col-md-3">
            {% if domain.email %}                        
                {{ domain.email|obfuscate_mailto }}
                {% if domain.email_event %}
                    <div>Last email {{domain.email_event|default:""}} {{domain.modified|timesince }} ago | Clicks {{domain.clicks|default:"0"}}</div>
                {% endif %}
            {% endif %}
        </div>
    </div>    

    <div class="row">
        <div class="col-lg-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <a href="all">ALL({{ total_issues }})</a>
                    <a href="open">OPEN({{ total_open }})</a>
                    <a href="closed">CLOSED({{ total_closed }})</a>
                </div>
                <div class="panel-body">
                    <div class="list-group">                   
                        {% for activity in issues %}
                            {% if issue_choice == "all" %}
                                {% define issue_choice as condition %}                                
                            {% else %}
                                {% define activity.status as condition %}
                            {% endif %}                     

                            {% if condition == issue_choice %}
                                <div class="list-group-item">
                                    {% if activity.user.socialaccount_set.all.0.get_avatar_url %}
                                        <img src="{{activity.user.socialaccount_set.all.0.get_avatar_url}}" width="80" class="img-responsive img-rounded">
                                    {% else %}
                                        <img src="{% gravatar_url activity.user.email 50 %}" width="80" class="img-responsive img-rounded">
                                    {% endif %}

                                    <span class="title-text">
                                        {{ activity.user.username }} entered issue
                                        <a href="{{ activity.get_absolute_url }}">
                                            <img src="http://{{activity.hostname_domain}}/favicon.ico" height="16" onerror="this.onerror=null; this.style.display ='none';">
                                            {{ activity.domain_title }} - {{ activity|truncatechars:80 }}
                                        </a>
                                                        {% if activity.status == "open" %}
                    <span class="label label-success text-capitalize">{{activity.status}}</span>
                {% else %}
                    <span class="label label-danger text-capitalize">{{activity.status}}</span>
                {% endif %}<span class="label label-info bug-type">{{activity.get_label_display}}</span>

                                    </span>
                                    <span class="text-muted small">
                                        <em>{{ activity.created|timesince }} ago</em>
                                    </span>

                                     <a class="comment_link" href="{{activity.get_absolute_url }}#comments_form">
                                         {{ activity.comments.all|length  }} comments
                                     </a>

                                    {% if activity.screenshot %}
                                        <a href="{{ activity.get_absolute_url }}">
                                            <img src="{{ activity.screenshot.url }}" class="img-responsive screenshot-image">
                                        </a>
                                    {% endif %}
                                </div>     
                            {% endif %}    
                        {% endfor %}
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <h4 class="text-center">Top Bug Hunters for {{name}}</h4>
            <div class="list-group">
                {% if leaderboard %}
                    {% for leader in leaderboard %}
                        <div class="list-group-item">
                            {% if leader.socialaccount_set.all.0.get_avatar_url %}
                                <img src="{{leader.socialaccount_set.all.0.get_avatar_url}}" width="50" height="50">
                            {% else %}
                                <img src="{% gravatar_url leader.email 50 %}" width="50" height="50">
                            {% endif %}
                            <a href="/profile/{{leader.username}}">{{leader.username}}</a>
                            <span class="badge">{{leader.total}} bug{{leader.total|pluralize}}</span>
                        </div>
                    {% endfor %}
                {% else %}
                Leaderboard reset for {% now "F" %}. Be first to find issues!
                {% endif %}
            </div>
        </div>

        <div class="col-lg-3 col-md-3 ">
            {% if domain.webshot %}
                <div class="col-lg-12">
                    <a href="https://{{domain}}" target="_new">
                        <img src="{{domain.webshot.url}}">
                    </a>
                </div>
            {% endif %}
        </div>
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.14220213532455622, 'fraction_numerical': 0.012641645378921857, 'mean_word_length': 1.1672107877927609, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 70, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4905248', 'n_tokens_mistral': 4324, 'n_tokens_neox': 3834, 'n_words': 756}