Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
3d764eb6
Commit
3d764eb6
authored
Oct 10, 2018
by
Bui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if version file exists
parent
e2ad2b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app.py
app.py
+3
-1
templates/index.html
templates/index.html
+7
-1
No files found.
app.py
View file @
3d764eb6
...
...
@@ -69,7 +69,9 @@ def close_connection(exception):
@
app
.
route
(
'/'
)
def
route_index
():
version
=
json
.
load
(
open
(
'version.json'
,
'r'
))
version
=
None
if
os
.
path
.
isfile
(
'version.json'
):
version
=
json
.
load
(
open
(
'version.json'
,
'r'
))
return
render_template
(
'index.html'
,
version
=
version
)
...
...
templates/index.html
View file @
3d764eb6
...
...
@@ -56,7 +56,13 @@
<body>
<div
id=
"assets"
></div>
<div
id=
"screen"
></div>
<div
id=
"version"
><a
href=
"https://github.com/bui/taiko-web/commit/{{version.commit}}"
target=
"_blank"
class=
"stroke-sub"
alt=
"taiko-web ver.{{version.version}} ({{version.commit_short}})"
>
taiko-web ver.{{version.version}} ({{version.commit_short}})
</a></div>
<div
id=
"version"
>
{% if version %}
<a
href=
"https://github.com/bui/taiko-web/commit/{{version.commit}}"
target=
"_blank"
class=
"stroke-sub"
alt=
"taiko-web ver.{{version.version}} ({{version.commit_short}})"
>
taiko-web ver.{{version.version}} ({{version.commit_short}})
</a>
{% else %}
<a
href=
"https://github.com/bui/taiko-web"
target=
"_blank"
class=
"stroke-sub"
alt=
"taiko-web (unknown version)"
>
taiko-web (unknown version)
</a>
{% endif %}
</div>
<script
src=
"/src/js/main.js?{{version.commit_short}}"
></script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment