Print!
This commit is contained in:
parent
14dc7feab6
commit
bf60927c2e
3 changed files with 51 additions and 13 deletions
|
@ -48,4 +48,12 @@ img.emoji {
|
|||
vertical-align: middle;
|
||||
width: 2em !important;
|
||||
height: 2em !important;
|
||||
}
|
||||
|
||||
.print {
|
||||
display: none;
|
||||
}
|
||||
@media print {
|
||||
.notprint { display: none; }
|
||||
.print { display: block; }
|
||||
}
|
|
@ -24,15 +24,28 @@ html(lang='en')
|
|||
link(rel='stylesheet', href='/libraries/animate.min.css')
|
||||
link(rel='stylesheet', href='/css/main.css')
|
||||
body
|
||||
include includes/navbar.pug
|
||||
div.content.has-navbar-fixed-top#pageContent
|
||||
div(style='margin-top: 1.5em;')
|
||||
section.section
|
||||
div.container.is-marginless.fullwidth
|
||||
block title
|
||||
if title
|
||||
h1= config.siteTitle + ' - ' + title
|
||||
else if title !== false
|
||||
h1 #{config.siteTitle}
|
||||
include includes/messages.pug
|
||||
block content
|
||||
.print
|
||||
.content
|
||||
section.section
|
||||
.container.is-marginless.fullwidth
|
||||
block print
|
||||
style.
|
||||
.print { display: none !important; }
|
||||
.notprint { display: block !important; }
|
||||
@media print {
|
||||
.notprint-padding { display: none; }
|
||||
nav { display: none}
|
||||
}
|
||||
.notprint
|
||||
include includes/navbar.pug
|
||||
div.content.has-navbar-fixed-top#pageContent
|
||||
div.notprint-padding(style='margin-top: 1.5em;')
|
||||
section.section
|
||||
div.container.is-marginless.fullwidth
|
||||
block title
|
||||
if title
|
||||
h1= config.siteTitle + ' - ' + title
|
||||
else if title !== false
|
||||
h1 #{config.siteTitle}
|
||||
include includes/messages.pug
|
||||
block content
|
|
@ -178,4 +178,21 @@ block content
|
|||
.field
|
||||
.control
|
||||
input.button(type='submit' value=(req.user._id === req.params.user ? 'Add item to wishlist' : 'Pledge item'))
|
||||
script(src='/js/wishlist.js')
|
||||
script(src='/js/wishlist.js')
|
||||
|
||||
block print
|
||||
h1 #{req.params.user}'s Wishlist
|
||||
each item, index in wishlist.filter(item => item.addedBy === req.params.user)
|
||||
.print-gift
|
||||
if index > 0
|
||||
hr(style='background-color: black;')
|
||||
.columns
|
||||
.column.is-4
|
||||
span.is-block.is-size-4.ugc= item.name
|
||||
span.is-block.is-size-5.ugc.has-text-grey= item.url
|
||||
.column
|
||||
span.is-block.is-size-5 Added by: #{item.addedBy}
|
||||
if item.note
|
||||
br
|
||||
.box
|
||||
span.is-block.is-size-5.ugc= item.note
|
||||
|
|
Loading…
Reference in a new issue