horizon template get js variable

asked 2015-10-28 05:33:00 -0500

Waid gravatar image

when I look at client_side/_balloon_container.html in network_topology, I saw some notations which is not django template, but rendering the javascript variable. for example,

       [[> table1]]


        <a href="[[url]][[console]]" class="vnc_window">罈 [[open_console_label]]</a>

I am not quite so sure what they means. But here I have a question.

Can I add some logic like a django template style:

        [[if console_id == 'abc' ]]
          <p> the console id is 'abc'</p>
          <p> not 'abc'</p>

Of course this will not work because I don't know the correct notation.

Any help? thanks!

edit retag flag offensive close merge delete