-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Flight templating engine with Twig
Also cleanup the default tables template.
- Loading branch information
1 parent
6cff4af
commit 8181e0b
Showing
9 changed files
with
110 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html> | ||
<head> | ||
<title>LineageOTA Builds for {{ branding['name'] }}</title> | ||
</head> | ||
<body> | ||
<h1>Currently available builds for {{ branding['name'] }}</h1> | ||
{% for build in builds %} | ||
<a href="{{ build['url'] }}">{{ build['filename'] }}</a><br> | ||
{% endfor %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<html> | ||
<head> | ||
<title>LineageOTA Builds for {{ branding['name'] }}</title> | ||
<link rel="stylesheet" href="views/ota-list-tables.css"> | ||
</head> | ||
<body> | ||
<h1>Currently available builds for {{ branding['name'] }}</h1> | ||
<ul> | ||
{% for model,build in sortedBuilds %} | ||
{% if deviceNames[model] is defined %} | ||
<li><a href="#{{ model }}">{{ model }}</a> ({{ vendorNames[model] }} {{ deviceNames[model] }})</li> | ||
{% else %} | ||
<li><a href="#{{ model }}">{{ model }}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
|
||
<p><hr /></p> | ||
|
||
{% for model,builds in sortedBuilds %} | ||
<h2 id="{{ model }}">{{ model }}</h2> | ||
{% if deviceNames[model] is defined %} | ||
<h3>( {{ vendorNames[model] }} {{ deviceNames[model] }})</h3> | ||
{% endif %} | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Channel</th> | ||
<th>Version</th> | ||
<th>Filename</th> | ||
<th>Size</th> | ||
<th>Source</th> | ||
<th>Date<br>(Y//M/D)</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for build in builds %} | ||
<tr> | ||
<td>{{ build['channel'] }}</td> | ||
<td>{{ build['version'] }}</td> | ||
<td><a href="{{ build['url'] }}">{{ build['filename'] }}</a><br>[md5sum: {{ build['md5sum'] }}]</td> | ||
<td>{% set filename = build['filename'] %}{{ formatedFileSizes[filename] }}</td> | ||
|
||
{% if build['url'] matches '/github\.com/' %} | ||
<td><a href="' . {{ branding['LocalURL'] }}">local</a></td> | ||
{% else %} | ||
<td><a href="' . {{ branding['GithubURL'] }}">Github</a></td> | ||
{% endif %} | ||
|
||
<td>{{ build['timestamp'] | date('Y/m/d') }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
<p><hr /></p> | ||
|
||
{% endfor %} | ||
|
||
</body> | ||
</html> |