bioweb  0.09.92
C++/Python(django)/JavaScript(angularJS) framework
main.html
1 <!--
2  @file about.html
3  @brief the AngularJS partial 'about'
4 -->
5 
6 <h1>My application - {{'MAIN' | translate}}</h1>
7 
8 <ul ng-controller="versionController">
9  <li id="server_time" ng-controller="currentController">{{'TIME' | translate}}: <em id="server_time_val">{{current.time}}</em></li>
10  <li id="server_version">{{'SRV_VER' | translate}}: <em id="server_version_val">{{server_ver.server}}</em></li>
11  <li id="db_version">{{'DB_VER' | translate}}: <em id="db_version_val">{{server_ver.database}}</em></li>
12  <li id="client_version">{{'CLI_VER' | translate}}: <em id="client_version_val">{{client_ver}}</em></li>
13  <li id="cpp_get_number">C++ getNumber() result: <em id="cpp_get_number_val">{{cpp_get.number}}</em></li>
14 </ul>
15 
16 <p>{{ 'CPP_COMMANDS' | translate }}
17 <ul ng-controller="currentController" id="cpp_commands">
18  <li ng-repeat="(command_id, command_desc) in cpp_commands">
19  ID: <em id="cpp_command_id">{{command_id}}</em>,
20  {{'STATE' | translate}}: {{command_desc.state}},
21  <strong ng-if="command_desc.state == 'PENDING' ">
22  {{'PROGRESS' | translate}}: {{command_desc.progress}}
23  </strong>
24  </li>
25 </ul>
26 </p>
27 
28 
29 <ul ng-controller="commandController">
30  <li id="cpp_commands_number">{{'COMMANDS_NUMBER' | translate}}: <em id="cpp_commands_number_val">{{cpp_commands_no}}</em>
31  <button ng-click="clickNewCommand()" id="cpp_new_command_button" >
32  {{'START_NEW_COMMAND' | translate }}
33  </button>
34 
35 
36  </li>
37 </ul>