Commit 44ecea8f authored by Hermann Mayer's avatar Hermann Mayer

Fixed some minor bugs: Article Dashboard No Activity Message added, Correct…

Fixed some minor bugs: Article Dashboard No Activity Message added, Correct Permalink generation for Comments.
parent d0fd1d63
......@@ -168,6 +168,7 @@ $(document).ready(function() {
}();
// Set proper heights for our new modal fork
$.fn.modal.defaults.maxHeight = function(){
// subtract the height of the modal header and footer
return $(window).height() - 200;
......
......@@ -54,8 +54,6 @@
{% for comment in article.comments %}
<div class="blog-article-comments-section-wrapper">
<a name="comment-{{ comment.id }}"></a>
{% if app.user %}
{% if (comment.author.email == app.user.email) or (is_granted('ROLE_AUTHOR')) %}
......@@ -75,6 +73,7 @@
{% endif %}
<div class="blog-article-comments-section">
<a name="comment-{{ comment.id }}"></a>
<h4>
{% if comment.author %}
{{ comment.author.firstName ~ " " ~ comment.author.lastName }}
......
......@@ -81,6 +81,10 @@
</div>
{% endif %}
{% if article.tags.isEmpty() and not comment %}
Bisher gab es zu diesem Artikel noch keine Aktivitäten.
{% endif %}
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment