Fossil SCM
Add the meta-viewport header to the repository list page.
Commit
bb7c2d91df62d54f4944d26a17b7f07f0a7c6790667c07a279f48a4667d5d4d9
Parent
6022ad49c483f5e…
1 file changed
+6
+6
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1355,10 +1355,11 @@ | ||
| 1355 | 1355 | allRepo = 0; |
| 1356 | 1356 | } |
| 1357 | 1357 | @ <html> |
| 1358 | 1358 | @ <head> |
| 1359 | 1359 | @ <base href="%s(g.zBaseURL)/" /> |
| 1360 | + @ <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| 1360 | 1361 | @ <title>Repository List</title> |
| 1361 | 1362 | @ </head> |
| 1362 | 1363 | @ <body> |
| 1363 | 1364 | n = db_int(0, "SELECT count(*) FROM sfile"); |
| 1364 | 1365 | if( n>0 ){ |
| @@ -1674,11 +1675,16 @@ | ||
| 1674 | 1675 | if(g.json.isJsonMode){ |
| 1675 | 1676 | json_err(FSL_JSON_E_RESOURCE_NOT_FOUND,NULL,1); |
| 1676 | 1677 | return; |
| 1677 | 1678 | } |
| 1678 | 1679 | #endif |
| 1680 | + @ <html><head> | |
| 1681 | + @ <meta name="viewport" \ | |
| 1682 | + @ content="width=device-width, initial-scale=1.0"> | |
| 1683 | + @ </head><body> | |
| 1679 | 1684 | @ <h1>Not Found</h1> |
| 1685 | + @ </body> | |
| 1680 | 1686 | cgi_set_status(404, "not found"); |
| 1681 | 1687 | cgi_reply(); |
| 1682 | 1688 | } |
| 1683 | 1689 | return; |
| 1684 | 1690 | } |
| 1685 | 1691 |
| --- 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 |