commit - 3ff00eade6c3b17a852658c28502edbfc83ef25b
commit + bf80b15220f51490025e916633cdd70816113604
blob - aa31a4194e9ded7a28469e87db5cb864a4035bbe
blob + 7ee40c3b69dbf14194f2d61478622267175c57c1
--- gotwebd/files/htdocs/gotwebd/gotweb.css
+++ gotwebd/files/htdocs/gotwebd/gotweb.css
color: blue;
}
-.back_white {
- background-color: #ffffff;
-}
-.back_lightgray {
- background-color: #d8f3ef;
-}
-
#logo {
height: 50px;
}
clear: left;
float: left;
width: 100%;
+ background-color: #d8f3ef;
}
+.tree_wrapper:nth-child(even) {
+ background-color: #ffffff;
+}
.tree_line {
clear: left;
float: left;
blob - 35b380e1800015f0b0fc66fd8de05660532b58d9
blob + 1c274b225d0e710d16528c4b9970348bb3bec74e
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
struct repo_dir *repo_dir = t->repo_dir;
char *id_str = NULL;
char *path = NULL, *in_repo_path = NULL, *build_folder = NULL;
- char *modestr = NULL, *name = NULL, *class = NULL;
- int nentries, i, class_flip = 0;
+ char *modestr = NULL, *name = NULL;
+ int nentries, i;
TAILQ_INIT(&refs);
}
}
- if (class_flip == 0) {
- class = strdup("back_lightgray");
- if (class == NULL) {
- error = got_error_from_errno("strdup");
- goto done;
- }
- class_flip = 1;
- } else {
- class = strdup("back_white");
- if (class == NULL) {
- error = got_error_from_errno("strdup");
- goto done;
- }
- class_flip = 0;
- }
-
name = strdup(got_tree_entry_get_name(te));
if (name == NULL) {
error = got_error_from_errno("strdup");
"<div class='tree_wrapper'>\n") == -1)
goto done;
- if (fcgi_gen_response(c, "<div class='tree_line' "
- "class='") == -1)
- goto done;
- if (fcgi_gen_response(c, class) == -1)
- goto done;
- if (fcgi_gen_response(c, "'>") == -1)
+ if (fcgi_gen_response(c, "<div class='tree_line'>") == -1)
goto done;
if (fcgi_gen_response(c, "<a class='diff_directory' "
if (fcgi_gen_response(c, "</div>\n") == -1)
goto done;
- if (fcgi_gen_response(c, "<div class='tree_line_blank' "
- "class='") == -1)
+ if (fcgi_gen_response(c, "<div class='tree_line_blank'>") == -1)
goto done;
- if (fcgi_gen_response(c, class) == -1)
- goto done;
- if (fcgi_gen_response(c, "'>") == -1)
- goto done;
if (fcgi_gen_response(c, " ") == -1)
goto done;
if (fcgi_gen_response(c, "</div>\n") == -1)
if (fcgi_gen_response(c,
"<div class='tree_wrapper'>\n") == -1)
goto done;
- if (fcgi_gen_response(c, "<div class='tree_line' "
- "class='") == -1)
- goto done;
- if (fcgi_gen_response(c, class) == -1)
- goto done;
- if (fcgi_gen_response(c, "'>") == -1)
+ if (fcgi_gen_response(c, "<div class='tree_line'>") == -1)
goto done;
if (fcgi_gen_response(c,
if (fcgi_gen_response(c, "</div>\n") == -1)
goto done;
- if (fcgi_gen_response(c, "<div class='tree_line_blank' "
- "class='") == -1)
- goto done;
- if (fcgi_gen_response(c, class) == -1)
+ if (fcgi_gen_response(c, "<div class='tree_line_blank'>") == -1)
goto done;
- if (fcgi_gen_response(c, "'>") == -1)
- goto done;
if (fcgi_gen_response(c,
"<a href='?index_page=") == -1)
name = NULL;
free(modestr);
modestr = NULL;
- free(class);
- class = NULL;
}
done:
free(id_str);
free(modestr);
free(path);
free(name);
- free(class);
got_ref_list_free(&refs);
if (commit)
got_object_commit_close(commit);