diff --git a/static/css/tailwind.css b/static/css/tailwind.css index 9a75909..464c063 100644 --- a/static/css/tailwind.css +++ b/static/css/tailwind.css @@ -1240,6 +1240,10 @@ input[type="range"]::-ms-fill-lower { padding-bottom: 2rem; } +.pt-4 { + padding-top: 1rem; +} + .text-left { text-align: left; } diff --git a/store/handler.go b/store/handler.go index 5649b3c..61cb3c2 100644 --- a/store/handler.go +++ b/store/handler.go @@ -86,6 +86,7 @@ func getVotes(id string) ([]vote.Vote, error) { return nil, err } var ( + i string e string c vote.Choice ts time.Time @@ -94,7 +95,7 @@ func getVotes(id string) ([]vote.Vote, error) { votes = []vote.Vote{} ) for result.Next() { - if err = result.Scan(&e, &dbChoice, &dbTimestamp); err != nil { + if err = result.Scan(&i, &e, &dbChoice, &dbTimestamp); err != nil { return nil, err } @@ -106,7 +107,7 @@ func getVotes(id string) ([]vote.Vote, error) { return nil, err } - v := vote.NewVoteWithTimestamp(e, c, ts) + v := vote.NewVoteWithTimestamp(i, e, c, ts) votes = append(votes, v) } diff --git a/store/prepared.go b/store/prepared.go index 5286dbb..b7a00e8 100644 --- a/store/prepared.go +++ b/store/prepared.go @@ -125,6 +125,7 @@ func initStmtVoteSelect(db *sql.DB) { var err error if voteSelect, err = db.Prepare(` SELECT + id, elector, choice, timestamp diff --git a/tmpl/voting.html b/tmpl/voting.html index 24936bd..4d83897 100644 --- a/tmpl/voting.html +++ b/tmpl/voting.html @@ -118,4 +118,28 @@ Quorum: FAILED
{{ end }} + {{ if not .Voting.Anonymous }} ++ {{ $vote.Choice }} + | ++ {{ $vote.Elector }} + | ++ {{ $vote.Id }} + | +