## This file is subject to the terms and conditions defined in ## file 'LICENSE', which is part of this source code package. ## Copyright (c) 2009 SKR Farms (P) LTD. <%inherit file="/base/basic1.html"/> <%namespace name="elements" file="/component/elements.html"/> <%namespace name="forms" file="/component/forms.html"/> <%! page_tooltips = [ [ 'Help', """Each wiki page is rendered with html translated wiki document and gives simple statistical details for the page. Download a wiki page as text, pdf, html or ps file. """ ], [ 'Comments', """Discussions on wiki document""" ], [ 'History', """List of previous versions of a wiki page and color coded differences between them. """ ], [ 'Attachments', """Upload attachments by clicking on the iconized title. Clicking on the same once again will hide it. Delete attachments by clicking on the cross-wire. Upload any number of files.
Every attached file, will have its "id" in paranthesis. Use the id value when refering to the attachment. """ ], [ 'Tags', """Tag a wiki page by clicking on the iconized title. Delete tags by clicking on the cross-wire. Tag names should be 2 or more characters. """ ], [ 'Markups', """
  *{1,5} for upto 5 levels of unordered list
  #{1,5} for upto 5 levels of ordered list
  >{1,5} for upto 5 levels of block-quoted text.
Text-Markup
  '' bold ''   // italic //   __ underline __   ^^ super-script ^^   ,, super-script ,,   '/ bold-italic '/   '_ bold-underline '_
  /_ italic-underline /_   '/_ super-script '/_   ~? escape one character   \\\n escape newline   \\\\ line break
Links and anchor   [[ href | text ]]   [[ *href_in_newwindow | text ]]   [[ $anchor | text ]]   [[ +image | text ]]
Heading   =, ==, ===, ====, =====, for upto five levels of sub-headings
Horizontal-rule   ----
Block-Markup

To know more about macros, extensions, zetalinks and several other features visit here. """ ], [ 'Favorites', """Registered users can pick wikipage(s) as their favorite.""" ], [ 'Vote', """Registered users can up-vote or down-vote a wiki page.""" ] ] %> <%def name="hd_links()"> ${parent.hd_links()} <%def name="hd_script()"> ${parent.hd_script()} <%def name="show_wikipage()"> <% author = c.wcnt.author created_on = h.utc_2_usertz( c.wcnt.created_on, c.authuser.timezone ) %>
download ver Review Talkpage % if c.wikieditable : Edit % endif History
Page Info
Version ${c.wcnt.id}
document type, ${c.wiki.type.wiki_typename}
last edited by, ${author}
last edited on, ${created_on.strftime('%b %d, %Y')}
Authors
% for auth, count in c.wikiauthors.iteritems() : % endfor
${auth} ${count} edits
${c.wikihtml | n}
<%def name="wiki_talkpage()">
Page
${forms.form_createwcmt( c.authuser, c.wiki, h.suburl_createwcmt )}
${forms.form_updatewcmt( c.authuser, c.wiki, h.suburl_updatewcmt )}
${forms.form_replywcmt( c.authuser, c.wiki, h.suburl_replywcmt )}
<%def name="wiki_edit()">
Page History
Preview( edit )



${forms.form_wikicontent( c.authuser, c.wiki, c.wcnt, h.suburl_wikiedit, h.url_wikipage )}
<%def name="wiki_history()">
Page
${forms.form_wikidiff( c.authuser, c.wiki, h.url_wikidiff, c.wikicontents )}
<%def name="wiki_diff()">
Page History
${elements.difftable( c.oldver, c.newver, c.wcnt_oldver.text.splitlines(), c.wcnt_newver.text.splitlines(), )}
<%def name="bd_body()"> <% sel_wp = capture( forms.form_selectwikipage, c.authuser, c.wikipagenames, c.wikipagename or '' ) searchbox = capture( forms.form_searchbox, c.authuser, 'searchwiki', 'Search-wiki', h.suburl_search, c.searchfaces ) fav = capture( elements.favoriteicon, 'favwiki' ) tindex = '' + \ ( ' \ Titleindex' % h.url_wikititleindex ) refr = capture( elements.iconlink, h.url_translatewiki, 'refresh', classes="mr5", title='Bring this wiki-html upto-date' ) charts = capture( elements.iconlink, h.url_wikicharts, 'barchart', title="Wiki charts" ) tline = capture( elements.iconlink, h.url_wikitimeline, 'timeline', title="Timeline for wiki page" ) %> ${elements.mainnav()} ${elements.contextnav([ fav, searchbox, sel_wp, tindex ], rspans=[ refr, charts, tline ], tooltips=page_tooltips)}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
% if c.authorized : ${forms.form_wikifav( c.authuser, c.project, c.wiki, h.suburl_wikifav, c.isuserfavorite and 'delfavuser' or 'addfavuser' )} % endif % if c.wikiedit : ${wiki_edit()} % elif c.whistory : ${wiki_history()} % elif c.wikidiff : ${wiki_diff()} % elif c.wtalkpage : ${wiki_talkpage()} % elif c.wikipage or c.wcnt : % if c.authorized : ${forms.form_votewiki( c.authuser, c.project, c.wiki, h.suburl_votewiki, c.upvotes, c.downvotes, c.currvote )} % endif ${show_wikipage()} % endif
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
<%def name="bd_script()"> ${parent.bd_script()}