diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-07-29 22:39:56 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-07-29 22:39:56 +0100 |
commit | c4a4d9c116ae758e1714769fecde35b21d6c6286 (patch) | |
tree | 15fc8b71dbff641fc7109a8787cb4f2a331dd3b1 | |
parent | 87a184595c2935d49f7046bfd0b5fd40856ba166 (diff) | |
download | cheatdb-c4a4d9c116ae758e1714769fecde35b21d6c6286.tar.xz |
Fix broken link on create thread
Fixes #147
-rw-r--r-- | app/templates/threads/new.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/templates/threads/new.html b/app/templates/threads/new.html index ffe6532..d60bf2c 100644 --- a/app/templates/threads/new.html +++ b/app/templates/threads/new.html @@ -6,13 +6,11 @@ {% block content %} -{% if package and current_user != package.author and not current_user.rank.atLeast(current_user.rank.EDITOR) %} - {% if package.issueTracker %} - <div class="alert alert-warning"> - Found a bug? Post on the <a href="{{ package.issue_tracker }}">issue tracker</a> instead.<br /> +{% if package and current_user != package.author and not current_user.rank.atLeast(current_user.rank.EDITOR) and package.issueTracker %} + <div class="alert alert-warning"> + Found a bug? Post on the <a href="{{ package.issueTracker }}">issue tracker</a> instead.<br /> If the package shouldn't be on CDB - for example, if it doesn't work at all - then please let us know here. - </div> - {% endif %} + </div> {% endif %} {% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %} |