This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic re-drafting without image support
- Loading branch information
1 parent
fb6e1d6
commit 9797b6f
Showing
5 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends "base.html" %} | ||
{% load humanize %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Brutaldon ({{ own_acct.username }}) - reply | ||
{% endblock %} | ||
|
||
{% block page_scripts %} | ||
<script src="{% static 'js/mousetrap.min.js' %}" type="application/javascript"></script> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1 class="title">Redraft</h1> | ||
{% include "main/toot_partial.html" with toot=toot active=True %} | ||
<hr class="is-hidden"> | ||
<div class="notification"> | ||
<p> | ||
Submitting this form will <em>post</em> this replacement toot, and | ||
<em class="error">delete</em> the original toot. The replacement toot will not | ||
have any favs, boosts, or replies that the original toot had. | ||
Currently, media attachments must be re-uploaded. Sorry, working on it. | ||
</p> | ||
</div> | ||
|
||
<div class="box"> | ||
{% include "main/post_partial.html" %} | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
{% block page_scripts_inline %} | ||
<script type="application/javascript"> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
Mousetrap.bind('ctrl+enter', function(e) { | ||
var form = document.querySelector('#post-form'); | ||
form.submit(); | ||
return true; | ||
}); | ||
}); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters