horizon template get js variable

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

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]]

or

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

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>
        [[else]]
          <p> not 'abc'</p>
        [[endif]]

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

Any help? thanks!

edit retag flag offensive close merge delete