[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/zwiki_dtml - wikipage_view.pt:1.1

Sidnei da Silva sidnei at x3ng.com.br
Fri Jan 24 23:17:42 EST 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/zwiki_dtml
In directory cvs.zope.org:/tmp/cvs-serv1304

Added Files:
	wikipage_view.pt 
Log Message:
wikipage_view. needs cleanup

=== Added File Products/ZopeOrg-NV/skins/zwiki_dtml/wikipage_view.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<head>
<title>
<span tal:replace="container/title">wiki name </span><span tal:replace="here/title_or_id">page name</span>
</title>
</head>
<body bgcolor="#ffffff">
<div metal:fill-slot="main" tal:define="container here/aq_parent">
<form method="POST" action="wiki_url/SearchPage" 
tal:attributes="action python:here.wiki_url()+'/SearchPage'">

<table 
tal:condition="python:request.get('zwiki_displaymode',0)=='full'" 
width="100%" cellpadding="2" cellspacing=0 border=0>
<tr bgcolor="#dddddd">
<td align="left" valign="middle" width="20%"><em><small><span style="color:gray" tal:content="python:str(here.subscriberCount() + here.wikiSubscriberCount()) + ' subscribers'">
N subscribers
</span></small></em></td>

<td align="center" valign="middle" width="60%">
<small><em><span style="color:gray" tal:content="structure python:here.linkTitle(prettyprint=1)">
last edited n days ago by by so-and-so
</span></em></small></td>

<td align="right" valign="middle" width="20%"
tal:condition="python:request.get('zwiki_showsearch',1)" 
><em><small><span style="color:gray">
<input name="expr" type="text" size="20" maxlength="100" value="" style="width:100%; background-color:#f0f0f0" title="search all pages.. spaces are significant" accesskey="s"><br>
</span></small></em></td>

</tr>
</table>

<table 
tal:condition="python:request.get('zwiki_displaymode',0) != 'minimal'"
width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#f0f0f0"
tal:attributes="bgcolor 
python:['#f0f0f0',nothing][request.get('zwiki_displaymode',0)=='minimal']">
<tr>

<td width="1%" valign="middle">
<a 
tal:condition="python:request.get('zwiki_showlogo',1)"
tal:attributes="href here/wiki_url"
href="wiki_url" title="go to home page" accesskey="1">
<img 
tal:replace="structure container/site_logo|default"
src="/misc_/ZWiki/ZWikiPage_icon.gif" height=48 width=48 border=0 alt="home">
</a>
</td>

<td
tal:condition="python:request.get('zwiki_showhierarchy',0)"
align="left" valign="top">
<ul tal:replace="structure 
  python:here.context(request,enlarge_current=1)">
<li>context
<ul><li><big><big><big>page name</big></big></big></ul>
</ul>
</td>
<td
tal:condition="not:python:request.get('zwiki_showhierarchy',0)"
align="left" valign="bottom">
<span tal:replace="nothing"><em>or</em></span>
<big><big><big><strong>
<a 
tal:attributes="
 href python:here.page_url() + '/backlinks';
 title python:'show backlinks for this page ('+here.linkTitle()+')'"
tal:content="here/title_or_id"
href="page_url/backlinks" 
title="show backlinks for this page (last edited n days ago by so-and-so)" 
accesskey="b"
>page name</a>
</strong></big></big></big>
</td>

<td width="20%" align="right" valign="middle" >

<span
tal:condition="not:python:request.get('zwiki_displaymode','simple')=='simple'">
<span
tal:condition="python:request.get('zwiki_showquote',1) and not
                      request.get('zwiki_displaymode',0) == 'minimal'"
tal:define="split python:modules['string'].split;
            maxquotesize python:200;
            quotes python:split(container.AnnoyingQuote.text(),'\n');
            lastquote python:quotes[-1];
            quote python:(len(lastquote)>maxquotesize and lastquote[:maxquotesize]+'... <a href=AnnoyingQuote#bottom>more</a>') or lastquote"
tal:on-error="string:"
style="color:gray">
<!--quote-->
<small><em>
<span 
tal:replace="structure python:here.wikilink(quote)"
tal:on-error="string:annoying quote">
annoying quote<br>or<br>
</span>
</em></small>
</span>
<span
tal:condition="not:python:request.get('zwiki_showquote',1) and not
                          request.get('zwiki_displaymode',0) == 'minimal'">
&nbsp;
</span>
</span>

<span
tal:condition="python:request.get('zwiki_displaymode','simple')=='simple'">
<!-- search box -->
<input 
tal:condition="python:request.get('zwiki_showsearch',1)"
name="expr" type="text" size="20" maxlength="100" value="" 
style="width:100%; background-color:#ffffff" 
title="search all pages.. spaces are significant" accesskey="s"><br 
tal:condition="python:request.get('zwiki_showsearch',1)">
<!-- last editor -->
<small><em><span style="color:gray" tal:content="structure python:here.linkTitle(prettyprint=1)">
last edited n days ago by by so-and-so
</span></em></small>
</span>

</td>

</tr>
</table>

<table 
tal:condition="not:python:request.get('zwiki_displaymode',0)=='minimal'"
width="100%" cellpadding="0" cellspacing=0 border=0>
<tr>
<td bgcolor="#dddddd" align="right"><a href="AnnoyingQuote#bottom"><img src="/p_/sp" height=2 width=2 border=0 alt=" "></a></td>
</tr>
</table>

<span
tal:condition="python:request.get('zwiki_displaymode',0) == 'minimal' and not
                      request.get('zwiki_showhierarchy',0)">
<span tal:replace="nothing"><em>or:</em><br></span>
<a 
tal:condition="python:request.get('zwiki_showlogo',1)"
tal:attributes="href here/wiki_url"
href="wiki_url" title="go to home page" accesskey="1">
<img 
tal:replace="structure container/site_logo|default"
src="/misc_/ZWiki/ZWikiPage_icon.gif" height=48 width=48 border=0 alt="home"
></a>
<big><big><big><strong>
<a 
tal:attributes="
 href python:here.page_url() + '/backlinks';
 title python:'show backlinks for this page ('+here.linkTitle()+')'"
tal:content="here/title_or_id"
href="page_url/backlinks" 
title="show backlinks for this page (last edited n days ago by so-and-so)" 
accesskey="b"
>page name</a>
</strong></big></big></big>
</span>
<span
tal:condition="python:request.get('zwiki_displaymode',0) == 'minimal' and
                      request.get('zwiki_showhierarchy',0)">
<span tal:replace="nothing"><br><em>or:</em><br></span>
<a 
tal:condition="python:request.get('zwiki_showlogo',1)"
tal:attributes="href here/wiki_url"
href="wiki_url" title="go to home page" accesskey="1">
<img 
tal:replace="structure container/site_logo|default"
align="left" valign="top"
src="/misc_/ZWiki/ZWikiPage_icon.gif" height=48 width=48 border=0 alt="home"
></a>
<ul tal:replace="structure 
  python:here.context(request,enlarge_current=1)">
<li>context
<ul><li><big><big><big>page name</big></big></big></ul>
</ul>
</span>

</form>
<!-- end of header -->

<div tal:replace="structure python:here.render(here,request)">
page body goes here
</div>


<!-- start of footer -->
<a name="bottom"></a>
<p></p>

<form method="POST" action="page_url" enctype="multipart/form-data"
tal:attributes="action here/page_url">
<input name=timeStamp type=hidden value="editTimestamp"
tal:attributes="value here/editTimestamp">
<input name=page type=hidden value="id"
tal:attributes="value here/id">

<!-- link panel -->
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
bgcolor="#dddddd"
tal:attributes="bgcolor 
python:['#dddddd',nothing][request.get('zwiki_displaymode',0)=='minimal']">
<tr>

<td align="left" valign="middle" nowrap
tal:condition="python:hasattr(container,'UserOptions')">
<span style="color:gray"><small><em>
<a 
tal:define="current python:request.get('zwiki_displaymode',0)=='full';
            page_url python:here.page_url();
            url python:'UserOptions?setcookies=1&zwiki_displaymode=full&zwiki_showhierarchy=1&redirectURL=' + page_url"
tal:attributes="style python:[nothing,'font-weight:bold'][current];
                href url"
href="UserOptions?setcookies=1&zwiki_displaymode=full&zwiki_showhierarchy=1&redirectURL=page_url" 
title="show all features" accesskey="f"><b><u>f</u></b>ull</a>
<a 
tal:define="current python:request.get('zwiki_displaymode','simple')=='simple';
            page_url python:here.page_url();
            url python:'UserOptions?setcookies=1&zwiki_displaymode=simple&zwiki_showhierarchy=&redirectURL=' + page_url"
tal:attributes="style python:[nothing,'font-weight:bold'][current];
                href url"
href="UserOptions?setcookies=1&zwiki_displaymode=simple&zwiki_showhierarchy=&redirectURL=page_url" 
title="show basic features (no page hierarchy)" accesskey="i">s<b><u>i</u></b>mple</a>
<a 
tal:define="current python:request.get('zwiki_displaymode',0)=='minimal';
            page_url python:here.page_url();
            url python:'UserOptions?setcookies=1&zwiki_displaymode=minimal&zwiki_showhierarchy=&redirectURL=' + page_url"
tal:attributes="style python:[nothing,'font-weight:bold'][current];
                href url"
href="UserOptions?setcookies=1&zwiki_displaymode=minimal&zwiki_showhierarchy=&redirectURL=page_url" 
title="hide all non-essential features" accesskey="m"><b><u>m</u></b>inimal</a>
</em></small></span>
</td>

<td align="left" valign="middle"
tal:condition="not:python:hasattr(container,'UserOptions')">
&nbsp;
</td>

<td align="center" valign="middle"
tal:define="bmarks request/zwiki_bookmarks|string:UserOptions RecentChanges">
<small><em>
&nbsp;
<span style="color:gray"
tal:content="structure python:here.wikilink(bmarks)"
tal:on-error="string:user's bookmarks">
user's bookmarks or UserOptions RecentChanges
</span>
&nbsp;
</em></small>
</td>

<td align="right" valign="middle" nowrap>
<small><em><span style="color:gray">
<a 
tal:condition="python:hasattr(container,'HelpPage')"
href="HelpPage" title="go to HelpPage" accesskey="h"
><b><u>h</u></b>elp</a>
<a 
tal:condition="python:here.isMailoutEnabled()"
tal:attributes="href python:here.page_url() + '/subscribeform'"
href="page_url/subscribeform" 
title="configure email subscription to this page or site" accesskey="u"
>s<b><u>u</u></b>bscribe</a>
<span
tal:condition="python:user.has_permission('Zwiki: Edit pages',here)"
>
<a 
tal:attributes="
  href python:here.page_url() + '/editform';
  title python:'edit this page (' + here.linkTitle() + ')'"
href="page_url/editform" 
title="edit this page (last edited n days ago by so-and-so)" 
accesskey="e"
><b><u>e</u></b>dit</a>
<a 
tal:condition="python:
  hasattr(root.misc_,'ExternalEditor') and
  user.has_permission('Use external editor',here)"
tal:attributes="href python:
  here.wiki_url() + '/externalEdit_/' +
  modules['Products.PythonScripts.standard'].url_quote(here.id())"
href="wiki_url/externalEdit_/id" title="edit using external editor" 
accesskey="x"
><img src="/misc_/ExternalEditor/edit_icon" hspace="2" align="middle" 
border="0" alt="(external edit)"/></a>
</span>
</span></em></small>
</td>

</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0"
tal:condition="not:python:request.get('zwiki_displaymode',0) == 'minimal'">

<tr tal:condition="python:
user.has_permission('Zwiki: Add comments to pages',here)">
<td align="right" colspan="2">
<!-- comment form -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" bgcolor="#dddddd">
<textarea 
tal:attributes="cols python:request.get('zwiki_width','') or 60"
wrap="virtual" name="text" rows=3 cols=60 
style="width:100%; background-color:#f0f0f0" 
title="enter comments here & click add; or, click edit" accesskey="c">
</textarea>
</td>
</tr>
</table>
</td>
</tr>

<tr
tal:condition="python:
user.has_permission('Zwiki: Add comments to pages',here)">
<td align="left" valign="top" width="20%" nowrap>
&nbsp;
</td>
<td align="right" valign="top" width="80%">
<small><span style="color:gray">
with heading 
<input 
tal:attributes="checked python:
  [nothing,1][here.getId()[-10:]=='Discussion' or 
              here.getId()[:7]=='IssueNo']"
type=checkbox name="use_heading" value="1" style="background-color:#f0f0f0"
title="post with a comment heading ?"
></span></small>
<input type="submit" name="comment:method" value=" add a comment " 
style="font-weight:bold">
</td>
</tr>

</table>

<!-- page management panel -->
<table width="100%" border="0" cellspacing="0" cellpadding="0"
tal:condition="python:
  request.get('zwiki_displaymode',0) == 'full'
  and (user.has_permission('Zwiki: Rename pages',here) or
       user.has_permission('Zwiki: Delete pages',here))
  and (user.has_role('Authenticated') or request.get('zwiki_username',''))
">
<tr>
<td align="left" valign="top" nowrap>
<small><span style="color:gray">
manage this page:
</span></small>
<br>
<input 
tal:attributes="value python:here.title_or_id()"
name="pagename" type="text" size="30" maxlength="100" value="" 
style="background-color:#f0f0f0"
title="enter a new name or new parent for the current page"
><INPUT TYPE="submit" NAME="rename:method" VALUE="rename" 
style="font-weight:normal" 
title="rename the current page to the name you have entered"
tal:condition="python:
  user.has_permission('Zwiki: Rename pages',here)">
<INPUT TYPE="submit" NAME="reparent:method" VALUE="reparent" 
style="font-weight:normal"
title="reparent the current page under the page you have entered"
tal:condition="python:
  user.has_permission('Zwiki: Reparent pages',here)">
<INPUT TYPE="submit" NAME="delete:method" VALUE="delete page" 
style="font-weight:normal"
title="delete the current page"
tal:condition="python:
  user.has_permission('Zwiki: Delete pages',here)">
<br>
<span style="color:gray"
tal:condition="python:
  user.has_permission('Zwiki: Rename pages',here)">
<small>
change all links 
<input type="checkbox" name="updatebacklinks" value="1" 
style="background-color:#f0f0f0" 
title="when renaming: replace OldName with NewName throughout the wiki. Caution!">
<br>
leave placeholder 
<input type="checkbox" name="leaveplaceholder" value="1" 
style="background-color:#f0f0f0"
title="when renaming: leave behind a page which links to the new one">
</small>
</span>
</td>
</tr>
</table>

</form>
</div>
</body>
</html>





More information about the zopeorg-checkins mailing list