You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2006/11/28 10:44:04 UTC
svn commit: r479963 - /tomcat/connectors/trunk/jk/native/common/jk_status.c
Author: rjung
Date: Tue Nov 28 01:44:04 2006
New Revision: 479963
URL: http://svn.apache.org/viewvc?view=rev&rev=479963
Log:
Adding "back" links to the form views (edit) of the status worker.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?view=diff&rev=479963&r1=479962&r2=479963
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Tue Nov 28 01:44:04 2006
@@ -678,6 +678,13 @@
lb_worker_t *lb = NULL;
JK_TRACE_ENTER(l);
+ if (single) {
+ jk_puts(s, "<hr/>\n");
+ status_write_uri(s, "Back to full worker list", JK_STATUS_CMD_LIST,
+ 0, 0, refresh, NULL, NULL);
+ jk_puts(s, "<br/>\n");
+ from = JK_STATUS_CMD_SHOW;
+ }
if (w->type == JK_LB_WORKER_TYPE) {
lb = (lb_worker_t *)w->worker_private;
name = lb->s->name;
@@ -702,13 +709,6 @@
JK_TRACE_EXIT(l);
return;
}
- if (single) {
- jk_puts(s, "<hr/>\n");
- status_write_uri(s, "Back to full worker list", JK_STATUS_CMD_LIST,
- 0, 0, refresh, NULL, NULL);
- jk_puts(s, "<br/>\n");
- from = JK_STATUS_CMD_SHOW;
- }
if (lb) {
time_t now = time(NULL);
@@ -1128,6 +1128,10 @@
lb_worker_t *lb = NULL;
JK_TRACE_ENTER(l);
+ jk_puts(s, "<hr/>\n");
+ status_write_uri(s, "Back to worker view", from,
+ 0, 0, refresh, NULL, NULL);
+ jk_puts(s, "<br/>\n");
if (w->type == JK_LB_WORKER_TYPE) {
lb = (lb_worker_t *)w->worker_private;
name = lb->s->name;
@@ -1272,6 +1276,11 @@
jk_log(l, JK_LOG_DEBUG,
"producing edit form for sub worker '%s' of lb worker '%s'",
wr->s->name, worker);
+
+ jk_puts(s, "<hr/>\n");
+ status_write_uri(s, "Back to worker view", from,
+ 0, 0, refresh, NULL, NULL);
+ jk_puts(s, "<br/>\n");
jk_putv(s, "<hr/><h3>Edit worker settings for ",
wr->s->name, "</h3>\n", NULL);
status_start_form(s, "GET", JK_STATUS_CMD_UPDATE,
@@ -1336,6 +1345,10 @@
unsigned int i;
JK_TRACE_ENTER(l);
+ jk_puts(s, "<hr/>\n");
+ status_write_uri(s, "Back to worker view", from,
+ 0, 0, refresh, NULL, NULL);
+ jk_puts(s, "<br/>\n");
if (!attribute) {
jk_log(l, JK_LOG_WARNING,
"missing request parameter '%s'",
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org