gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit 08d8976f076f67b2d5d412a45db8cb4d0b155835
parent cdf604fa27e4fd14f2c4331075024605f002127b
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri, 24 Apr 2020 00:09:13 -0500

Minor changes

Replace , with space in sections
Add username to auto-filled replies

Diffstat:
Mstatic/css/style.css | 1+
Mtemplates/base.html | 6+++---
Mtemplates/single_note.html | 2+-
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/static/css/style.css b/static/css/style.css @@ -66,6 +66,7 @@ a:link, a:visited { width: 100%; resize: none; margin: 5px; + font-size: 1em; } .submit-button-style { diff --git a/templates/base.html b/templates/base.html @@ -6,9 +6,9 @@ <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"/> <script> - function reply(note_id) + function reply(note_id, user_name) { - document.getElementById("note_input").value='📝' + note_id + ' '; + document.getElementById("note_input").value='📝' + note_id + ' @' + user_name + ' '; document.getElementById("note_input").focus(); }</script> </head> @@ -18,7 +18,7 @@ <div class="padded navbar"> <div class="title">🐟{{global.title}}/{{page}}</div> <div class="navlinks"> - <a href="/">timeline</a>,<a href="/server_info">server</a>{% if global.logged_in %},<a href="/user/{{global.user.username}}">@{{global.user.username}}</a>{% else %},<a href="login">login</a>{% endif %} + <a href="/">timeline</a> <a href="/server_info">server</a>{% if global.logged_in %} <a href="/user/{{global.user.username}}">@{{global.user.username}}</a>{% else %} <a href="login">login</a>{% endif %} </div> </div> </div> diff --git a/templates/single_note.html b/templates/single_note.html @@ -3,7 +3,7 @@ <div class="note-meta"> <a href="/note/{{note.id}}">📝{{note.id}}</a> {{note.created_time}} <a class="bold" href="/user/{{note.creator_username}}">@{{note.creator_username}}</a> {% if global.logged_in %} - <a href="#" onclick="reply({{note.id}})">↪</a> +<a href="#" onclick="reply({{note.id}}, '{{note.creator_username}}')">↪</a> {% endif %} {% if note.creator_id == global.user.id %} <form method="post" action="/{{note.id}}/delete" class="inline">