about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-16 15:19:07 +0300
committerAlexander_Kabui2024-09-16 15:19:07 +0300
commit304f3f35bfea61bdf9e6be2286b8f6e83b71edb6 (patch)
tree84fbb6a0d85ff968f68da9303561b78dda0b9ba4
parent563c2db81f79bfa4cb00483e8a9b23c1db02ef6d (diff)
downloadgenenetwork2-304f3f35bfea61bdf9e6be2286b8f6e83b71edb6.tar.gz
Refactor: run dlint on html files.
-rw-r--r--gn2/wqflask/templates/generic_gn_docs.html30
-rw-r--r--gn2/wqflask/templates/gn_editor_commit.html10
2 files changed, 16 insertions, 24 deletions
diff --git a/gn2/wqflask/templates/generic_gn_docs.html b/gn2/wqflask/templates/generic_gn_docs.html
index 2f591f38..57723f0b 100644
--- a/gn2/wqflask/templates/generic_gn_docs.html
+++ b/gn2/wqflask/templates/generic_gn_docs.html
@@ -1,24 +1,14 @@
 {% extends "base.html" %}
-
-{% block title %} {{ file_title|capitalize }} {% endblock %}
-
-{% block css %}
-<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
-{% endblock %}
-
+{% block title %}{{ file_title|capitalize }}{% endblock %}
+{% block css %}<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />{% endblock %}
 {% block content %}
-
- <div class="github-btn-container">
-    <div class="github-btn">
-        <a href="/editor/edit?file-path={{ file_path }}">
-            Edit Text
-            <img src="/static/images/edit.png">
-        </a>
+    <div class="github-btn-container">
+        <div class="github-btn">
+            <a href="/editor/edit?file-path={{ file_path }}">
+                Edit Text
+                <img src="/static/images/edit.png">
+            </a>
+        </div>
     </div>
-</div>
-<div id="markdown" class="container">
-   {{ rendered_markdown|safe }}
-
-</div>
-
+    <div id="markdown" class="container">{{ rendered_markdown|safe }}</div>
 {% endblock %}
diff --git a/gn2/wqflask/templates/gn_editor_commit.html b/gn2/wqflask/templates/gn_editor_commit.html
index 84ebd818..2eb3e60c 100644
--- a/gn2/wqflask/templates/gn_editor_commit.html
+++ b/gn2/wqflask/templates/gn_editor_commit.html
@@ -23,15 +23,17 @@
         <br>
         <br>
         <div class="row">
-            <button id="btn-commit" class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Commit</button>
-            <button id="btn-diff" class="btn col-lg-3 col-lg-offset-1  col-sm-4 col-sm-offset-1">Show Diff</button>
+            <button id="btn-commit"
+                    class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Commit</button>
+            <button id="btn-diff"
+                    class="btn col-lg-3 col-lg-offset-1  col-sm-4 col-sm-offset-1">Show Diff</button>
         </div>
         <br>
         <div id="diff_page"></div>
     </div>
 </section>
 {% block js %}
-    <script>
+<script>
   htmx.on("#btn-commit", "click", function(event){
       let msg = htmx.find("#commit-message").value.trim()
       if (msg != ""){
@@ -51,5 +53,5 @@
           }),
       );
   })
-    </script>
+</script>
 {% endblock %}