Add product & date on html pages
This commit is contained in:
Родитель
fdf6ebae73
Коммит
d101bf3640
|
@ -18,6 +18,8 @@ def listdirs():
|
|||
channel,
|
||||
date)
|
||||
return render_template('list.html',
|
||||
product=product,
|
||||
date=date,
|
||||
quote=quote,
|
||||
base_url=url,
|
||||
dirs=dirs)
|
||||
|
@ -36,6 +38,8 @@ def crashes():
|
|||
return 'crash' if n == 1 else 'crashes'
|
||||
|
||||
return render_template('crashes.html',
|
||||
product=product,
|
||||
date=date,
|
||||
plural=plural,
|
||||
sortfun=sorted,
|
||||
crashes=crashes)
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<title>Files</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ product }} — {{ date }}</h1>
|
||||
<br>
|
||||
<ul>
|
||||
{% for file in sortfun(crashes.keys()) -%}
|
||||
<li>{{ file }}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<title>Directories</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ product }} — {{ date }}</h1>
|
||||
<br>
|
||||
<ul>
|
||||
{% for d in dirs -%}
|
||||
<li><a href="{{ (base_url + quote(d, safe=''))|safe}}">{{ d }}</a></li>
|
||||
|
|
Загрузка…
Ссылка в новой задаче