Add a basic page header.
This commit is contained in:
parent
5adeec2f91
commit
36a047ddfd
@ -1,6 +1,9 @@
|
||||
body {
|
||||
background: #eee;
|
||||
}
|
||||
header {
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
div.photos {
|
||||
display: flex;
|
||||
|
@ -6,7 +6,9 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>Photo details</h1>
|
||||
|
||||
<p>{{photo.path}}</p>
|
||||
<p><img src="/view/{{photo.id}}"></p>
|
||||
{{#photo.grade}}<p>Betyg: {{.}}</p>{{/photo.grade}}
|
||||
|
6
templates/head.tpl
Normal file
6
templates/head.tpl
Normal file
@ -0,0 +1,6 @@
|
||||
<header>
|
||||
<a href="/">/</a>
|
||||
· <a href="/tag/">Taggar</a>
|
||||
· <a href="/person/">Personer</a>
|
||||
· <a href="/place/">Platser</a>
|
||||
</header>
|
@ -6,12 +6,9 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>Photo index</h1>
|
||||
|
||||
<p><a href="/tag/">Taggar</a>
|
||||
· <a href="/person/">Personer</a>
|
||||
· <a href="/place/">Platser</a></p>
|
||||
|
||||
<div class="photos">
|
||||
{{#photos}}
|
||||
<p><a href="/details/{{id}}"><img src="/icon/{{id}}"></a></p>
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>Photo people</h1>
|
||||
|
||||
<ul class="allpeople">{{#people}}
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>{{person.name}}</h1>
|
||||
|
||||
<div class="photos">
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>{{place.place}}</h1>
|
||||
|
||||
<div class="photos">
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>Photo places</h1>
|
||||
|
||||
<ul class="allplaces">{{#places}}
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>{{tag.tag}}</h1>
|
||||
|
||||
<div class="photos">
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="/static/photos.css" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
{{> head}}
|
||||
<h1>Photo tags</h1>
|
||||
|
||||
<ul class="alltags">{{#tags}}
|
||||
|
Loading…
Reference in New Issue
Block a user