buzmakov avatar buzmakov committed 883ccae Draft

little bootstrap

Comments (0)

Files changed (1)

tomofrontend/web/templates/tomo_info.html

-<!DOCTYPE html>
-<html>
-<head>
-    <title></title>
-    <script src='/static/my_scripts.js'></script>
-    <script src='/static/jquery/jquery.min.js'></script>
-    <script src='/static/autosize/jquery.autosize.js'></script>
-    <script>
-        $(function(){
-            $('textarea').autosize();
-        });
+{% extends "base.html" %}
+{% block title %}Информация об объекте{% endblock %}
+{% block body %}
+<div class="container">
 
-        $('#config_div_switcher').live("click", function (ob) {
-           $('#config_div').toggle();
-            });
+    <dl class="dl">
 
-        $('#status_div_switcher').live("click", function (ob) {
-            $('#status_div').toggle();
-        });
-    </script>
+        <dt> Object ID: </dt>
+        <dd> {{ tomo_object['id'] }}</dd>
 
-</head>
-<body>
-<ul>
-    <li> <b>Object ID:</b> {{ tomo_object['id'] }}</li>
-    <li> <b>Object Path:</b> {{ tomo_object['data_dir'] }}</li>
-    <li> <b>Object Profile:</b> {{ tomo_object['config']['profile'] }}</li>
-    <li>
-        <a href="{{ url_for('tomo_result',tomo_object_id=tomo_object['id']) }}">
-            Перейти на страницу реконструкции
-        </a>
-    </li>
-    <li>
-        <b>Object status:</b> {{ tomo_object['status'][-1]['message'] }}
-    </li>
-    <li>
-        <b> Детальный статус объекта:</b>
-        <label id="status_div_switcher">
-            <span style="text-decoration: underline;">
-                Показать/Спрятать статус
-            </span>
-        </label>
+        <dt> Object Path:</dt>
+        <dd> {{ tomo_object['data_dir'] }}</dd>
 
-        <div id="status_div" style="display: block;">
-            <label>
-                <textarea cols="80" readonly="true">{{ tomo_object.get_formated_status() }}</textarea>
-            </label>
-        </div>
-    </li>
+        <dt> Object Profile:</dt>
+        <dd>{{ tomo_object['config']['profile'] }}</dd>
 
-    <li> <b> Tomo config: </b>
-        <label id="config_div_switcher">
-            <span style="text-decoration: underline;">
-                Показать/Спрятать конфиг
-            </span>
-        </label>
+        <dd>
+            <a href="{{ url_for('tomo_result',tomo_object_id=tomo_object['id']) }}">
+                Перейти на страницу реконструкции
+            </a>
+        </dd>
 
-        <div id="config_div" style="display: block;">
-            <label>
-                <textarea cols="80" readonly="true">{{ tomo_object.get_formated_config() }}</textarea>
-            </label>
-        </div>
-    </li>
-</ul>
+        <dt>Object status:</dt>
+        <dd>{{ tomo_object['status'][-1]['message'] }}</dd>
 
-<a href={{url_for('tomo_experiments')}}>Список всех образцов</a>
+        <dt> Детальный статус объекта</dt>
+        <dd>
+            <textarea cols="80" readonly="true">{{ tomo_object.get_formated_status() }}</textarea>
+        </dd>
 
-</body>
-</html>
+        <dt>Tomo config: </dt>
+        <dd>
+            <textarea cols="80" readonly="true">{{ tomo_object.get_formated_config() }}</textarea>
+        </dd>
+    </dl>
+</div>
+</div>
+{% endblock%}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.