Commit Diff


commit - b6aaac423b0e8d6be903600bf8f72f88ed5a1ae3
commit + 9cb2f6aa783710727e8c5ac176b8416a700cd108
blob - 5a3e47ffe2145366aafebb85914b4b4d53f718d8
blob + 64774a387b4d1b8e4dc9db4eccd9de7a79052a91
--- stagit-index.c
+++ stagit-index.c
@@ -12,7 +12,7 @@ static git_repository *repo;
 
 static const char *relpath = "";
 
-static char description[255] = "Repositories";
+static char description[255] = "git.btxx.org";
 static char *name = "";
 static char owner[255];
 
@@ -103,13 +103,12 @@ writeheader(FILE *fp)
 		"<title>", fp);
 	xmlencode(fp, description, strlen(description));
 	fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
-	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
+	fprintf("<style>*{box-sizing:border-box;}body{font-family:sans-serif;font-size:14px;margin:1rem auto;max-width:800px;}h1{margin:0;}table{width:100%;}table#log tbody > tr td:first-of-type{min-width:120px;}pre#blob{overflow:scroll;}</style>", fp);
 	fputs("</head>\n<body>\n", fp);
-	fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
-	        "<td><span class=\"desc\">", relpath);
+	fprintf(fp, "<table>\n<tr><td><span class=\"desc\">", relpath);
 	xmlencode(fp, description, strlen(description));
-	fputs("</span></td></tr><tr><td></td><td>\n"
-		"</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
+	fputs("</span></td></tr></table>\n<hr/>\n"
+		"<div id=\"content\">\n"
 		"<table id=\"index\"><thead>\n"
 		"<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
 		"<td><b>Last commit</b></td></tr>"
blob - ca5de2eefcc0e30f02517351c8a3803950c70bf7
blob + bdb9f96b35f2d2669779b3f0fb569743cec0ad61
--- stagit.c
+++ stagit.c
@@ -519,11 +519,9 @@ writeheader(FILE *fp, const char *title)
 	fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
 	xmlencode(fp, name, strlen(name));
 	fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
-	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
-	fputs("</head>\n<body>\n<table><tr><td>", fp);
-	fprintf(fp, "<a href=\"../%s\"><img src=\"../%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
-	        relpath, relpath);
-	fputs("</td><td><h1>", fp);
+	fprintf("<style>*{box-sizing:border-box;}body{font-family:sans-serif;font-size:14px;margin:1rem auto;max-width:800px;}h1{margin:0;}table{width:100%;}table#log tbody > tr td:first-of-type{min-width:120px;}pre#blob{overflow:scroll;}</style>", fp);
+	fputs("</head>\n<body>\n<table>", fp);
+	fputs("<tr><td><h1>", fp);
 	xmlencode(fp, strippedname, strlen(strippedname));
 	fputs("</h1><span class=\"desc\">", fp);
 	xmlencode(fp, description, strlen(description));
@@ -535,7 +533,7 @@ writeheader(FILE *fp, const char *title)
 		xmlencode(fp, cloneurl, strlen(cloneurl));
 		fputs("</a></td></tr>", fp);
 	}
-	fputs("<tr><td></td><td>\n", fp);
+	fputs("<tr><td>\n", fp);
 	fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
 	fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);
 	fprintf(fp, "<a href=\"%srefs.html\">Refs</a>", relpath);