aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/webapp')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html2
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/pm_inbox.html4
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/pm_sent.html2
3 files changed, 6 insertions, 2 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html b/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html
index c47e8a71..89115b87 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html
@@ -24,7 +24,9 @@
</nav>
<nav id="actions">
<ul>
+ {% if not readonly %}
<li><a href="/#post">Написать</a></li>
+ {% endif %}
<li><a href="/{{ visitor.getName() }}">@{{ visitor.getName() }}</a></li>
<li><a href="/logout">Выйти</a></li>
</ul>
diff --git a/juick-www/src/main/webapp/WEB-INF/views/pm_inbox.html b/juick-www/src/main/webapp/WEB-INF/views/pm_inbox.html
index cb55582a..fa339a25 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/pm_inbox.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/pm_inbox.html
@@ -16,7 +16,7 @@
</div>
<div class="msg-txt">{{ msg.getText() | raw }}</div>
-
+ {% if not readonly %}
<form action="/pm/send" method="POST" enctype="multipart/form-data">
<input type="hidden" name="uname" value="{{ msg.getUser().getName() }}"/>
<div class="msg-comment">
@@ -25,7 +25,7 @@
</div>
</div>
</form>
-
+ {% endif %}
</div>
</li>
{% endfor %}
diff --git a/juick-www/src/main/webapp/WEB-INF/views/pm_sent.html b/juick-www/src/main/webapp/WEB-INF/views/pm_sent.html
index 41f3814b..872cd29f 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/pm_sent.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/pm_sent.html
@@ -1,5 +1,6 @@
{% extends "layouts/content" %}
{% block content %}
+{% if not readonly %}
<form action="/pm/send" method="POST" enctype="multipart/form-data">
<div class="newpm">
<div class="newpm-to">To: <input type="text" name="uname" placeholder="username" value="{{ uname }}"/></div>
@@ -7,6 +8,7 @@
<div class="newpm-send"><input type="submit" value="OK"/></div>
</div>
</form>
+{% endif %}
{% if not msgs.isEmpty() %}
<ul id="private-messages">
{% for msg in msgs %}