Skip to content

Commit c0541df

Browse files
committed
增加了状态的支持
1 parent a6b2705 commit c0541df

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def logout():
221221
@app.route('/quick_login', methods=['GET', 'POST'])
222222
def quick_login():
223223
session['logged_in'] = True
224-
session['username'] = '1001'
224+
session['username'] = '测试用户'
225225
return home()
226226

227227

templates/repositories.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,24 @@ <h3 class="pb-3 mb-4 font-italic border-bottom">
2121
<table class="table table-hover">
2222
<thead>
2323
<th>项目名</th>
24-
<th>项目远程地址</th>
24+
{# <th>项目远程地址</th>#}
2525
{# <th>项目本地地址</th>#}
2626
{# <th>项目添加时间</th>#}
27+
<th>状态</th>
2728
<th>详情</th>
2829
</thead>
2930
<tbody>
3031
{% for repo in repo_status %}
3132
<tr>
3233
<td>{{ repo.REPONAME }}</td>
33-
<td>{{ repo.REPOURL }}</td>
34+
{# <td>{{ repo.REPOURL }}</td>#}
3435
{# <td>{{ repo.REPOLOCALPATH }}</td>#}
3536
{# <td>{{ repo.CLONETIME }}</td>#}
37+
<td>
38+
<button type="button" class="btn btn-success">
39+
成功 <span class="badge badge-light">1</span>
40+
</button>
41+
</td>
3642
<td><a href="{{ url_for('show_repositories',repo_name =repo.REPONAME) }}">详情</a></td>
3743
</tr>
3844
{% endfor %}
@@ -55,21 +61,24 @@ <h3 class="pb-3 mb-4 font-italic border-bottom">
5561
<!-- 轮播图片 -->
5662
<div class="carousel-inner">
5763
<div class="carousel-item active">
58-
<img src="{{ url_for('static', filename='images/github.jpg') }}" height="300px" width="300px">
64+
<img src="{{ url_for('static', filename='images/github.jpg') }}" height="300px"
65+
width="300px">
5966
<div class="carousel-caption">
6067
<h3>Github</h3>
6168
<p>GitHub是一个面向开源及私有软件项目的托管平台</p>
6269
</div>
6370
</div>
6471
<div class="carousel-item">
65-
<img src="{{ url_for('static', filename='images/gitlab.png') }}" height="300px" width="300px">
72+
<img src="{{ url_for('static', filename='images/gitlab.png') }}" height="300px"
73+
width="300px">
6674
<div class="carousel-caption">
6775
<h3>Gitlab</h3>
6876
<p>GitLab 是一个用于仓库管理系统的开源项目</p>
6977
</div>
7078
</div>
7179
<div class="carousel-item">
72-
<img src="{{ url_for('static', filename='images/codeCloud.jpg') }}" height="300px" width="300px">
80+
<img src="{{ url_for('static', filename='images/codeCloud.jpg') }}" height="300px"
81+
width="300px">
7382
<div class="carousel-caption">
7483
<h3>码云</h3>
7584
<p>码云 Gitee - 云端软件开发协作平台</p>

0 commit comments

Comments
 (0)