about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-04 12:59:07 +0300
committerBonfaceKilz2024-09-05 16:41:17 +0300
commitf480ae7bc26334c228f4b157a9faa2597eb84907 (patch)
treefa7256b36cc31b2fcd3aa08e11077a00d2e7fc6a
parente3b91264086d62e693676d9ece4f75def3540465 (diff)
downloadgenenetwork2-f480ae7bc26334c228f4b157a9faa2597eb84907.tar.gz
Use div-adjacent element instead of hard-coding the table width.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn2/wqflask/templates/wiki/history.html220
1 files changed, 111 insertions, 109 deletions
diff --git a/gn2/wqflask/templates/wiki/history.html b/gn2/wqflask/templates/wiki/history.html
index 0ca4f5e7..649db7d4 100644
--- a/gn2/wqflask/templates/wiki/history.html
+++ b/gn2/wqflask/templates/wiki/history.html
@@ -5,7 +5,6 @@
             width: 18em;
         }
 
-
         table tbody th,
         table tbody td {
             padding: 3px;
@@ -13,119 +12,122 @@
 
         table {
             margin-left: 1em;
-            max-width: 60em !important;
         }
     </style>
 {% endblock %}
 {% block content %}
     {{ flash_me() }}
     <div class = "container container-fluid">
-        <h2 class="text-info">GeneWiki Entry History</h2>
-        <h3 class="text-info">
-            <strong>Most Recent Version:</strong>
-        </h3>
-        <table class="table table-responsive table-bordered">
-            <tbody>
-                <tr>
-                    <th>Gene Symbol:</th>
-                    <td>{{ most_recent["symbol"] }}</td>
-                </tr>
-                {% if most_recent["species"] %}
-                    <tr>
-                        <th>Species:</th>
-                        <td>{{ most_recent["species"] }}</td>
-                    </tr>
-                {% endif %}
-                {% if most_recent["pubmed_ids"] %}
-                    <tr>
-                        <th>PubMed IDs:</th>
-                        <td>
-                            {% for id in most_recent["pubmed_ids"] %}
-                                <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>&nbsp;
-                            {% endfor %}
-                        </td>
-                    </tr>
-                {% endif %}
-                {% if most_recent["web_url"] %}
-                    <tr>
-                        <th>Web URL:</th>
-                        <td>{{ most_recent["web_url"] }}</td>
-                    </tr>
-                {% endif %}
-                <tr>
-                    <th>Entry:</th>
-                    <td>{{ most_recent["comment"] }}</td>
-                </tr>
-                {% if most_recent["categories"] %}
-                    <tr>
-                        <th>Category:</th>
-                        <td>{{ '; '.join(most_recent["categories"]) }}</td>
-                    </tr>
-                {% endif %}
-                <tr>
-                    <th>Add Time:</th>
-                    <td>{{ most_recent["created"] }}</td>
-                </tr>
-                {% if most_recent["reason"] %}
-                    <tr>
-                        <th>Reason for Modification:</th>
-                        <td>{{ most_recent["reason"] }}</td>
-                    </tr>
-                {% endif %}
-            </tbody>
-        </table>
-        <h3 class="text-info">
-            <strong>Previous Version:</strong>
-        </h3>
-        {% for version in previous_versions %}
-            <table class="table table-responsive table-bordered">
-                <tr>
-                    <th>Gene Symbol:</th>
-                    <td>{{ version["symbol"] }}</td>
-                </tr>
-                {% if version["species"] %}
-                    <tr>
-                        <th>Species:</th>
-                        <td>{{ version["species"] }}</td>
-                    </tr>
-                {% endif %}
-                {% if version["pubmed_ids"] %}
-                    <tr>
-                        <th>PubMed IDs:</th>
-                        <td>
-                            {% for id in version["pubmed_ids"] %}
-                                <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>&nbsp;
-                            {% endfor %}
-                        </td>
-                    </tr>
-                {% endif %}
-                {% if version["web_url"] %}
-                    <tr>
-                        <th>Web URL:</th>
-                        <td>{{ version["web_url"] }}</td>
-                    </tr>
-                {% endif %}
-                <tr>
-                    <th>Entry:</th>
-                    <td>{{ version["comment"] }}</td>
-                </tr>
-                {% if version["categories"] %}
-                    <tr>
-                        <th>Category:</th>
-                        <td>{{ '; '.join(version["categories"]) }}</td>
-                    </tr>
-                {% endif %}
-                <tr>
-                    <th>Add Time:</th>
-                    <td>{{ version["created"] }}</td>
-                </tr>
-                {% if version["reason"] %}
-                    <tr>
-                        <th>Reason for Modification:</th>
-                        <td>{{ version["reason"] }}</td>
-                    </tr>
-                {% endif %}
-            </table>
-        {% endfor %}
+        <div class="row">
+            <div class="col-sm-9">
+                <h2 class="text-info">GeneWiki Entry History</h2>
+                <h3 class="text-info">
+                    <strong>Most Recent Version:</strong>
+                </h3>
+                <table class="table table-responsive table-bordered">
+                    <tbody>
+                        <tr>
+                            <th>Gene Symbol:</th>
+                            <td>{{ most_recent["symbol"] }}</td>
+                        </tr>
+                        {% if most_recent["species"] %}
+                            <tr>
+                                <th>Species:</th>
+                                <td>{{ most_recent["species"] }}</td>
+                            </tr>
+                        {% endif %}
+                        {% if most_recent["pubmed_ids"] %}
+                            <tr>
+                                <th>PubMed IDs:</th>
+                                <td>
+                                    {% for id in most_recent["pubmed_ids"] %}
+                                        <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>&nbsp;
+                                    {% endfor %}
+                                </td>
+                            </tr>
+                        {% endif %}
+                        {% if most_recent["web_url"] %}
+                            <tr>
+                                <th>Web URL:</th>
+                                <td>{{ most_recent["web_url"] }}</td>
+                            </tr>
+                        {% endif %}
+                        <tr>
+                            <th>Entry:</th>
+                            <td>{{ most_recent["comment"] }}</td>
+                        </tr>
+                        {% if most_recent["categories"] %}
+                            <tr>
+                                <th>Category:</th>
+                                <td>{{ '; '.join(most_recent["categories"]) }}</td>
+                            </tr>
+                        {% endif %}
+                        <tr>
+                            <th>Add Time:</th>
+                            <td>{{ most_recent["created"] }}</td>
+                        </tr>
+                        {% if most_recent["reason"] %}
+                            <tr>
+                                <th>Reason for Modification:</th>
+                                <td>{{ most_recent["reason"] }}</td>
+                            </tr>
+                        {% endif %}
+                    </tbody>
+                </table>
+                <h3 class="text-info">
+                    <strong>Previous Version:</strong>
+                </h3>
+                {% for version in previous_versions %}
+                    <table class="table table-responsive table-bordered">
+                        <tr>
+                            <th>Gene Symbol:</th>
+                            <td>{{ version["symbol"] }}</td>
+                        </tr>
+                        {% if version["species"] %}
+                            <tr>
+                                <th>Species:</th>
+                                <td>{{ version["species"] }}</td>
+                            </tr>
+                        {% endif %}
+                        {% if version["pubmed_ids"] %}
+                            <tr>
+                                <th>PubMed IDs:</th>
+                                <td>
+                                    {% for id in version["pubmed_ids"] %}
+                                        <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>&nbsp;
+                                    {% endfor %}
+                                </td>
+                            </tr>
+                        {% endif %}
+                        {% if version["web_url"] %}
+                            <tr>
+                                <th>Web URL:</th>
+                                <td>{{ version["web_url"] }}</td>
+                            </tr>
+                        {% endif %}
+                        <tr>
+                            <th>Entry:</th>
+                            <td>{{ version["comment"] }}</td>
+                        </tr>
+                        {% if version["categories"] %}
+                            <tr>
+                                <th>Category:</th>
+                                <td>{{ '; '.join(version["categories"]) }}</td>
+                            </tr>
+                        {% endif %}
+                        <tr>
+                            <th>Add Time:</th>
+                            <td>{{ version["created"] }}</td>
+                        </tr>
+                        {% if version["reason"] %}
+                            <tr>
+                                <th>Reason for Modification:</th>
+                                <td>{{ version["reason"] }}</td>
+                            </tr>
+                        {% endif %}
+                    </table>
+                {% endfor %}
+            </div>
+        </div>
     </div>
 {% endblock %}