From: Andrew McNab Date: Thu, 2 Jun 2005 11:23:06 +0000 (+0000) Subject: HTML improvements X-Git-Tag: gridsite-core_R_1_1_9~26 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1eb019cf0e7c6bfd5de65b0a48e26dac6ae7bf6d;p=jra1mw.git HTML improvements --- diff --git a/org.gridsite.core/src/grst_admin_file.c b/org.gridsite.core/src/grst_admin_file.c index f89a004..b4d47f5 100644 --- a/org.gridsite.core/src/grst_admin_file.c +++ b/org.gridsite.core/src/grst_admin_file.c @@ -955,7 +955,7 @@ void filehistory(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, { GRSThttpPrintf(&bp, "View\n", + GRSThttpPrintf(&bp, "%s%s?cmd=acl_history&dir_uri=%s&file=%s\">View\n", dir_uri, admin_file, dir_uri, namelist[i]->d_name); else GRSThttpPrintf(&bp, "%s%s\">View\n", dir_uri, namelist[i]->d_name); @@ -1338,7 +1338,7 @@ void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, statbuf.st_size, modified); GRSThttpPrintf(&bp, - "" + "" "History", dir_uri, admin_file, GRST_ACL_FILE); } @@ -1351,7 +1351,7 @@ void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, if (GRSTgaclPermHasAdmin(perm)) GRSThttpPrintf(&bp, "Edit" - "Delete", + "Delete", dir_uri, admin_file, dir_uri, admin_file, GRST_ACL_FILE); else if (GRSTgaclPermHasRead(perm)) @@ -1420,7 +1420,7 @@ void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, if (numfiles == 0) GRSThttpPrintf(&bp, - "" + "" "Delete\n", dir_uri, admin_file, namelist[n]->d_name); else GRSThttpPrintf(&bp, " \n"); @@ -1473,7 +1473,7 @@ void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, statbuf.st_size, modified); GRSThttpPrintf(&bp, - "" + "" "History", dir_uri, admin_file, d_name); @@ -1484,28 +1484,28 @@ void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, (strcasecmp(&p[1], "zip") == 0) && GRSTgaclPermHasRead(perm)) GRSThttpPrintf(&bp, - "" + "" "List\n", dir_uri, admin_file, d_name); else if ((p != NULL) && (strstr(editable, &p[1]) != NULL) && GRSTgaclPermHasWrite(perm)) GRSThttpPrintf(&bp, - "" + "" "Edit\n", dir_uri, admin_file, d_name); else GRSThttpPrintf(&bp, " "); if (GRSTgaclPermHasWrite(perm)) GRSThttpPrintf(&bp, - "" + "" "Delete\n", dir_uri, admin_file, d_name); else GRSThttpPrintf(&bp, " \n"); if (GRSTgaclPermHasWrite(perm)) GRSThttpPrintf(&bp, - "" + "" "Rename\n", dir_uri, admin_file, d_name); else GRSThttpPrintf(&bp, " "); diff --git a/org.gridsite.core/src/mod_gridsite.c b/org.gridsite.core/src/mod_gridsite.c index 9b9580b..e9c7afb 100644 --- a/org.gridsite.core/src/mod_gridsite.c +++ b/org.gridsite.core/src/mod_gridsite.c @@ -371,7 +371,7 @@ char *make_admin_footer(request_rec *r, mod_gridsite_cfg *conf, p[1] = '\0'; /* dir_uri always gets both a leading and a trailing slash */ - out = apr_pstrdup(r->pool, "

\n"); + out = apr_pstrdup(r->pool, "

\n"); if (!isdirectory) { @@ -380,7 +380,7 @@ char *make_admin_footer(request_rec *r, mod_gridsite_cfg *conf, localtime_r(&mtime_time, &mtime_tm); strftime(modified, sizeof(modified), "%a %e %B %Y", &mtime_tm); - temp = apr_psprintf(r->pool,"


Last modified %s\n", modified); + temp = apr_psprintf(r->pool,"
Last modified %s\n", modified); out = apr_pstrcat(r->pool, out, temp, NULL); if ((conf->adminuri != NULL) && @@ -390,14 +390,16 @@ char *make_admin_footer(request_rec *r, mod_gridsite_cfg *conf, (strncmp(file, GRST_HIST_PREFIX, sizeof(GRST_HIST_PREFIX)-1) != 0)) { temp = apr_psprintf(r->pool, - ". " + ". " "View page history\n", conf->adminfile, file); out = apr_pstrcat(r->pool, out, temp, NULL); } + + out = apr_pstrcat(r->pool, out, "", NULL); } - out = apr_pstrcat(r->pool, out, "
", NULL); + out = apr_pstrcat(r->pool, out, "
", NULL); if (r->connection->notes != NULL) grst_cred_0 = (char *) @@ -444,7 +446,7 @@ char *make_admin_footer(request_rec *r, mod_gridsite_cfg *conf, sizeof(GRST_HIST_PREFIX) - 1) != 0)) { temp = apr_psprintf(r->pool, - "" + "" "Edit page .\n", conf->adminfile, file); out = apr_pstrcat(r->pool, out, temp, NULL); } @@ -483,7 +485,7 @@ char *make_admin_footer(request_rec *r, mod_gridsite_cfg *conf, (conf->adminfile != NULL) && (conf->adminfile[0] != '\0')) { - temp = apr_psprintf(r->pool, ". " + temp = apr_psprintf(r->pool, ". " "Print View\n", conf->adminfile, file); out = apr_pstrcat(r->pool, out, temp, NULL); }