version 1.2, 2005/12/08 17:11:31
|
version 1.5, 2006/07/25 07:51:49
|
Line 1
|
Line 1
|
<html metal:use-macro="here/main_template/macros/page"> |
<html metal:use-macro="here/main_template/macros/page"> |
<tal:block metal:fill-slot="body"> |
<tal:block metal:fill-slot="body"> |
<h2>Textdisplay</h2> |
<h2>Textdisplay</h2> |
|
<p> |
|
<a tal:attributes="href python:'http://cdli.ucla.edu/'+here.getPNumber()" target="_blank">View database entry</a> |
|
</p> |
<p><a tal:content="python:'back(%s)'%here.aq_parent.aq_parent.title" tal:attributes="href python:here.aq_parent.aq_parent.absolute_url()"/></p> |
<p><a tal:content="python:'back(%s)'%here.aq_parent.aq_parent.title" tal:attributes="href python:here.aq_parent.aq_parent.absolute_url()"/></p> |
<p>File Name: <span tal:replace="here/title"/> (version <span tal:replace="here/versionNumber"/>)</p> |
<p>File Name: <span tal:replace="here/title"/> (version <span tal:replace="here/versionNumber"/>)</p> |
<a tal:attributes="href python:here.absolute_url()">download</a> |
<a tal:attributes="href python:here.absolute_url()">download</a> |
<a tal:condition="python:here.lockedBy==''" tal:attributes="href python:here.REQUEST['URL1']+'/downloadLocked'">download and lock</a> |
<a tal:condition="python:here.lockedBy==''" tal:attributes="href python:here.REQUEST['URL1']+'/downloadLocked'">download and lock</a> |
<a tal:condition="not:python:here.lockedBy==''">locked</a> |
<a tal:condition="not:python:here.lockedBy==''">locked</a> |
<a tal:condition="python:here.lockedBy==''" tal:attributes="href python:here.REQUEST['URL1']+'/'+'/addVersionedFileObjectForm'">Upload New Version</a> |
<a tal:condition="python:here.lockedBy==''" tal:attributes="href python:here.REQUEST['URL1']+'/'+'/addCDLIFileObjectForm'">Upload New Version</a> |
<tal:block tal:condition="not:python:here.lockedBy==''"> |
<tal:block tal:condition="not:python:here.lockedBy==''"> |
<b tal:attributes="href python:here.REQUEST['URL1']+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="here/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL2']+'/unlock'">unlock</a> |
<b tal:attributes="href python:here.REQUEST['URL1']+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="here/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL2']+'/unlock'">unlock</a> |
</tal:block> |
</tal:block> |
<pre tal:content="here/data"/> |
<pre tal:content="here/data"/> |
</tal:block> |
</tal:block> |