22< html >
33< head >
44 < title > Music & Guitar Clips | Patterns Matter</ title >
5- < link rel ="stylesheet " type =" text/css " href ="{{ url_for('static', filename='style.css') }} ">
5+ < link rel ="stylesheet " href ="{{ url_for('static', filename='style.css') }} ">
66 < style >
77 .section {
88 margin-bottom : 2.3em ;
1818 margin-left : 1em ;
1919 font-weight : bold;
2020 }
21- .admin-link a : hover { text-decoration : underline; }
21+ .admin-link a : hover {
22+ text-decoration : underline;
23+ }
24+ .download-link {
25+ color : # 6af ;
26+ font-weight : bold;
27+ }
28+ iframe {
29+ margin-top : 0.7em ;
30+ width : 380px ;
31+ height : 240px ;
32+ border : none;
33+ }
2234 </ style >
2335</ head >
2436< body >
2537 < div class ="container ">
26- <!-- Admin Login/Logout button -->
38+ <!-- Admin Login/Logout -->
2739 < div class ="admin-link " style ="text-align: right; margin-bottom: 1em; ">
2840 {% if session.admin %}
2941 < a href ="{{ url_for('logout') }} "> Logout</ a >
@@ -36,9 +48,9 @@ <h1>Music & Guitar Clips</h1>
3648
3749 {% if admin %}
3850 < p style ="margin-top: 1em; ">
39- < a href ="{{ url_for ('add_drive_clip')}} " style ="color: #6af; font-weight:bold; ">
51+ < a href ="{{ url_for('add_drive_clip') }} " style ="color: #6af; font-weight:bold; ">
4052 ➕ Add Drive Clip via Form
41- </ a > |
53+ </ a >
4254 </ p >
4355 {% endif %}
4456
@@ -48,16 +60,20 @@ <h1>Music & Guitar Clips</h1>
4860 < b > {{ title }}</ b > < br >
4961 < small > {{ description }}</ small > < br >
5062
51- < iframe src ="{{ preview }} " width ="380 " height ="240 " allow ="autoplay " allowfullscreen style ="margin-top:0.7em; "> </ iframe >
52- < br >
53- < a href ="{{ download }} " target ="_blank "> Download</ a >
63+ {% if preview %}
64+ < iframe src ="{{ preview }} " allow ="autoplay " allowfullscreen > </ iframe >
65+ {% endif %}
66+
67+ {% if download %}
68+ < br > < a class ="download-link " href ="{{ download }} " target ="_blank "> Download</ a >
69+ {% endif %}
5470 </ div >
5571 {% endfor %}
5672 {% else %}
5773 < p > No music clips listed in < code > drive_music.csv</ code > </ p >
5874 {% endif %}
5975
60- < div style ="margin-top:2em; ">
76+ < div style ="margin-top: 2em; ">
6177 < a href ="{{ url_for('public_home') }} "> Home</ a > |
6278 < a href ="{{ url_for('materials_portal') }} "> Materials Database</ a >
6379 </ div >
0 commit comments