Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
improves #73
Browse files Browse the repository at this point in the history
  • Loading branch information
FeeiCN committed Sep 6, 2016
1 parent 0c436e9 commit 3d096c4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 33 deletions.
4 changes: 1 addition & 3 deletions app/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<div class="col-md-6">
<div>
<p style="float:right;">
<a href="https://github.com/wufeifei/cobra/releases" target="_blank">Changelog</a>
-
<a href="https://github.com/wufeifei/cobra" target="_blank">About</a>
<a href="https://github.com/wufeifei/cobra" target="_blank">Cobra on Github</a>
</p>
</div>
</div>
Expand Down
53 changes: 23 additions & 30 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta name="keywords" content="static code scan">
<meta name="description" content="Cobra is a code static security scan system">
<meta name="author" content="Feei <[email protected]>">
<title>Cobra - Static Code security scan & analyse</title>
<title>Cobra - 自动化静态代码安全审计系统</title>

<!-- Favicon-->
<link rel="shortcut icon" href="{{ url_for('static', filename='ico/favicon.ico') }}" type="image/x-icon">
Expand Down Expand Up @@ -67,12 +67,11 @@
<div id="top_line">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-6"><i class="icon-clock"></i><strong>Static Code security scan &
analyse</strong></div>
<div class="col-md-6 col-sm-6 col-xs-6"><i class="icon-clock"></i><strong>自动化静态代码安全审计系统</strong></div>

<div class="col-md-6 col-sm-6 col-xs-6">
<ul id="top_links">
<li><a href="/admin/index">Manage</a></li>
<li><a href="/admin/index">管理后台</a></li>
</ul>
</div>
</div><!-- End row -->
Expand All @@ -83,10 +82,10 @@
<div class="row">
<div class="col-md-3 col-sm-3 col-xs-3">
<div id="logo">
<a href="index.html"><img src="{{ url_for('static', filename='img/logo.png') }}" width="160"
height="34" alt="City tours" data-retina="true" class="logo_normal"></a>
<a href="index.html"><img src="{{ url_for('static', filename='img/logo_sticky.png') }}" width="160"
height="34" alt="City tours" data-retina="true" class="logo_sticky"></a>
<a href="/"><img src="{{ url_for('static', filename='img/logo.png') }}" width="160"
height="34" alt="City tours" data-retina="true" class="logo_normal"></a>
<a href="/"><img src="{{ url_for('static', filename='img/logo_sticky.png') }}" width="160"
height="34" alt="City tours" data-retina="true" class="logo_sticky"></a>
</div>
</div>
</div>
Expand All @@ -96,47 +95,44 @@
<section id="search_container">
<div id="search">
<ul class="nav nav-tabs">
<li class="active"><a href="#config" data-toggle="tab">Git/SVN</a></li>
<li><a href="#log" data-toggle="tab">Upload</a></li>
{# <li><a href="#report" data-toggle="tab">Gitlab AccessToken</a></li>#}
<li class="active"><a href="#config" data-toggle="tab">扫描Git/SVN项目或本地项目</a></li>
<li><a href="#log" data-toggle="tab">上传压缩包扫描</a></li>
</ul>

<div class="tab-content">
<div class="tab-pane active" id="config">
<h3>Github/Gitlab/Subversion Repository</h3>
<h3>Github/Gitlab/Subversion仓库地址</h3>
<div class="row">
<div class="col-md-8">
<div class="col-md-12" style="padding-left:0;padding-right:0;">
<div class="form-group">
<label>GIT/SVN Repository</label>
<input type="text" class="form-control" name="repository"
placeholder="Type your gitlab/github/subversion repository url">
<label>GIT/SVN仓库地址(.git结尾)或者本地项目路径</label>
<input type="text" class="form-control" name="repository" placeholder="例子:http://github.com/wufeifei/grw.git 或 /home/Feei/project_name">
</div>
</div>
<div class="col-md-12" style="padding-left:0;padding-right:0;">
<div class="form-group">
<label>Gitlab Branch</label>
<input type="text" class="form-control" name="branch"
placeholder="Type your branch;Default master" value="master">
<label>Gitlab分支</label>
<input type="text" class="form-control" name="branch" placeholder="默认为master,可不填写" value="master">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label><i class="icon-backward"></i> Old Version</label>
<input name="old_version" class="form-control" type="text">
<label><i class="icon-backward"></i> 老版本号</label>
<input name="old_version" class="form-control" type="text" placeholder="可选">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label><i class="icon-forward-3"></i> New Version</label>
<input name="new_version" class="form-control" type="text">
<label><i class="icon-forward-3"></i> 新版本号</label>
<input name="new_version" class="form-control" type="text" placeholder="可选">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-12" style="padding-left:0;padding-right:0;">
<div class="form-group">
<label>Recently Scan SVN/GIT Project</label>
<label>最近扫描的项目</label>
<ul class="list_ok">
{% for task in data.recently_tasks %}
<li><a>{{ task.target }}</a></li>
Expand All @@ -149,27 +145,24 @@ <h3>Github/Gitlab/Subversion Repository</h3>
</div>
</div><!-- End row -->
<hr>
<button class="btn_1 green" id="scan"><i class="icon-search"></i>Scan now</button>
<button class="btn_1 green" id="scan"><i class="icon-search"></i>扫描</button>
</div><!-- End rab -->
<div class="tab-pane" id="log">
<h3>Select compress file to upload</h3>
<h3>选择一个压缩包扫描</h3>
<div class="col-md-12">
<div class="box_style_2" id="dropbox">
<i class="icon-upload-cloud"></i>
<h4><span>Drag and Drop</span> File Uploading</h4>
<h4><span>拖拽</span>文件上传</h4>
<div align="center" id="selectFile"></div>
<hr>
<input type="file" class="btn_1" id="uploadFile" name="file" style="width: 100%;">
<small>Support Extensions: {{ data.extensions }}</small>
<small>支持上传的后缀: {{ data.extensions }}</small>
<div id="progress">
<div class="bar"></div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="report">
<h3>TODO</h3>
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit 3d096c4

Please sign in to comment.