1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Show doc created/revised dates

Fixes #229
This commit is contained in:
McMatts 2019-05-30 15:10:28 +01:00
parent 91a3c59cd2
commit 40237344e2
2 changed files with 29 additions and 26 deletions

View file

@ -42,17 +42,6 @@
</Layout::Grid::Sidebar>
<Layout::Grid::Content>
{{document/version-picker
roles=roles
pages=pages
space=folder
spaces=folders
document=document
versions=versions
permissions=permissions
contributionStatus=contributionStatus
approvalStatus=approvalStatus}}
{{document/document-meta
tab=tab
roles=roles
@ -72,6 +61,12 @@
<div class="document-heading">
<h1 class="name">{{document.name}}</h1>
<h2 class="desc">{{document.excerpt}}</h2>
<div class="dates">
{{formatted-date document.created}}
{{#if (not-eq document.created document.revised)}}
&mdash; revised {{formatted-date document.revised}}
{{/if}}
</div>
</div>
</div>

View file

@ -140,21 +140,7 @@
margin: 0;
font-size: 0.9rem;
font-weight: 400;
color: map-get($gray-shades, 700);
}
> .document-heading {
.name {
color: map-get($gray-shades, 900);
font-size: 2.2rem;
font-weight: 700;
}
.desc {
color: map-get($gray-shades, 800);
font-size: 1.2rem;
font-weight: 500;
}
color: map-get($green-shades, 700);
}
> .label-version {
@ -176,4 +162,26 @@
vertical-align: middle;
cursor: pointer;
}
> .document-heading {
.name {
color: map-get($gray-shades, 900);
font-size: 2.2rem;
font-weight: 700;
}
.desc {
color: map-get($gray-shades, 800);
font-size: 1.2rem;
font-weight: 500;
}
> .dates {
margin-bottom: 2rem;
font-size: 1rem;
font-weight: 300;
font-style: italic;
color: map-get($gray-shades, 700);
}
}
}