diff options
author | BonfaceKilz | 2020-11-25 13:12:52 +0300 |
---|---|---|
committer | GitHub | 2020-11-25 13:12:52 +0300 |
commit | ec045cf2e2843c73c26b1598eb2aa61ed2efb1dc (patch) | |
tree | 8daee3eef294618a78c955ca8261c01b733ebb34 | |
parent | 702e7162cf426a58c14f3cd56186b5acac8d710e (diff) | |
parent | 3957634c1fd24eb61efe0adc74fe7c6c7841ad86 (diff) | |
download | genenetwork2-ec045cf2e2843c73c26b1598eb2aa61ed2efb1dc.tar.gz |
Merge pull request #489 from Alexanderlacuna/fix-references
Fix broken UI
-rw-r--r-- | wqflask/wqflask/docs.py | 4 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py index d653c269..23fc3cad 100644 --- a/wqflask/wqflask/docs.py +++ b/wqflask/wqflask/docs.py @@ -19,8 +19,10 @@ class Docs(object): self.title = self.entry.capitalize() self.content = "" else: + self.title = result[0] - self.content = result[1] + self.content = result[1].decode("utf-8") + self.editable = "false" # ZS: Removing option to edit to see if text still gets vandalized diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index b7c4d142..bf2e9026 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -304,8 +304,8 @@ def news(): @app.route("/references") def references(): doc = Docs("references", request.args) + # return render_template("reference.html") return render_template("docs.html", **doc.__dict__) - #return render_template("reference.html") @app.route("/intro") def intro(): |