roshcheeku commited on
Commit
52f20dc
·
verified ·
1 Parent(s): 71e3d97

Create dashboard.html

Browse files
Files changed (1) hide show
  1. 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>Stock Dashboard</title>
6
  </head>
7
  <body>
8
- <h1>Multi-Stock Dashboard</h1>
9
- <table border="1">
10
- <tr>
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>