Spaces:
Sleeping
Sleeping
Create dashboard.html
Browse files- templates/dashboard.html +4 -19
templates/dashboard.html
CHANGED
|
@@ -2,26 +2,11 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<title>
|
| 6 |
</head>
|
| 7 |
<body>
|
| 8 |
-
<h1>
|
| 9 |
-
<
|
| 10 |
-
|
| 11 |
-
<th>Symbol</th>
|
| 12 |
-
<th>Current Price</th>
|
| 13 |
-
<th>Change</th>
|
| 14 |
-
<th>Change (%)</th>
|
| 15 |
-
</tr>
|
| 16 |
-
{% for symbol, data in stock_data.items() %}
|
| 17 |
-
<tr>
|
| 18 |
-
<td>{{ symbol }}</td>
|
| 19 |
-
<td>${{ data.current_price }}</td>
|
| 20 |
-
<td>${{ data.change }}</td>
|
| 21 |
-
<td>{{ data.change_percent | round(2) }}%</td>
|
| 22 |
-
</tr>
|
| 23 |
-
{% endfor %}
|
| 24 |
-
</table>
|
| 25 |
-
<a href="/">Back</a>
|
| 26 |
</body>
|
| 27 |
</html>
|
|
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<title>Error {{ error_code }}</title>
|
| 6 |
</head>
|
| 7 |
<body>
|
| 8 |
+
<h1>Error {{ error_code }}</h1>
|
| 9 |
+
<p>{{ error_message }}</p>
|
| 10 |
+
<a href="/">Back to Home</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
</body>
|
| 12 |
</html>
|