changeset 20:fa3c61c375ce

misc: change keyword to public rather than visible
author David Demelier <markand@malikania.fr>
date Tue, 22 Dec 2020 09:25:02 +0100
parents b3c953d94739
children 1e01c6304e23
files page-image.c themes/mini/pages/image.html themes/minimal/pages/image.html themes/siimple/pages/image.html
diffstat 4 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/page-image.c	Tue Dec 22 09:07:10 2020 +0100
+++ b/page-image.c	Tue Dec 22 09:25:02 2020 +0100
@@ -37,13 +37,13 @@
 };
 
 static const char *keywords[] = {
-	"id",
-	"title",
 	"author",
+	"date",
+	"expiration",
 	"filename",
-	"date",
-	"visible",
-	"expiration"
+	"id",
+	"public",
+	"title"
 };
 
 static int
@@ -56,25 +56,25 @@
 
 	switch (keyword) {
 	case 0:
-		khtml_puts(&html, tp->image->id);
+		khtml_puts(&html, tp->image->author);
 		break;
 	case 1:
-		khtml_puts(&html, tp->image->title);
+		khtml_puts(&html, bstrftime("%c", localtime(&tp->image->timestamp)));
 		break;
 	case 2:
-		khtml_puts(&html, tp->image->author);
+		khtml_puts(&html, ttl(tp->image->timestamp, tp->image->duration));
 		break;
 	case 3:
 		khtml_puts(&html, tp->image->filename);
 		break;
 	case 4:
-		khtml_puts(&html, bstrftime("%c", localtime(&tp->image->timestamp)));
+		khtml_puts(&html, tp->image->id);
 		break;
 	case 5:
 		khtml_puts(&html, bprintf(tp->image->visible ? "Yes" : "No"));
 		break;
 	case 6:
-		khtml_puts(&html, ttl(tp->image->timestamp, tp->image->duration));
+		khtml_puts(&html, tp->image->title);
 		break;
 	default:
 		break;
--- a/themes/mini/pages/image.html	Tue Dec 22 09:07:10 2020 +0100
+++ b/themes/mini/pages/image.html	Tue Dec 22 09:25:02 2020 +0100
@@ -48,7 +48,7 @@
 			<label for="duration">Public</label>
 		</div>
 		<div class="col-md-6">
-			<label id="duration">@@visible@@</label>
+			<label id="duration">@@public@@</label>
 		</div>
 	</div>
 
--- a/themes/minimal/pages/image.html	Tue Dec 22 09:07:10 2020 +0100
+++ b/themes/minimal/pages/image.html	Tue Dec 22 09:25:02 2020 +0100
@@ -27,7 +27,7 @@
 			</tr>
 			<tr>
 				<td>Public</td>
-				<td>@@visible@@</td>
+				<td>@@public@@</td>
 			</tr>
 			<tr>
 				<td>Expires in</td>
--- a/themes/siimple/pages/image.html	Tue Dec 22 09:07:10 2020 +0100
+++ b/themes/siimple/pages/image.html	Tue Dec 22 09:25:02 2020 +0100
@@ -21,7 +21,7 @@
 		</div>
 		<div class="siimple-grid-row">
 			<div class="siimple-grid-col siimple-grid-col--2"><strong>Public</strong></div>
-			<div class="siimple-grid-col siimple-grid-col--10">@@visible@@</div>
+			<div class="siimple-grid-col siimple-grid-col--10">@@public@@</div>
 		</div>
 		<div class="siimple-grid-row">
 			<div class="siimple-grid-col siimple-grid-col--2"><strong>Expires in</strong></div>