f99ae1171a5aadda6f31da46762b2ef987bd33de,app/grandchallenge/profiles/templatetags/profiles.py,,user_profile_link,#Any#,15

Before Change


        profile_url = reverse(
            "userena_profile_detail", kwargs={"username": user.username}
        )
        mugshot = format_html(
            (
                "<img class="mugshot" loading="lazy" src="{0}" "
                "alt="User Mugshot" "
                // Match the "fa-lg" class style
                "style="height: 1.33em; vertical-align: -25%;"/>"
            ),
            user.user_profile.get_mugshot_url(),
        )
    else:
        username = "Unknown"
        profile_url = "//"
        mugshot = mark_safe("<i class="fas fa-user fa-lg"></i>")

After Change



        profile = user.user_profile

        mugshot = format_html(
            (
                "<img class="mugshot" loading="lazy" src="{0}" "
                "alt="User Mugshot" "
                // Match the "fa-lg" class style
                "style="height: 1.33em; vertical-align: -25%;"/>"
            ),
            profile.get_mugshot_url(),
        )

        if profile.is_verified:
            verified = mark_safe(
                "<i class="fas fa-user-check text-success" title="Verified User"></i>"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: f99ae1171a5aadda6f31da46762b2ef987bd33de
Time: 2020-09-25
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/profiles/templatetags/profiles.py
Class Name:
Method Name: user_profile_link


Project Name: comic/grand-challenge.org
Commit Name: 49b56031e11a3af26c09de6ea8567642a4bd968f
Time: 2020-09-28
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/profiles/templatetags/profiles.py
Class Name:
Method Name: user_profile_link


Project Name: comic/grand-challenge.org
Commit Name: 88a297372c3db105af076bcda1f64db31181f0da
Time: 2020-02-24
Author: code@jmsmkn.com
File Name: app/grandchallenge/profiles/templatetags/profiles.py
Class Name:
Method Name: user_profile_link