JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: display page has edit link at top
authorJason Woofenden <jason@jasonwoof.com>
Tue, 3 Nov 2009 22:34:16 +0000 (17:34 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 3 Nov 2009 22:48:23 +0000 (17:48 -0500)
metaform/template.html
session.php

index 7a4fb84..ef4e26c 100644 (file)
@@ -48,6 +48,9 @@
 <!--~opt_display_1 start~-->
 <!--~~display_body start~~-->
   <h2>~singular.cap~ details</h2>
+
+    <p><a href="~file_name~?~file_name~_edit_id=~~id.attr~~">Edit</a></p>
+
     <table border="0" cellpadding="3" cellspacing="0" summary="">
 <!--~display_row start~--><!--~display_image start~-->
       <tr><td class="caption">~caption.html~:</td><td><img src="~~~name~.image_src~~" width="~~~name~.image_width~~" height="~~~name~.image_height~~" alt="" /></td></tr>
index 26523c2..c3c1f44 100644 (file)
@@ -170,7 +170,7 @@ function logged_in_as_admin() {
 }
 
 
-# find existing session, or make one
+# find existing session, or make one (name "session_init" was taken)
 function init_session() {
        if(!session_exists()) {
                session_new();