File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 2222 .download-link { color : # 6af ; font-weight : bold; }
2323 .admin-link a { color : # fff ; text-decoration : none; margin-left : 1em ; font-weight : bold; }
2424 .admin-link a : hover { text-decoration : underline; }
25+
26+ .delete-btn {
27+ margin-top : 0.7em ;
28+ margin-left : 1em ;
29+ background : # c33 ;
30+ border : none;
31+ color : # fff ;
32+ font-weight : bold;
33+ padding : 0.3em 0.7em ;
34+ border-radius : 6px ;
35+ cursor : pointer;
36+ }
37+ .delete-btn : hover {
38+ background : # a11 ;
39+ }
2540</ style >
2641{% endblock %}
2742
@@ -66,19 +81,21 @@ <h1>Music & Guitar Clips</h1>
6681 </ audio >
6782 {% else %}
6883 < a href ="{{ preview }} " target ="_blank "> {{ preview }}</ a >
84+ {% endif %}
85+
86+ {% if download %}
87+ < br > < a class ="download-link " href ="{{ download }} " target ="_blank "> Download</ a >
88+ {% endif %}
89+
6990 {% if admin %}
7091 < form action ="{{ url_for('delete_clip') }} " method ="post " style ="display:inline; "
71- onsubmit ="return confirm('Delete this clip from the catalog?'); ">
92+ onsubmit ="return confirm('Delete this clip from the catalog?'); ">
7293 < input type ="hidden " name ="title " value ="{{ title }} ">
7394 < input type ="hidden " name ="preview " value ="{{ preview }} ">
7495 < input type ="hidden " name ="download " value ="{{ download }} ">
7596 < button type ="submit " class ="delete-btn "> Delete</ button >
7697 </ form >
7798 {% endif %}
78-
79- {% if download %}
80- < br > < a class ="download-link " href ="{{ download }} " target ="_blank "> Download</ a >
81- {% endif %}
8299 </ div >
83100 {% endfor %}
84101 {% else %}
@@ -89,5 +106,5 @@ <h1>Music & Guitar Clips</h1>
89106 < a href ="{{ url_for('public_home') }} "> Home</ a > |
90107 < a href ="{{ url_for('materials_portal') }} "> Materials Database</ a >
91108 </ div >
92- </ div >
109+ </ div >
93110{% endblock %}
You can’t perform that action at this time.
0 commit comments