Localisation.
[Plinn.git] / skins / generic / tabs.pt
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7 <title>tabs</title>
8 <link href="zpt_stylesheet.css" rel="stylesheet" media="screen" />
9 <link href="plinn_style.css" rel="stylesheet" media="screen" />
10 </head>
11
12 <body i18n:domain="plinn">
13
14 <div metal:define-macro="tabs"
15 tal:define="filteredActionsList python:[];
16 dummy python:[ filteredActionsList.extend(l) for l in [ actions.get(key, []) for key in ['folder', 'object'] ] ];
17 forceTab request/forceTab|nothing"
18 tal:condition="python:len(filteredActionsList) > 1" tal:omit-tag="">
19 <div metal:define-macro="standalone_tabs" tal:define="forceTab forceTab|nothing">
20 <ul class="contentTabs">
21 <li class="selected" tal:replace="nothing">
22 <a href=".">View</a>
23 </li>
24 <li tal:repeat="action filteredActionsList"
25 tal:attributes="class python:( (forceTab == action['id']) or (request['URL0'].strip() == action['url'].strip() or request['URL0'].strip().split('/')[-1] == action['id']) ) and 'selected' or nothing">
26 <a href="#" tal:attributes="href action/url ; name action/id"
27 tal:content="action/title" i18n:translate="">Edit</a>
28 </li>
29 </ul>
30 </div>
31 </div>
32
33 <div metal:define-macro="additional_tabs"
34 tal:define="filteredActionsList python:actions.get('additional_tabs', [])"
35 tal:condition="filteredActionsList" tal:omit-tag="">
36 <div metal:define-macro="standalone_additional_tabs" tal:define="forceTab forceTab|nothing">
37 <ul class="additionalTabs">
38 <li class="selected" tal:replace="nothing">
39 <a href=".">View</a>
40 </li>
41 <li tal:repeat="action filteredActionsList"
42 tal:attributes="class python:( (forceTab == action['id']) or (request['URL0'].strip() == action['url'].strip() or request['URL0'].strip().split('/')[-1] == action['id']) ) and 'selected' or nothing">
43 <a href="#" tal:attributes="href action/url ; name action/id"
44 tal:content="action/title" i18n:translate="">Edit</a>
45 </li>
46 </ul>
47 </div>
48 </div>
49
50 </body>
51 </html>