Differences From:
File
src/tagview.c
part of check-in
[3d62a9fb39]
- Fix a few C99-isms in the code so that the code will build on older C
compilers.
by
drh on
2008-10-06 11:33:23.
[view]
To:
File
src/tagview.c
part of check-in
[10df4ff603]
- Reinstate "Tags" on the default main menu. Allow the new tagview page to hand
over to the old (but no user interface for this yet).
by
eric on
2008-11-25 21:56:42.
[view]
@@ -29,9 +29,9 @@
#include "config.h"
#include "tagview.h"
-#if 1
+#if 0
# define TAGVIEW_DEFAULT_FILTER "AND t.tagname NOT GLOB 'wiki-*' "
#else
# define TAGVIEW_DEFAULT_FILTER
#endif
@@ -83,8 +83,9 @@
@ <form action='tagview' method='post'>
@ Search for tags:
@ <input type='text' name='like' value='%h((like?like:""))' size='10'/>
@ <input type='submit'/>
+ @ <input type='hidden' name='raw' value='y'/>
@ </form>
@ </div>
}
@@ -136,14 +137,15 @@
free(zSql);
}
/*
-** WEBP AGE: /tagview
+** Internal view of tags
*/
-void old_tagview_page(void){
+void raw_tagview_page(void){
char const * check = 0;
login_check_credentials();
- if( !g.okRdWiki ){
+ /* if( !g.okRdWiki ){ */
+ if( !g.okAdmin ){
login_needed();
}
style_header("Tags");
login_anonymous_available();
@@ -191,12 +193,16 @@
login_check_credentials();
if( !g.okRead ){
login_needed();
}
+ if ( P("tagid") || P("like") || P("raw") ) {
+ raw_tagview_page();
+ return;
+ }
login_anonymous_available();
if( 0 != (zName = P("name")) ){
Blob uuid;
- style_header("Tagged Baselines");
+ style_header("Tagged Artifacts");
@ <h2>%s(zName):</h2>
if( sym_tag_to_uuid(zName, &uuid) > 0){
tagview_print_timeline(zName, "sym-");
}else if( tag_to_uuid(zName, &uuid, "") > 0){