srctree

Gregory Mullen parent f45d6120 901d9ffc
remove dead template

src/endpoints/repos.zig added: 24, removed: 27, total 0
@@ -285,13 +285,13 @@ fn dupeDir(a: Allocator, name: []const u8) ![]u8 {
return out;
}
 
const NewRepoPage = Template.PageData("repo-new.html");
fn newRepo(ctx: *Context) Error!void {
var tmpl = Template.find("repo.html");
 
ctx.putContext("Files", .{ .slice = "<h3>New Repo!</h3><p>Todo, add content here</p>" }) catch return error.Unknown;
ctx.response.status = .ok;
 
try ctx.sendTemplate(&tmpl);
//try ctx.sendTemplate(&tmpl);
return error.NotImplemented;
}
 
fn treeBlob(ctx: *Context) Error!void {
 
src/errors.zig added: 24, removed: 27, total 0
@@ -3,6 +3,7 @@ pub const ServerError = error{
OutOfMemory,
NoSpaceLeft,
ReqResInvalid,
NotImplemented,
Unknown,
};
 
 
src/zwsgi.zig added: 24, removed: 27, total 0
@@ -102,6 +102,7 @@ fn serveUnix(zwsgi: *ZWSGI) !void {
std.debug.dumpStackTrace(trace.*);
}
},
error.NotImplemented,
error.Unknown,
error.ReqResInvalid,
error.AndExit,
@@ -167,6 +168,7 @@ fn serveHttp(zwsgi: *ZWSGI) !void {
std.debug.dumpStackTrace(trace.*);
}
},
error.NotImplemented,
error.Unknown,
error.ReqResInvalid,
error.AndExit,
 
filename was Deleted added: 24, removed: 27, total 0
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>srctree</title>
<_meta_head.html>
</head>
<body>
<_body_header.html>
<content>
 
</content>
</body>
</html>
 
ev/null added: 24, removed: 27, total 0
@@ -1,19 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>srctree</title>
<_meta_head.html>
</head>
<body>
<_body_header.html>
<content>
<div class="act-btns">
<a class="btn" href="<Repo_name ORNULL>/commits">commits</a>
<a class="btn" href="<Repo_name ORNULL>/issues/new">New Issue</a>
<a class="btn" href="<Repo_name ORNULL>/diffs/new">Suggest Diff</a>
</div>
<Repo>
<Readme>
</content>
</body>
</html>