Skip to content

Commit e4888d2

Browse files
committed
project.html
Added placeholder download button buttons do not print
1 parent 56afe8b commit e4888d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

teachprogramming/lib/static/projects.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
h1 {page-break-before: always;}
2626
h1:first-of-type {page-break-before: avoid;}
2727

28-
#navigation, #source { /* and (min-width: 500px) */
28+
button { /* and (min-width: 500px) */
2929
display: none;
3030
}
3131
table {page-break-inside:auto;}
@@ -108,12 +108,15 @@
108108
h('div',{}, version ? [
109109
// render diff
110110
h('pre',{class: 'diff'}, renderDiff(data.diffs[language][version])),
111-
h('button',{action: 'toggle_full'},'toggle full'),
112111
h('button',{action: 'copy_full'},'copy full'),
112+
h('button',{action: 'download', 'data-filename':"TODO"},'download'),
113+
h('button',{action: 'toggle_full'},'toggle full'),
113114
h('pre',{class: 'full hidden'}, renderCodeFull(data.languages[language][version])),
114115
]:[
115116
// base version renders full starting point without diff
116117
h('pre',{class: 'full'}, renderCodeFull(data.languages[language][version])),
118+
h('button',{action: 'copy_full'},'copy full'),
119+
h('button',{action: 'download', 'data-filename':"TODO"},'download'),
117120
])
118121
]).flat()
119122
]).flat())

0 commit comments

Comments
 (0)