Subversion Repositories RepoView

Rev

Rev 53 | Rev 55 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 54
Line 1... Line 1...
1
/* $Id: modern.c 53 2024-08-22 06:03:12Z nishi $ */
1
/* $Id: modern.c 54 2024-08-22 06:03:31Z nishi $ */
2
 
2
 
3
#include "rv_query.h"
3
#include "rv_query.h"
4
 
4
 
5
#include "rv_util.h"
5
#include "rv_util.h"
6
#include "rv_version.h"
6
#include "rv_version.h"
Line 110... Line 110...
110
		}
110
		}
111
	}
111
	}
112
	return r;
112
	return r;
113
}
113
}
114
 
114
 
-
 
115
int fcounter = 0;
115
void list_repo(const char* name, const char* rev) {
116
void list_repo(const char* name, const char* rev) {
116
	char* showname = html_escape(name);
117
	char* showname = html_escape(name);
117
	char* urluser = url_escape(user);
118
	char* urluser = url_escape(user);
118
	char* urlrepo = url_escape(name);
119
	char* urlrepo = url_escape(name);
119
	add_data(&page, "<tr style=\"background-color: #");
120
	add_data(&page, "<tr style=\"background-color: #");
Line 139... Line 140...
139
	free(showname);
140
	free(showname);
140
	free(urluser);
141
	free(urluser);
141
	free(urlrepo);
142
	free(urlrepo);
142
}
143
}
143
 
144
 
144
int fcounter = 0;
-
 
145
void list_files(const char* pathname) {
145
void list_files(const char* pathname) {
146
	if(fcounter == 0) {
146
	if(fcounter == 0) {
147
		add_data(&nav, "<li><a href=\"#filelist\">File List</a></li>\n");
147
		add_data(&nav, "<li><a href=\"#filelist\">File List</a></li>\n");
148
		add_data(&page, "<h2 id=\"filelist\">File List</h2>\n");
148
		add_data(&page, "<h2 id=\"filelist\">File List</h2>\n");
149
		add_data(&page, "<tr style=\"background-color: #D2E1F6;\"><th>Name</th><th>Size</th></tr>\n");
149
		add_data(&page, "<tr style=\"background-color: #D2E1F6;\"><th>Name</th><th>Size</th></tr>\n");