Created
June 25, 2015 19:39
-
-
Save tomaadland/dd57c0d5a1a55e0610e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"> | |
<head> | |
+ <title>Salmon Group Systems</title> | |
+ <meta name="author" content="#{current_user.name}"/> | |
+ <meta name="subject" content="Kapittel print" /> | |
+ <meta name="date" content="#{Time.now}" /> | |
+ <link href="http://fonts.googleapis.com/css?family=Roboto:500,400,300,100" rel="stylesheet"> | |
<style> | |
~ | |
~ @page { | |
~ size: A4; | |
+ margin: 0 30px 100px 30px; background: #ffffff; | |
+ } | |
+ | |
+ @bottom-right-corner {content: "Side " counter(page);} | |
+ @page { @bottom { content: flow(footer);}} | |
+ footer { | |
+ flow: static(footer); | |
+ } | |
+ | |
+ footer p { | |
+ font-family: Roboto; | |
+ font-weight: 100; | |
+ color: #666666; | |
+ background: #E6F3FD; | |
+ text-align: left; | |
+ font-size: 8pt; | |
+ line-height: 12pt; | |
+ padding: 7mm 0 7mm 7mm; | |
+ margin-top: 2mm; | |
+ margin-bottom: 30px; | |
+ } | |
+ | |
+ header { | |
+ font-family: Roboto, Arial, sans-serif; | |
+ margin-top: 5mm; | |
+ background: #A4D2F4; | |
+ color: white; | |
+ padding-bottom: 5mm; | |
+ } | |
+ header h1 { | |
+ font-weight: 400; | |
+ font-size: 13pt; | |
+ } | |
+ header h2 { | |
+ font-weight: 100; | |
+ font-size: 12pt; | |
+ } | |
+ .brand { | |
+ margin-left: 7mm; | |
+ padding-top: 10mm; | |
+ } | |
+ #main { | |
+ margin-left: 7mm; | |
} | |
</style> | |
</head> | |
<body> | |
~ <header> | |
+ <div class="brand"> | |
+ <h1> | |
+ Salmon Group Systems | |
+ </h1> | |
+ <h2> | |
+ #{locality_manual.locality.account.name} - #{locality_manual.locality.name} | |
+ </h2> | |
+ </div> | |
+ </header> | |
+ <div id="main"> | |
<h1>#{locality_chapter.position} #{locality_chapter.title}</h1> | |
</div> | |
<div class="body"> | |
#{locality_chapter.content} | |
</div> | |
~ <footer> | |
~ <p> | |
~ Generert: #{Time.now.strftime('%d.%m.%Y %H:%M')} | |
+ </p> | |
+ </footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment