aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/static/scripts.js2
-rw-r--r--juick-www/src/main/static/style.css5
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/index.html3
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html3
4 files changed, 9 insertions, 4 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 984f0e5c..55bcf41a 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -270,7 +270,7 @@ function postformListener(formEl, ev) {
}
function unfoldPostForm() {
- if (window.location.pathname === '/' && window.location.hash === '#post') {
+ if (window.location.hash === '#post') {
document.querySelector('#newmessage').style.display = 'block';
var ta = document.querySelector('#newmessage textarea');
ta.style.minHeight = '70px';
diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css
index b24ee23f..b42c303e 100644
--- a/juick-www/src/main/static/style.css
+++ b/juick-www/src/main/static/style.css
@@ -164,6 +164,11 @@ body > header p {
margin-bottom: 20px;
padding: 15px;
display: none;
+ position: absolute;
+ top: 3em;
+ right: 0;
+ background-color: rgba(255,255,255,.6);
+ backdrop-filter: blur(5px)
}
#newmessage textarea {
border: 1px solid #CCC;
diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html
index 506979b5..51590ce0 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/index.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/index.html
@@ -4,9 +4,6 @@
{% if noindex %}
<!--noindex-->
{% endif %}
-{% if visitor.getUid() > 0 %}
-{% include "views/partial/newmessage" %}
-{% endif %}
{% for msg in msgs %}
{% include "views/partial/message" %}
{% endfor %}
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 6cb10141..cf0f9bb7 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
@@ -30,6 +30,9 @@
<li><a href="/logout">{{ i18n("messages","link.logout") }}</a></li>
</ul>
</nav>
+ {% if visitor.getUid() > 0 %}
+ {% include "views/partial/newmessage" %}
+ {% endif %}
{% else %}
<p>{{ i18n("messages","message.loginForSending", "/login") | raw }}.</p>
{% endif %}