Fossil SCM

Add the meta-viewport header to the repository list page.

drh 2018-08-23 15:07 trunk
Commit bb7c2d91df62d54f4944d26a17b7f07f0a7c6790667c07a279f48a4667d5d4d9
1 file changed +6
+6
--- src/main.c
+++ src/main.c
@@ -1355,10 +1355,11 @@
13551355
allRepo = 0;
13561356
}
13571357
@ <html>
13581358
@ <head>
13591359
@ <base href="%s(g.zBaseURL)/" />
1360
+ @ <meta name="viewport" content="width=device-width, initial-scale=1.0">
13601361
@ <title>Repository List</title>
13611362
@ </head>
13621363
@ <body>
13631364
n = db_int(0, "SELECT count(*) FROM sfile");
13641365
if( n>0 ){
@@ -1674,11 +1675,16 @@
16741675
if(g.json.isJsonMode){
16751676
json_err(FSL_JSON_E_RESOURCE_NOT_FOUND,NULL,1);
16761677
return;
16771678
}
16781679
#endif
1680
+ @ <html><head>
1681
+ @ <meta name="viewport" \
1682
+ @ content="width=device-width, initial-scale=1.0">
1683
+ @ </head><body>
16791684
@ <h1>Not Found</h1>
1685
+ @ </body>
16801686
cgi_set_status(404, "not found");
16811687
cgi_reply();
16821688
}
16831689
return;
16841690
}
16851691
--- src/main.c
+++ src/main.c
@@ -1355,10 +1355,11 @@
1355 allRepo = 0;
1356 }
1357 @ <html>
1358 @ <head>
1359 @ <base href="%s(g.zBaseURL)/" />
 
1360 @ <title>Repository List</title>
1361 @ </head>
1362 @ <body>
1363 n = db_int(0, "SELECT count(*) FROM sfile");
1364 if( n>0 ){
@@ -1674,11 +1675,16 @@
1674 if(g.json.isJsonMode){
1675 json_err(FSL_JSON_E_RESOURCE_NOT_FOUND,NULL,1);
1676 return;
1677 }
1678 #endif
 
 
 
 
1679 @ <h1>Not Found</h1>
 
1680 cgi_set_status(404, "not found");
1681 cgi_reply();
1682 }
1683 return;
1684 }
1685
--- src/main.c
+++ src/main.c
@@ -1355,10 +1355,11 @@
1355 allRepo = 0;
1356 }
1357 @ <html>
1358 @ <head>
1359 @ <base href="%s(g.zBaseURL)/" />
1360 @ <meta name="viewport" content="width=device-width, initial-scale=1.0">
1361 @ <title>Repository List</title>
1362 @ </head>
1363 @ <body>
1364 n = db_int(0, "SELECT count(*) FROM sfile");
1365 if( n>0 ){
@@ -1674,11 +1675,16 @@
1675 if(g.json.isJsonMode){
1676 json_err(FSL_JSON_E_RESOURCE_NOT_FOUND,NULL,1);
1677 return;
1678 }
1679 #endif
1680 @ <html><head>
1681 @ <meta name="viewport" \
1682 @ content="width=device-width, initial-scale=1.0">
1683 @ </head><body>
1684 @ <h1>Not Found</h1>
1685 @ </body>
1686 cgi_set_status(404, "not found");
1687 cgi_reply();
1688 }
1689 return;
1690 }
1691

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button