Changeset 3 in bookmarks for trunk/list.tt


Ignore:
Timestamp:
03/02/12 20:51:06 (12 years ago)
Author:
peter
Message:
  • Added a base URL to the list, guarenteed to end in "bookmarks/"
  • Default the ?format parameer to the list to "html" to avoid the unitialized value warnings
  • Added more classes to the individual bookmark page elements
  • Added an onclick handler to the tag links in a bookmark edit form that will attempt to open the link in the opener window; failing that, they will use a new window
  • Check for an opener before attempting to reload it on page load
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/list.tt

    r2 r3  
    22  <head> 
    33    <title>Bookmarks</title> 
     4    <base href="[% base_url %]"/> 
    45    <style type="text/css"> 
    56a:hover { 
     
    6465        <li> 
    6566          <span class="edit"> 
    66             (<a href="bookmarks/[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) 
     67            (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) 
    6768          </span> 
    6869          <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> 
Note: See TracChangeset for help on using the changeset viewer.