Check-in [10df4ff603]
Not logged in
Overview

SHA1 Hash:10df4ff6037b80a1d712e9306a9fb3ca15eeb774
Date: 2008-11-25 21:56:42
User: eric
Edited Comment: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).
Original Comment:Reinstate "Tags" on the main menu. Allow the new tagview page to hand over to the old (but no user interface for this yet).
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/style.c from [41b3e7ff54] to [f8159149de].

@@ -193,11 +193,11 @@
 @   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>"
+@   html "<a href='$baseurl/tagview'>Tags</a>"
 @ }
 @ if {[hascap r]} {
 @   html "<a href='$baseurl/reportlist'>Bugs</a>"
 @ }
 @ if {[hascap j]} {

Modified src/tagview.c from [ea43e4dea1] to [ea26ba8f0d].

@@ -28,11 +28,11 @@
 #include <assert.h>
 #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
 
@@ -82,10 +82,11 @@
   @ <div style='font-size:smaller'>
   @ <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>
 }
 
 /*
@@ -135,16 +136,17 @@
   db_generic_query_view(zSql, 1);
   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();
   tagview_page_search_miniform();
@@ -190,14 +192,18 @@
   int nTag = 0;
   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){
       tagview_print_timeline(zName, "");