Added quick mention, improved create experience
This commit is contained in:
parent
bd188a02bc
commit
528e9e2c1c
4 changed files with 6 additions and 4 deletions
|
|
@ -4,8 +4,9 @@
|
|||
<form action="{{ url_for('create') }}" method="POST" enctype="multipart/form-data">
|
||||
<dl>
|
||||
<dt>Message:</dt>
|
||||
<dd><textarea name="text" placeholder="What's happening?"></textarea></dd>
|
||||
<dd><textarea name="text" placeholder="What's happening?" class="create_text">{{ request.args['preload'] }}</textarea></dd>
|
||||
<dd id="fileInputContainer"><a href="javascript:attachFileInput();">Add a file...</a>
|
||||
<dd><small>Messages are public and can be seen on your profile as well as public timeline.</small></dd>
|
||||
<dd><input type="submit" value="Create" /></dd>
|
||||
</dl>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -12,13 +12,14 @@
|
|||
{% if user.username != current_user.username %}
|
||||
{% if current_user|is_following(user) %}
|
||||
<form action="{{ url_for('user_unfollow', username=user.username) }}" method="post">
|
||||
<input type="submit" value="- Un-follow" />
|
||||
<input type="submit" class="follow_button following" value="- Un-follow" />
|
||||
</form>
|
||||
{% else %}
|
||||
<form action="{{ url_for('user_follow', username=user.username) }}" method="post">
|
||||
<input type="submit" value="+ Follow" />
|
||||
<input type="submit" class="follow_button" value="+ Follow" />
|
||||
</form>
|
||||
{% endif %}
|
||||
<p><a href="/create/?preload=%2B{{ user.username }}">Mention this user in a message</a></p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue