From bde0126a7c14d8d4aa52c42e7a164764152fec07 Mon Sep 17 00:00:00 2001 From: MetroWind Date: Sun, 29 Sep 2024 00:33:49 -0700 Subject: [PATCH] Fix the drop downs in the edit post and edit draft interface. --- src/post.cpp | 4 ++-- templates/edit_draft.html | 12 ++++++++---- templates/edit_post.html | 12 ++++++++---- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/post.cpp b/src/post.cpp index 242105b..dd464f0 100644 --- a/src/post.cpp +++ b/src/post.cpp @@ -17,9 +17,9 @@ std::string Post::markupToStr(Markup m) switch(m) { case COMMONMARK: - return "commonmark"; + return "CommonMark"; case ASCIIDOC: - return "asciidoc"; + return "AsciiDoc"; } std::unreachable(); } diff --git a/templates/edit_draft.html b/templates/edit_draft.html index 3a09a2f..27929b4 100644 --- a/templates/edit_draft.html +++ b/templates/edit_draft.html @@ -28,17 +28,21 @@

{{ blog_title }}

- {% for lang in languages %} + {% if lang == post.language %} + + {% else %} + {% endif %} {% endfor %} - + + diff --git a/templates/edit_post.html b/templates/edit_post.html index a1f89d1..51ce3e8 100644 --- a/templates/edit_post.html +++ b/templates/edit_post.html @@ -28,17 +28,21 @@

{{ blog_title }}

- {% for lang in languages %} + {% if lang == post.language %} + + {% else %} + {% endif %} {% endfor %} - + +