gu-f / ctfd_chinese_cn Goto Github PK
View Code? Open in Web Editor NEW对CTFd平台各版本的汉化记录。key:中文、汉化、翻译、chinese、CN、CTFd
对CTFd平台各版本的汉化记录。key:中文、汉化、翻译、chinese、CN、CTFd
大佬您好,非常感谢您的CTFd的汉化
其次,因为3.1.0汉化包在我的3.4.0上不兼容,登陆后会出现权限不足的问题,您能否告诉我一下她的导航栏汉化要在哪里修改
建议去官方CTFd库去Fork一个然后将主题文件放上去,再提交一个requests,让官方使用本库中的中文主题,这样你相当于对CTFd这样的大项目有了贡献,可以成为你的简历的,同时也方便我们国内的使用
将submissions.html内容替换
{% extends "admin/base.html" %}
{% block stylesheets %}
{% endblock %}
{% block content %}
<div class="jumbotron">
<div class="container">
<h1>{% if type %}{{ type|title }} {% endif %}提交记录</h1>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
{% if q and field %}
<h5 class="text-muted text-center">
搜索 <strong>{{ field }}</strong> matching <strong>{{ q }}</strong>的记录
</h5>
<h6 class="text-muted text-center pb-3">
Page {{ submissions.page }} of {{ submissions.total }} results
</h6>
{% endif %}
{% with form = Forms.submissions.SubmissionSearchForm(field=field, q=q) %}
<form method="GET" class="form-inline">
<div class="form-group col-md-2 pr-0">
{{ form.field(class="form-control custom-select w-100") }}
</div>
<div class="form-group col-md-8">
{{ form.q(class="form-control w-100", placeholder="搜索...") }}
</div>
<div class="form-group col-md-2">
<button type="submit" class="btn btn-primary w-100">
<i class="fas fa-search" aria-hidden="true"></i>
</button>
</div>
</form>
{% endwith %}
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<div class="float-right pb-3">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-danger" id="submission-delete-button">
<i class="btn-fa fas fa-trash-alt"></i>
</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
{% set mode = Configs.user_mode %}
<table id="teamsboard" class="table table-striped border">
<thead>
<tr>
<th class="border-right" data-checkbox>
<div class="form-check text-center">
<input type="checkbox" class="form-check-input" data-checkbox-all>
</div>
</th>
<th class="text-center sort-col"><b>ID</b></th>
{% if mode == UserModeTypes.TEAMS %}
<th class="sort-col"><b>User</b></th>
{% endif %}
<th class="sort-col"><b>{{ get_mode_as_word(capitalize=True) }}</b></th>
<th class="sort-col"><b>挑战</b></th>
<th class="sort-col"><b>状态</b></th>
<th class="sort-col"><b>提交归属</b></th>
<th class="text-center sort-col"><b>时间</b></th>
</tr>
</thead>
<tbody>
{% for sub in submissions.items %}
<tr>
<td class="border-right" data-checkbox>
<div class="form-check text-center">
<input type="checkbox" class="form-check-input" value="{{ sub.id }}" data-submission-id="{{ sub.id }}">
</div>
</td>
<td class="text-center" id="{{ sub.id }}">
{{ sub.id }}
</td>
{% if mode == UserModeTypes.TEAMS %}
<td>
<a href="{{ url_for('admin.users_detail', user_id=sub.user_id) }}">
{{ sub.user.name }}
</a>
</td>
{% endif %}
<td class="team" id="{{ sub.account_id }}">
<a href="{{ generate_account_url(sub.account_id, admin=True) }}">
{{ sub.account.name }}
</a>
</td>
<td class="chal" id="{{ sub.challenge_id }}">
<a href="{{ url_for('admin.challenges_detail', challenge_id=sub.challenge_id) }}">
{{ sub.challenge.name }}
</a>
</td>
<td>
{{ sub.type }}
</td>
<td class="flag" id="{{ sub.id }}">
<pre class="mb-0">{{ sub.provided }}</pre>
</td>
<td class="text-center solve-time">
<span data-time="{{ sub.date | isoformat }}"></span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if submissions.pages > 1 %}
<div class="text-center">页码
<br>
{% if submissions.page != 1 %}
<a href="{{ prev_page }}"><<<</a>
{% endif %}
<select class="page-select">
{% for page in range(1, submissions.pages + 1) %}
<option {% if submissions.page == page %}selected{% endif %}>{{ page }}</option>
{% endfor %}
</select>
{% if submissions.next_num %}
<a href="{{ next_page }}">>>></a>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{% endblock %}
{% block entrypoint %}
<script defer src="{{ url_for('views.themes', theme='admin', path='js/pages/submissions.js') }}"></script>
{% endblock %}
为什么他的网页内容不能修改成中文,一修改就会500报错,而且不能上传logo什么的,也会500报错
请问 覆盖了官方的代码后再执行sudo docker-compose up 页面没有更新是什么情况 我是小白
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.