Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 57b382a

Browse files
committed
Merge pull request #12 from chrisrecher/master
Extend templates and elements for codelab timestamps.
2 parents 491ff2c + c11c9f8 commit 57b382a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

codelab-style.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@
202202
bottom: 16px;
203203
}
204204

205+
#last-updated {
206+
color: var(--google-codelab-footer-text-color);
207+
font-size: 0.9em;
208+
position: fixed;
209+
bottom: 32px;
210+
}
211+
205212
#feedback a {
206213
color: currentcolor;
207214
}

google-codelab.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@
8484
</div>
8585
</template>
8686

87+
<template is="dom-if" if="{{lastUpdated}}" strip-whitespace>
88+
<div id="last-updated">
89+
Last updated on {{lastUpdated}}.
90+
</div>
91+
</template>
92+
8793
</div>
8894

8995
<paper-scroll-header-panel id="headerpanel" fixed main>
@@ -231,6 +237,14 @@ <h2>Would you like to resume where you left off?</h2>
231237
readOnly: true
232238
},
233239

240+
/**
241+
* Last date the codelab was updated, in YYYY-MM-DD format.
242+
*/
243+
lastUpdated: {
244+
type: String,
245+
value: ''
246+
},
247+
234248
/**
235249
* Step elements of the codelab. Currently, only `<google-codelab-step>`
236250
* elements are supported.

0 commit comments

Comments
 (0)