06/15 Phase 3 codes
This commit is contained in:
@@ -52,7 +52,20 @@
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><button class="btn danger" type="submit">{{ _('Delete') }}</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<p class="muted small">{{ _('Messaging arrives in Phase 3.') }}</p>
|
||||
{% if current_user.is_authenticated %}
|
||||
<a class="btn" href="{{ url_for('messaging.start_conversation', listing_id=listing.id) }}">
|
||||
{{ _('Contact seller') }}
|
||||
</a>
|
||||
<form method="post"
|
||||
action="{{ url_for('messaging.toggle_favorite', listing_id=listing.id) }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button class="btn ghost" type="submit">{{ _('♥ Save listing') }}</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<a class="btn" href="{{ url_for('auth.login') }}?next={{ request.path }}">
|
||||
{{ _('Sign in to contact') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</aside>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user