This commit is contained in:
Peter Stuifzand 2018-09-29 15:41:12 +02:00
parent 746f42b82a
commit 00b73b8ac2

View File

@ -33,7 +33,7 @@ var indexPageTemplate = `<html>
<form action="/moment" class="form" method="post">
<div class="field">
<label class="label">What did you do in the last <em class="js-counter"></em> minutes:</label>
<div class="control"><input type="text" name="memo" class="input"></div>
<div class="control"><input type="text" name="memo" class="input" autofocus placeholder="add note / accomplishments"></div>
</div>
<div class="field">
<div class="control">
@ -223,6 +223,7 @@ func loadMoments(db *bolt.DB, today string) ([]Moment, error) {
moments = append(moments, moment)
}
// TODO(peter): if there are no moments, here we can add a moment for the start of the day
return nil
})