Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Disable tag URLs without sufficient permission, display a message when there are no tags, provide dummy Javascript functions for the tag timeline. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | eric-tagview-rework | trunk |
| Files: | files | file ages | folders |
| SHA1: |
5b8774957565adc388abf0dcae6903ce |
| User & Date: | eric 2008-09-06 13:09:44.000 |
Context
|
2008-09-06
| ||
| 13:16 | Merge mainline into tagview branch ... (check-in: a55a0a49a3 user: eric tags: eric-tagview-rework, trunk) | |
| 13:09 | Disable tag URLs without sufficient permission, display a message when there are no tags, provide dummy Javascript functions for the tag timeline. ... (check-in: 5b87749575 user: eric tags: eric-tagview-rework, trunk) | |
|
2008-09-03
| ||
| 18:52 | Clarify some comments in name.c ... (check-in: 5113ab5981 user: eric tags: eric-tagview-rework, trunk) | |
Changes
Changes to src/style.c.
| ︙ | ︙ | |||
178 179 180 181 182 183 184 |
@ html "<a href='$baseurl$index_page'>Home</a>"
@ if {[hascap h]} {
@ html "<a href='$baseurl/dir'>Files</a>"
@ }
@ if {[hascap o]} {
@ html "<a href='$baseurl/leaves'>Leaves</a>"
@ html "<a href='$baseurl/timeline'>Timeline</a>"
| | | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
@ html "<a href='$baseurl$index_page'>Home</a>"
@ if {[hascap h]} {
@ html "<a href='$baseurl/dir'>Files</a>"
@ }
@ if {[hascap o]} {
@ html "<a href='$baseurl/leaves'>Leaves</a>"
@ html "<a href='$baseurl/timeline'>Timeline</a>"
@ html "<a href='$baseurl/tagview'>Tags</a>"
@ }
@ if {[hascap r]} {
@ html "<a href='$baseurl/reportlist'>Bugs</a>"
@ }
@ if {[hascap j]} {
@ html "<a href='$baseurl/wiki'>Wiki</a>"
@ }
|
| ︙ | ︙ |
Changes to src/tagview.c.
| ︙ | ︙ | |||
183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
}
/*
** WEBPAGE: /tagview
*/
void tagview_page(void){
char const *zName = 0;
login_check_credentials();
if( !g.okRead ){
login_needed();
}
login_anonymous_available();
if( 0 != (zName = P("name")) ){
Blob uuid;
| > | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
}
/*
** WEBPAGE: /tagview
*/
void tagview_page(void){
char const *zName = 0;
int zTcount = 0;
login_check_credentials();
if( !g.okRead ){
login_needed();
}
login_anonymous_available();
if( 0 != (zName = P("name")) ){
Blob uuid;
|
| ︙ | ︙ | |||
218 219 220 221 222 223 224 225 |
" AND tagname NOT GLOB 'wiki-*'"
" AND tagname NOT GLOB 'tkt-*'"
" ORDER BY tagname",
MAX_INT_TAG
);
@ <ul>
while( db_step(&q)==SQLITE_ROW ){
const char *name = db_column_text(&q, 0);
| > > | | | | | | | > > > > > | > > > > > > > > > > > > > > > > > > > > > | 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
" AND tagname NOT GLOB 'wiki-*'"
" AND tagname NOT GLOB 'tkt-*'"
" ORDER BY tagname",
MAX_INT_TAG
);
@ <ul>
while( db_step(&q)==SQLITE_ROW ){
zTcount++;
const char *name = db_column_text(&q, 0);
if( g.okHistory ){
if( strncmp(name, prefix, preflen)==0 ){
@ <li><a href=%s(g.zBaseURL)/tagview?name=%s(name+preflen)>
@ %s(name+preflen)</a>
}else{
@ <li><a href=%s(g.zBaseURL)/tagview?name=%s(name)>
@ %s(name)</a>
}
}else{
if( strncmp(name, prefix, preflen)==0 ){
@ <li><strong>%s(name+preflen)</strong>
}else{
@ <li><strong>%s(name)</strong>
}
}
if( strncmp(name, prefix, preflen)==0 ){
@ (symbolic label)
}
@ </li>
}
@ </ul>
if( zTcount == 0) {
@ There are no relevant tags.
}
db_finalize(&q);
}
/*
* Put in dummy functions since www_print_timeline has generated calls to
* them. Some browsers don't seem to care, but better to be safe.
* Actually, it would be nice to use the functions on this page, but at
* the moment it looks to be too difficult.
*/
@ <script>
@ function xin(id){
@ }
@ function xout(id){
@ }
@ </script>
style_footer();
}
|