Changeset 1449 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
2000-08-25T16:09:25+12:00 (24 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r1438 r1449  
    240240  text_t &current_page = args["cp"];
    241241
    242   if (current_page != "intro") {
     242  if (current_page != "intro" && current_page != "bildstatus") {
    243243    // authenticate the user if authentication is available
    244244    args["uan"] = 1;
     
    499499    if (thispage == "info" || thispage == "srce" || thispage == "conf") {
    500500      gsmacro = "_gsjimage_";
     501    } else if (type == "view") {
     502      // view button is special case as it needs a target=_top
     503      gsmacro = "_gstimage_";
    501504    }
    502505    return "<td>" + gsmacro + "(_collector:http" + type + "_,_collector:" + httpicon +
     
    645648    statusline += file_tail (bld_file + ".import");
    646649  } else if (file_exists (bld_file + ".build")) {
    647     statusline = "Building collection ...";
     650    statusline = "Building collection ...<br>";
    648651    statusline += file_tail (bld_file + ".build");
    649652  } else {
     
    674677  disp.setmacro ("pagescriptextra", "collector", "_" + collector_page + "scriptextra_");
    675678
    676   if (collector_page == "bildstatus") {
     679  if (collector_page == "bildstatus" || collector_page == "bilddone" || collector_page == "bildfail") {
    677680    disp.setmacro ("header", "collector", "_" + collector_page + "header_");
    678681  }
     
    744747    collectorbar += "</tr><tr><td colspan=4></td><td align=center>_icongreyuparrow_</td><td colspan=4></td>\n";
    745748
    746   } else if (collector_page == "bild") {
    747 
    748 
     749  } else if (collector_page == "bilddone") {
     750    // all previous buttons grey after build was completed
     751    collectorbar += get_button (collector_page, "grey", "info", false);
     752    collectorbar += "<td>_icongreyarrow_</td>\n";
     753    collectorbar += get_button (collector_page, "grey", "srce", false);
     754    collectorbar += "<td>_icongreyarrow_</td>\n";
     755    collectorbar += get_button (collector_page, "grey", "conf", false);
     756    collectorbar += "<td>_icongreyarrow_</td>\n";
     757    collectorbar += get_button (collector_page, "yellow", "bild", false);
     758    collectorbar += "<td>_icongreyarrow_</td>\n";
     759    collectorbar += get_button (collector_page, "green", "view", true);
     760    collectorbar += "</tr><tr><td colspan=6></td><td align=center>_icongreyuparrow_</td><td colspan=2></td>\n";
    749761  }
    750762
     
    769781
    770782  if (collector_page == "bild") {
     783
     784    // don't want header and stuff for build page as it uses frames
     785    textout << outconvert << disp << ("_collector:bildcontent_\n");
     786
    771787    // do the work (download, import, build)
    772788    text_t tmpdir = filename_cat (gsdlhome, "tmp", collection + ".bld");
     
    801817#endif
    802818    delete build_cmdc;
    803 
    804     // don't want header and stuff for build page as it uses frames
    805     textout << outconvert << disp << ("_collector:bildcontent_\n");
    806819
    807820  } else {
Note: See TracChangeset for help on using the changeset viewer.