aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates')
-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 %}