Ignore:
Timestamp:
Feb 9, 2015, 11:55:51 AM (9 years ago)
Author:
casties
Branch:
admin_ui_rel_links
Message:

starting web admin ui with relative links. doesn't fully work yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java

    r78 r93  
    123123            // output person content
    124124            result = "<html><body>\n<h1>Annotation</h1>\n";
    125             result += String.format("<p><a href=\"%s\">All annotations</a></p>", this.getReference().getParentRef());
     125            result += "<p><a href=\"./\">All annotations</a></p>";
    126126            result += "<table>";
    127127            result += String.format("<tr><td><b>uri</b></td><td>%s</td></tr>\n", annotation.getUri());
     
    142142            //result += "<p><a href=\"?form=edit\">Edit annotation</a></p>\n";
    143143            // tunnel POST as DELETE
    144             result += String.format(
    145                     "<form method=\"post\" action=\"%s?method=DELETE\"><input type=\"submit\" value=\"Delete annotation\"/></form>\n",
    146                     this.getReference().getHierarchicalPart());
     144            result += "<form method=\"post\" action=\"?method=DELETE\"><input type=\"submit\" value=\"Delete annotation\"/></form>\n";
    147145            result += "</body>\n</html>";
    148146        }
Note: See TracChangeset for help on using the changeset viewer.