blogstar.html 4.5 KB
Newer Older
梦想橡皮擦's avatar
梦想橡皮擦 已提交
1 2 3 4 5 6 7 8
{% extends "base.html" %}
{% block content %}
<div class="container">
    <table class="table table-hover table-bordered">
        <caption class="caption-top text-center">
            <div class="alert alert-warning">
                <p class="m-0">
                    <strong>CSDN 2022 博客之星总排名</strong> 👉 绿色背景是总分前 200(晋级区)👈</p>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
9
                <p class="text-success p-0"><small>数据同步时间:2023-01-02 18:00</small></p>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
10 11 12 13 14 15 16 17 18 19
                <p class="m-0"><small>来都来了,不去给橡皮擦打个5分么?</small> | <a target="_blank"
                                                                     href="https://bbs.csdn.net/topics/611387187"><small>https://bbs.csdn.net/topics/611387187</small></a>
                </p>

            </div>
            <div class="btn-group btn-group-sm">
                 <a class="btn btn-primary active" href="/csdn/blogstar">总榜</a>
<!--                <a class="btn btn-primary" href="/csdn/oldstar">博客之星排名</a>-->
                <a class="btn btn-primary" href="/csdn/newstar">仅看新星</a>
            </div>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32
            <br>
             <div class="btn-group btn-group-sm mt-3 d-flex">
                 <a class="btn btn-success" href="/csdn/blogstar?page=1">其它</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=2">前端</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=3">后端</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=4">大数据</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=5">云原生</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=6">前沿技术</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=7">人工智能</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=8">运维与安全</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=9">移动开发</a>
                 <a class="btn btn-success" href="/csdn/blogstar?page=10">物联网</a>
            </div>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
33 34 35 36 37 38 39
        </caption>
        <thead>
        <tr>
            <th>排名</th>
            <th>昵称</th>
            <th>赛道</th>
            <th>状态</th>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
40
            <th>总分</th>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
41 42 43 44
        </tr>
        </thead>
        <tbody>
        {% for u in user %}
梦想橡皮擦's avatar
梦想橡皮擦 已提交
45
        {% if loop.index<=bg_green %}
梦想橡皮擦's avatar
梦想橡皮擦 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
        <tr class="bg-success text-white">
            {% else %}
        <tr>
            {% endif %}
            <td>{{loop.index}}</td>
            <td>{{u.nickname}}</td>
            <td>{% if u.cateName =='后端' %}
                <span class="badge bg-danger">{{u.cateName}}</span>
                {% elif u.cateName == '前端'%}
                <span class="badge bg-primary">{{u.cateName}}</span>
                {% elif u.cateName == '大数据与算法'%}
                <span class="badge bg-info">{{u.cateName}}</span>
                {% elif u.cateName == 'IT其他'%}
                <span class="badge bg-warning">{{u.cateName}}</span>
                {% elif u.cateName == '人工智能'%}
                <span class="badge bg-secondary">{{u.cateName}}</span>
                {% else %}
                <span class="badge bg-success">{{u.cateName}}</span>
                {% endif %}

            </td>
            <td>
                {% if u.star =='博客之星' %}
                <span class="badge bg-primary"> {{u.star}}</span>
                {% elif u.star == '博客新星'%}
                <span class="badge bg-info">{{u.star}}</span>
                {% else %}
                <span class="badge bg-dark">{{u.star}}</span>
                {% endif %}
            </td>
            <td>{{u.totalScore}}</td>
        </tr>
        {%endfor%}

        </tbody>
    </table>
</div>
<div class="card text-center d-none d-sm-block" style="position:fixed;top: 20px;right: 0px;">
    <div class="card-header ">2022年博客之星</div>
    <div class="card-body">
        <div class="alert alert-success">
            <p><strong>使用 Ctrl+F 检索自己的昵称即可</strong></p>
            <p><a href="https://bbs.csdn.net/topics/611387187" target="_blank" class="btn btn-primary btn-block"
                  data-bs-toggle="tooltip" title="快点去,快点去!">为【橡皮擦去打个 5 分】</a></p>
            <p class="text-danger">数据每天12:00前后同步 <br>得分越多,同步越快</p>
        </div>
    </div>
    <div class="card-footer ">
        橡皮擦等你的⭐⭐⭐⭐⭐
    </div>
</div>

{% endblock %}