diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-10-29 17:54:23 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-10-29 17:54:23 +0000 |
| commit | 300a03c554874c55d3a6861450a7c780e19c89f4 (patch) | |
| tree | 8d981b7144d6720f2b2c28b27d3c4a1b4be6cb83 /templates/attachment_browser.tpl | |
| parent | 820d5024847583238bfc8cbc194887156e930dfc (diff) | |
| download | liberty-300a03c554874c55d3a6861450a7c780e19c89f4.tar.gz liberty-300a03c554874c55d3a6861450a7c780e19c89f4.tar.bz2 liberty-300a03c554874c55d3a6861450a7c780e19c89f4.zip | |
merge recent changes into HEAD
Diffstat (limited to 'templates/attachment_browser.tpl')
| -rw-r--r-- | templates/attachment_browser.tpl | 108 |
1 files changed, 32 insertions, 76 deletions
diff --git a/templates/attachment_browser.tpl b/templates/attachment_browser.tpl index 43716ac..7dbf389 100644 --- a/templates/attachment_browser.tpl +++ b/templates/attachment_browser.tpl @@ -1,80 +1,36 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>{tr}Attachment Browser{/tr}</title> - - {if $gBitSystem->mStyles.styleSheet} - <link rel="stylesheet" title="{$style}" type="text/css" href="{$gBitSystem->mStyles.styleSheet}" media="all" /> - {/if} - {if $gBitSystem->mStyles.browserStyleSheet} - <link rel="stylesheet" title="{$style}" type="text/css" href="{$gBitSystem->mStyles.browserStyleSheet}" media="all" /> - {/if} - {if $gBitSystem->mStyles.customStyleSheet} - <link rel="stylesheet" title="{$style}" type="text/css" href="{$gBitSystem->mStyles.custumStyleSheet}" media="all" /> - {/if} - {foreach from=$gBitSystem->mStyles.altStyleSheets item=alt_path key=alt_name} - <link rel="alternate stylesheet" title="{$alt_name}" type="text/css" href="{$alt_path}" media="screen" /> - {/foreach} - - <script type="text/javascript" src="{$smarty.const.KERNEL_PKG_URL}bitweaver.js"></script> - - {literal} - <script type="text/javascript"><!-- - function returnAttachmentId(attachmentId) { - self.opener.document.getElementById("existing_attachment_id_input").value = attachmentId; - self.close(); - } - --></script> - {/literal} - - <!--[if gte IE 5.5000]> - <script type="text/javascript" src="{$smarty.const.THEMES_PKG_URL}js/pngfix.js"></script> - <![endif]--> - {strip} -</head> -<body> - <div id="attbrowser"> - <div class="display attbrowser"> - <div class="header"> - <h1>Attachment Browser</h1> - <h2>at some point this page should only show attachments that aren't already attached.</h2> - </div> + <noscript> + <p>Please insert {ldelim}attachment id=#{rdelim} where # is the appropriate attachment ID.</p> + </noscript> - <div class="body"> - {legend legend="Avalable attachments"} - <noscript> - <p>Since you don't seem to have javascript enabled, please hover your mouse over an attachment and use the number that appears to attach a given item to your page. - </p> - </noscript> + <table class="data"> + <caption>{tr}Available Attachements{/tr}</caption> + {counter start=-1 name="cells" print=false} + {foreach from=$userAttachments item=attachment key=foo} + {counter name="cells" assign="cells" print=false} + {if $cells % 2 eq 0} + <tr class="{cycle values="odd,even"}"> + {/if} - <table class="data"> - {counter start=-1 name="cells" print=false} - {foreach from=$userAttachments item=attachment key=foo} - {counter name="cells" assign="cells" print=false} - {if $cells % 2 eq 0} - <tr class="{cycle values="odd,even"}"> - {/if} - <td> - <a title="{tr}Attachment id: {$attachment.attachment_id}{/tr}" href="javascript:void();" style="cursor:hand;" onclick="returnAttachmentId({$attachment.attachment_id})"> - <img src="{$attachment.thumbnail_url.small}" alt="{$attachment.filename}" /> - <br /> - {$attachment.filename} - </a> - </td> - {if $cells % 2 ne 0} - </tr> - {/if} - {/foreach} - {if $cells % 2 eq 0} - <td> </td></tr> - {/if} - </table> - {formhelp note="Clicking on an item will attach the item to your wiki page."} - {/legend} - </div><!-- end .body --> - </div><!-- end .attbrowser --> - </div><!-- end #attbrowser --> -</body> -</html> + <td> + <a title="{tr}Attachment id: {$attachment.attachment_id}{/tr}" href="javascript:insertAt( 'copy', '{ldelim}attachment id={$attachment.attachment_id}{rdelim}' );"> + <img src="{$attachment.thumbnail_url.small}" alt="{$attachment.filename}" /><br /> + {$attachment.filename}<br /> + Attachment ID: {$attachment.attachment_id} + </a> + </td> + + {if $cells % 2 ne 0} + </tr> + {/if} + {foreachelse} + <tr class="norecords"><td>{tr}No Records Found{/tr}</td></tr> + {/foreach} + {if $cells % 2 eq 0} + <td> </td></tr> + {/if} + </table> + {if $userAttachments} + {formhelp note="Clicking on an item will attach the item to your wiki page."} + {/if} {/strip} |
