<commit_before><!--
后台文章管理组件
-->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="utf-8"/>
    <title>后台布局</title>
    <link rel="stylesheet" href="../../public/assets/css/joshua.min.css"/>
</head>
<body>

<!-- 我的文章基本组件 -->
<table th:fragment="table-mine (items)" class="ui celled selectable sortable table">
    <thead>
    <tr>
        <th class="one wide">文章ID</th>
        <th class="eight wide">文章标题</th>
        <th class="two wide">所属团契</th>
        <th class="one wide">状态</th>
        <th class="four wide">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${#lists.isEmpty(items)}">
        <td>当前还没有内容</td>
    </tr>
    <tr th:each="item : ${items}">
        <td th:utext="${item.id}"></td>
        <td th:utext="${item.title}"></td>
        <td th:utext="${item.fellowship.displayName}"></td>
        <td th:if="${item.status.name() == 'RAW'}"><label class="ui grey label">未发布</label></td>
        <td th:if="${item.status.name() == 'AUDITING'}"><label class="ui orange label">审核中</label></td>
        <td th:if="${item.status.name() == 'PUBLISHED'}"><label class="ui green label">已发布</label></td>
        <td th:if="${item.status.name() == 'REJECTED'}"><label class="ui red label">被驳回</label></td>
        <td>
            <a class="ui tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id}}">查看</a>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <th class="center aligned" colspan="5">
            <div th:replace="fragment/pagination :: basic"></div>
        </th>
    </tr>
    </tfoot>
</table>

<table th:fragment="table-normal (items)" class="ui celled selectable sortable table">
    <thead>
    <tr>
        <th class="one wide">文章ID</th>
        <th class="eight wide">文章标题</th>
        <th class="two wide">所属团契</th>
        <th class="five wide">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${#lists.isEmpty(items)}">
        <td>当前还没有内容</td>
    </tr>
    <tr th:each="item : ${items}">
        <td th:utext="${item.id}"></td>
        <td th:utext="${item.title}"></td>
        <td th:utext="${item.fellowship.displayName}"></td>
        <td>
            <a class="ui tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id}}">查看</a>
            <a class="ui primary tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id} + '/edit'}">修改</a>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <th class="center aligned" colspan="4">
            <div th:replace="fragment/pagination :: basic"></div>
        </th>
    </tr>
    </tfoot>
</table>
<commit_msg>#fix 81   我的文章添加编辑操作<commit_after><!--
后台文章管理组件
-->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="utf-8"/>
    <title>后台布局</title>
    <link rel="stylesheet" href="../../public/assets/css/joshua.min.css"/>
</head>
<body>

<!-- 我的文章基本组件 -->
<table th:fragment="table-mine (items)" class="ui celled selectable sortable table">
    <thead>
    <tr>
        <th class="one wide">文章ID</th>
        <th class="eight wide">文章标题</th>
        <th class="two wide">所属团契</th>
        <th class="one wide">状态</th>
        <th class="four wide">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${#lists.isEmpty(items)}">
        <td>当前还没有内容</td>
    </tr>
    <tr th:each="item : ${items}">
        <td th:utext="${item.id}"></td>
        <td th:utext="${item.title}"></td>
        <td th:utext="${item.fellowship.displayName}"></td>
        <td th:if="${item.status.name() == 'RAW'}"><label class="ui grey label">未发布</label></td>
        <td th:if="${item.status.name() == 'AUDITING'}"><label class="ui orange label">审核中</label></td>
        <td th:if="${item.status.name() == 'PUBLISHED'}"><label class="ui green label">已发布</label></td>
        <td th:if="${item.status.name() == 'REJECTED'}"><label class="ui red label">被驳回</label></td>
        <td>
            <a class="ui tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id}}">查看</a>
            <a th:if="${item.status.name() == 'RAW' or item.status.name() == 'REJECTED'}"
               class="ui tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id} + '/edit'}">编辑</a>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <th class="center aligned" colspan="5">
            <div th:replace="fragment/pagination :: basic"></div>
        </th>
    </tr>
    </tfoot>
</table>

<table th:fragment="table-normal (items)" class="ui celled selectable sortable table">
    <thead>
    <tr>
        <th class="one wide">文章ID</th>
        <th class="eight wide">文章标题</th>
        <th class="two wide">所属团契</th>
        <th class="five wide">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${#lists.isEmpty(items)}">
        <td>当前还没有内容</td>
    </tr>
    <tr th:each="item : ${items}">
        <td th:utext="${item.id}"></td>
        <td th:utext="${item.title}"></td>
        <td th:utext="${item.fellowship.displayName}"></td>
        <td>
            <a class="ui tiny button" target="_blank" th:href="@{'/admin/article/' + ${item.id}}">查看</a>
            <a class="ui primary tiny button" target="_blank"
               th:href="@{'/admin/article/' + ${item.id} + '/edit'}">编辑</a>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <th class="center aligned" colspan="4">
            <div th:replace="fragment/pagination :: basic"></div>
        </th>
    </tr>
    </tfoot>
</table>

{'fraction_non_alphanumeric': 0.23788700367325522, 'fraction_numerical': 0.0034983382893125766, 'mean_word_length': 2.656010230179028, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4740790', 'n_tokens_mistral': 2196, 'n_tokens_neox': 2197, 'n_words': 373}