app_html

NAML documentation   Watch a video
   Usages of this macro
... in app_html.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<override_macro name="app_html" parameters="head,body" requires="servlet">
    <n.app_min_html
Macro
Requires: servlet
Parameters: head, body
>
        <head>
            <n.head/>
            <n.app_meta
Macro
Requires: node_page, servlet
/>
            <n.increment_view_count
Macro
Requires: node_page, servlet
/>
        </head>
        <body>
             <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
 /]" value2="1">
              <then>
                           <div style="border:blue 2px solid;padding:0px 0px 0px 0px;margin:0px 10px 0px 10px;background-color:#BFBFBF;background-image:url(http://jsmastronomy.245.s1.nabble.com/file/n1593/eta_background.jpg)">
                         <div style="text-align: center;margin-top:50px">
                            <img src="http://jsmastronomy.245.s1.nabble.com/file/n1593/logo-1.png"/>
                              <p></p>
                      <div style="position:relative;margin: 50px 0px 20px 50%;left:-85px;text-align:center;width:170px;background-color:yellow;color:green;border-radius: 10px;"><h2><a href="http://jsmastronomy.245.s1.nabble.com/Versao-Portugues-f578.html">E N T R A R</a></h2>
                             </div>
                             <p>&nbsp;</p>
                        </div>
                        </div>
                       <p><div style="position:relative;margin: 0px 0px 0px 100%;left:-260px;text-align:center;width:250px;background-color:orange;color:green;border-radius: 10px;"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/icone_new.gif" /><a href="http://jsmastronomy.245.s1.nabble.com/template/NamlServlet.jtp?macro=search_page&node=578&query=&days=7" target="_self"><span style="vertical-align:top">&nbsp;Mensagens últimos 7 dias</span></a></div></p>
               </then>
                 <else>
                     <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
 /]" value2="578">
                           <then>
                                <div style="width:100%;background-color:#BFBFBF;background-image:url(http://jsmastronomy.245.s1.nabble.com/file/n1595/sun_1.jpg); background-repeat:no-repeat; background-size:cover;">
                                   <p>&nbsp;</p>
                                         <div style="margin:20px 0px 20px 20px">
                                            <table style="border:0px solid black;width:100% ">
                                                  <tr>     
                                                        <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Artigos-amp-Textos-f671.html"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/texto_a.png" border="0" width="120" height="120" /></a><br/>Artigos e Textos</td>
                                                        <td style="color:white;text-align:center" colspan="2"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/title.png"/></td>
                                                        <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Formulas-Uteis-na-Astronomia-f751.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/formula_1a.png" border="0" width="160" height="80"  /></a><br/>Formulas Úteis</td>
                         </tr>
                         <tr>
                             <td>&nbsp;</td>
                             <td style="color:white;text-align:center" colspan="2"><a href="http://jsmastronomy.245.s1.nabble.com/Galeria-de-Fotos-f1585.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/photos_1.png" border="0" width="250" height="210" /></a></td>
        
                             <td>&nbsp;</td>
                        </tr>
                        <tr>
                           <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Guiamento-amp-Afins-f734.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/guiding_a1.png" border="0" width="150" height="80" /></a><br/>Guiamento &amp; Afins</td>
                         <td>&nbsp;</td>
                         <td>&nbsp;</td>
                        <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Colimacao-amp-Distorcoes-Opticas-f768.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/optica1a.png" border="0" width="170" height="70" /></a><br/>Colimação &amp; Óptica</td>
                       </tr>
                       <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                      </tr>
                      <tr>
                             <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Processamento-Grafico-amp-Tutorial-f1598.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/fotoeditor_1.png" border="0" width="70" height="70" /></a></td>
                             <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Ensaios-amp-Testes-f1597.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/ensaio_1.png" border="0" width="80" height="80" /></a></td>
                             <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Assunos-Diversos-amp-Bla-Bla-Blas-f1599.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/diversos_1.png" border="0" width="90" height="63" /></a></td>
                             <td style="color:white;text-align:center"><a href="http://jsmastronomy.245.s1.nabble.com/Equipamentos-Reviews-Observatorio-f1596.html" style="text-decoration:none"><img src="http://jsmastronomy.245.s1.nabble.com/file/n1595/observatory.png" border="0" width="70" height="60" /></a></td>
                      </tr>
                      <tr>
                             <td style="color:white;text-align:center">Processamento &amp; Tutorial</td>
                             <td style="color:white;text-align:center">Ensaios &amp; Testes</td>
                             <td style="color:white;text-align:center">Diversos &amp; Bate-Papo</td>
                            <td style="color:white;text-align:center">Equipamentos &amp; Reviews</td>
                       </tr>
                                            </table>
                                         </div>&nbsp:
                                </div>
                               <p><!-- <div style="float:left;margin:0px 0px 0px 5px;padding:0px 0px 0px 0px;font-size:100%;width:auto;height:auto;border-radius:5px; background-color:yellow;color:green"><a href="http://jsmastronomy.245.s1.nabble.com/Chat-amp-Tweets-td593.html" target="_self" style="text-decoration:none">&nbsp; Chat &amp; Tweet &nbsp; </a></div>--><div style="position:relative;margin: 0px 0px 0px 100%;left:-255px;text-align:center;width:250px;background-color:orange;color:green;border-radius: 10px;"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/icone_new.gif" /><a href="http://jsmastronomy.245.s1.nabble.com/template/NamlServlet.jtp?macro=search_page&node=578&query=&days=7" target="_self"><span style="vertical-align:top">&nbsp;Mensagens últimos 7 dias</span></a></div></p>
                           </then>
                           <else>                      
                           <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.app_hardcoded_notices
Macro
Requires: node_page, servlet
/>
                           <n.newsflash
Macro
/>
                           <n.show_administrator_notice
Macro
/>
                           <n.app_body_header
Macro
Requires: node_page, servlet
/>
                           <n.body/>
                           </else>
                  </n.if.equal>
             </else>
             </n.if.equal>
            <n.app_body_footer
Macro
/>
        </body>
    </n.app_min_html>
</override_macro>
Overrides default macro
... in app.naml
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<macro name="app_html" parameters="head,body" requires="servlet">
    <n.app_min_html>
        <head>
            <n.head/>
            <n.app_meta/>
            <n.increment_view_count/>
        </head>
        <body>
            <n.page_node.app_hardcoded_notices/>
            <n.newsflash/>
            <n.show_administrator_notice/>
            <n.app_body_header/>
            <n.body/>
            <n.app_body_footer/>
        </body>
    </n.app_min_html>
</macro>