aboutsummaryrefslogtreecommitdiff
path: root/t_idea
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-09 12:29:35 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-09 12:30:10 +0200
commit01679e4633eac76ce43d9d07dfa57b2548c97cc5 (patch)
treec5b0a3bb560050bc2125d17bde6b3bf4afd32a33 /t_idea
parentcffe6351a9f8e2777b6d4c078c89bd8f215de603 (diff)
Change CreatedAt to LastUpdated
- The field now changes when the idea is edited.
Diffstat (limited to 't_idea')
-rw-r--r--t_idea/edit.html2
-rw-r--r--t_idea/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/t_idea/edit.html b/t_idea/edit.html
index 725a111..7af6b0b 100644
--- a/t_idea/edit.html
+++ b/t_idea/edit.html
@@ -34,7 +34,7 @@ input[name="title"] {
<form action="/idea/edit/" method="post">
<input name="title" type="text" value="{{.Title}}"><br>
<textarea name="text" rows=6 required>{{.Text}}</textarea>
- <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p>
+ <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.LastUpdated}}</span></p>
<input type="submit" value="confirm">
</form>
<form action="/ideas/" method="get">
diff --git a/t_idea/index.html b/t_idea/index.html
index 97b68dd..4b1d6c0 100644
--- a/t_idea/index.html
+++ b/t_idea/index.html
@@ -29,7 +29,7 @@
<div class="idea">
<h2 class="title">{{.Title}}</h2>
<pre class="text">{{.Text}}</pre>
- <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p>
+ <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.LastUpdated}}</span></p>
<form action="/idea/delete/" method="post">
<input type="hidden" name="title" value="{{.Title}}">
<input type="submit" value="delete">