mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +00:00

The semantics of <b> and <i> tags have changed as the web has evolved. <b> is specified to only be used as a last resort whereas <i> can be used for other purposes (e.g. rendering icons). Bold and italic text should be rendered using <strong> and <em> respectively. This patch makes this replacement in all pages except for pages that will be deprecrated soon and in the presskits.
48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
{% extends "admin/change_form.html" %}
|
|
{% block form_top %}
|
|
<p>
|
|
Note that the summary field can use
|
|
<a href="http://en.wikipedia.org/wiki/Markdown">markdown</a> markup.
|
|
</p>
|
|
{%endblock%}
|
|
|
|
{% block extrahead %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="/media/css/showdown_preview.css" />
|
|
<script type="text/javascript" src="/media/showdown/showdown.js"></script>
|
|
<script type="text/javascript" src="/media/js/showdown_preview.js"></script>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
tael = document.getElementsByTagName('textarea');
|
|
for (i = 0; i < tael.length; i++) {
|
|
if (tael[i].className.indexOf('markdown_preview') >= 0) {
|
|
attach_showdown_preview(tael[i].id, 1);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
{%endblock%}
|
|
|
|
{%if notifications%}
|
|
{%block after_field_sets%}
|
|
<h4>Notifications sent for this item</h4>
|
|
<ul>
|
|
{%for n in notifications%}
|
|
<li>{{n.text}} by {{n.author}} sent at {{n.date}}</li>
|
|
{%empty%}
|
|
<li>No notifications sent for this item</li>
|
|
{%endfor%}
|
|
</ul>
|
|
<p>
|
|
{%if original.org.email%}
|
|
New notification: <input type="text" name="new_notification" style="width:400px;" /> (<strong>Note!</strong> This comment is emailed to the organisation!)<br/>
|
|
To send a notification on rejection, first add the notification above and hit
|
|
"Save and continue editing". Then as a separate step, delete the record.
|
|
{%else%}
|
|
Organisation has <strong>no email</strong>, so cannot send notifications to it!
|
|
{%endif%}
|
|
</p>
|
|
<hr/>
|
|
{%endblock%}
|
|
{%endif%}
|