Skip to content

Commit

Permalink
the release for DWDM
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamentations committed Jun 15, 2016
1 parent 39fa015 commit 5949da9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
8 changes: 7 additions & 1 deletion code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ def index(db):
resrateData = fetchResRate([])
resTimeData = fetchResTime([])
ttWFData = fetchttWF([])
return render_template('main.html', selInfo=selInfo,workflowData=workflowData,resrateData=resrateData,resTimeData=resTimeData,ttWFData=ttWFData)
return render_template('demo.html', selInfo=selInfo,workflowData=workflowData,resrateData=resrateData,resTimeData=resTimeData,ttWFData=ttWFData)

# db is the database
@app.route('/iwe/about', methods=["GET"])
def about():
# DS = dataset
return render_template('about.html')

@app.route('/iwe/api/timetotal', methods=["GET"])
def timetotal():
Expand Down
36 changes: 36 additions & 0 deletions code/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>IWE About</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="{{url_for('static', filename='js/lib/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<script src="{{url_for('static', filename='js/lib/jquery-2.2.3.min.js')}}"></script>
<script src="{{url_for('static', filename='js/lib/bootstrap/js/bootstrap.min.js')}}"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" style="font-weight:bold;">Issue Workflow Explorer</a>
</div>
<div>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Project <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="./demo/gnome">Gnome</a></li>
<li><a href="./demo/mozilla">Mozilla</a></li>
</ul>
</li>
<li><a href="./help">Help</a></li>
<li><a href="./about">About</a></li>
</ul>
</div>
</nav>
<div style="width:800px;margin:80px auto">
<div style="text-align:center">IWE是一个针对缺陷报告数据仓库的数据可视化工具<br>是钟震(130001286)的<span style="text-decoration:underline">数据仓库与数据挖掘技术</span>课程项目大作业</div>
</div>
</body>
<html>
6 changes: 3 additions & 3 deletions code/templates/main.html → code/templates/demo.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Issue Workflow Explorer</title>
<title>IWE Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="{{url_for('static', filename='js/lib/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
Expand Down Expand Up @@ -165,8 +165,8 @@
<li><a href="./mozilla">Mozilla</a></li>
</ul>
</li>
<li><a href="#">Help</a></li>
<li><a href="#">About</a></li>
<li><a href="../help">Help</a></li>
<li><a href="../about">About</a></li>
</ul>
</div>
</nav>
Expand Down

0 comments on commit 5949da9

Please sign in to comment.