diff options
-rw-r--r-- | src/Content.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Content.c b/src/Content.c index 993747a..2f22bac 100644 --- a/src/Content.c +++ b/src/Content.c @@ -347,6 +347,27 @@ static int MainPage(cGH *cctkGH, httpRequest *request, void *data) HTTP_Write(request, message, strlen(message)); + /*************************************************************************/ + + /* AVAILABLE OPTIONS */ + + if(ContentLinks) + { + strcpy(message, + "<H3>Available options:</H3>\n" + "<ul>\n"); + + for(link = ContentLinks; link; link=link->next) + { + sprintf(message, + "%s<li> <A HREF=\"%s\">%s</a> %s </li>\n", + message, link->URL, link->name, link->description); + + } + + sprintf(message,"%s</ul>\n",message); + HTTP_Write(request, message, strlen(message)); + } /* CONFIGURATION DETAILS */ @@ -478,7 +499,7 @@ static int RegisterParameterPages(void) HTTP_RegisterPage("/Parameters/index.html", MainParameterPage, NULL); HTTP_ContentLink("/Parameters/index.html", "Parameters", - "Parameter Informatiiona and Control", + "Parameter Information and Control", HTTP_QUICKLINK); for (i = 0; i < CCTK_NumCompiledThorns (); i++) |