portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets browser-media.vm browser-portlet.vm browser-skin.vm
Date Mon, 04 Jun 2001 17:38:54 GMT
raphael     01/06/04 10:38:54

  Added:       webapp/WEB-INF/templates/vm/portlets browser-media.vm
                        browser-portlet.vm browser-skin.vm
  Log:
  add a simple (still incomplete) Regsitry browser portlet
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/browser-media.vm
  
  Index: browser-media.vm
  ===================================================================
  <form action="$jlink" method="post">
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <th>Name</th>
      <th>Title</th>
      <th>Description</th>
      <th>Mime Type</th>
      <th>Actions</th>
    </tr>
  #foreach ( $entry in $registry )
    <tr>
      <td>$entry.Name</td>
      <td>$!entry.Title</td>
      <td>$!entry.Description</td>
      <td>$entry.MimeType</td>
      <td>&nbsp;</td>
    </tr>
  #end
  </table>
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="right" width="50%">
  #if ($prev)
        <input type="submit" value="&lt; &lt; Previous">
  #end
      </td>
      <td align="left" width="50%">
  #if ($prev)
        <input type="submit" value="Next &gt; &gt;">
  #end
      </td>
    </tr>
  </table>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/browser-portlet.vm
  
  Index: browser-portlet.vm
  ===================================================================
  <form action="$jlink" method="post">
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <th>Name</th>
      <th>Title</th>
      <th>Description</th>
      <th>Supported types</th>
      <th>Actions</th>
    </tr>
  #foreach ( $entry in $registry )
  #set ( $old = "" )
    <tr>
      <td>$entry.Name</td>
      <td>$!entry.Title</td>
      <td>$!entry.Description</td>
      <td>
  #foreach ( $type in $entry.MediaTypes )
        #if ($old != "") , #end $!type.Name
        #set ( $old = $type )
  #end
      </td>
      <td>&nbsp;</td>
    </tr>
  #end
  </table>
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="right" width="50%">
  #if ($prev)
        <input type="submit" value="&lt; &lt; Previous">
  #end
      </td>
      <td align="left" width="50%">
  #if ($prev)
        <input type="submit" value="Next &gt; &gt;">
  #end
      </td>
    </tr>
  </table>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/browser-skin.vm
  
  Index: browser-skin.vm
  ===================================================================
  <form action="$jlink" method="post">
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <th>Name</th>
      <th>Title</th>
      <th>Colors</th>
      <th>Actions</th>
    </tr>
  #foreach ( $entry in $registry )
  #set ( $params = $entry.ParameterMap )
    <tr>
      <td>$entry.Name</td>
      <td>$!entry.Title</td>
      <td>
      <table width="100%" border="1">
        <tr>
          <td bgcolor="$params.background-color"><font color="$params.text-color">Normal</font></td>
          <td bgcolor="$params.title-background-color"><font color="$params.title-text-color">Title</font></td>
          <td bgcolor="$params.highlight-background-color"><font color="$params.highlight-text-color">Highlight</font></td>
        </tr>
      </table>
      </td>
      <td>&nbsp;</td>
    </tr>
  #end
  </table>
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="right" width="50%">
  #if ($prev)
        <input type="submit" value="&lt; &lt; Previous">
  #end
      </td>
      <td align="left" width="50%">
  #if ($prev)
        <input type="submit" value="Next &gt; &gt;">
  #end
      </td>
    </tr>
  </table>
  </form>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message