From ac5f0d2c606a432e9cf70c0f40a0e86d660c5551 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 4 Apr 2016 10:55:47 +0000 Subject: [PATCH] Rename show-client-tags template to client-tags The page doesn't merely show the tags but also allows to enable or disable them. While at it, make the page title more descriptive. --- cgi.c | 4 ++-- cgisimple.c | 8 ++++---- templates/{show-client-tags => client-tags} | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) rename templates/{show-client-tags => client-tags} (97%) diff --git a/cgi.c b/cgi.c index 759517d6..76f3f224 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.162 2016/03/17 10:40:53 fabiankeil Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.163 2016/03/30 11:14:05 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -101,7 +101,7 @@ static const struct cgi_dispatcher cgi_dispatchers[] = { "View the source code version numbers", TRUE }, #ifdef FEATURE_CLIENT_TAGS - { "show-client-tags", + { "client-tags", cgi_show_client_tags, "View or toggle the tags that can be set based on the clients address", FALSE }, diff --git a/cgisimple.c b/cgisimple.c index c9aa66a7..8000af48 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.136 2016/03/17 10:40:53 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.137 2016/04/04 10:51:45 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -310,7 +310,7 @@ static void cgi_create_client_tag_form(char *form, size_t size, } snprintf(form, size, - "
\n" + "\n" " \n" " \n" " \n" @@ -354,7 +354,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, assert(rsp); assert(parameters); - if (NULL == (exports = default_exports(csp, "show-client-tags"))) + if (NULL == (exports = default_exports(csp, "client-tags"))) { return JB_ERR_MEMORY; } @@ -439,7 +439,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, return JB_ERR_MEMORY; } - return template_fill_for_cgi(csp, "show-client-tags", exports, rsp); + return template_fill_for_cgi(csp, "client-tags", exports, rsp); } #endif /* def FEATURE_CLIENT_TAGS */ diff --git a/templates/show-client-tags b/templates/client-tags similarity index 97% rename from templates/show-client-tags rename to templates/client-tags index ab1d1d4b..4e9f0210 100644 --- a/templates/show-client-tags +++ b/templates/client-tags @@ -1,6 +1,6 @@ ########################################################## # -# Show-Request-CGI Output template for Privoxy. +# client-tags template for Privoxy. # # # USING HTML TEMPLATES: @@ -74,7 +74,7 @@ - Privoxy@@my-hostname@ + Available client tags - Privoxy@@my-hostname@ @@ -107,7 +107,7 @@ -

Show client tags

+

Available client tags

This page shows the configured