forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
133 additions
and
85 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
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 |
---|---|---|
@@ -1,51 +1,41 @@ | ||
{% extends "sentry/emails/base.html" %} | ||
|
||
{% load sentry_helpers %} | ||
{% load i18n %} | ||
|
||
{% block bodyclass %} level-{{ event.get_level_display }}{% endblock %} | ||
|
||
{% block header %} | ||
<h1>Sentry <small> | ||
<a href="{{ link }}" class="btn">View on Sentry</a> | ||
<h1>Sentry</h1> | ||
{% endblock %} | ||
|
||
{% block inner %} | ||
<h2> | ||
{% url 'sentry-stream' group.project.team.slug group.project.slug as project_link %} | ||
{% if group.times_seen == 1 %} | ||
{% trans "New Event" %} | ||
New Event on <a href="{% absolute_uri project_link %}" class="highlight">{{ group.project.name }}</a> | ||
{% else %} | ||
{% trans "Regression" %} | ||
Regression on <a href="{% absolute_uri project_link %}" class="highlight">{{ group.project.name }}</a> | ||
{% endif %} | ||
</small></h1> | ||
{% endblock %} | ||
</h2> | ||
|
||
{% block inner %} | ||
<pre>{{ event.message }}</pre> | ||
<pre class="message">{{ event.message }}</pre> | ||
|
||
<p><a href="{{ link }}">{{ link }}</a></p> | ||
<h3>Tags</h3> | ||
|
||
<table class="metadata"> | ||
<colgroup> | ||
<col style="width:25%;"> | ||
<col style="width:25%;"> | ||
<col style="width:25%;"> | ||
<col style="width:25%;"> | ||
</colgroup> | ||
<tr> | ||
<th>{% trans "Logger:" %}</th> | ||
<td>{{ event.logger }}</td> | ||
<th>{% trans "Level:" %}</th> | ||
<td>{{ event.get_level_display }}</td> | ||
</tr> | ||
<tr> | ||
<th>{% trans "Server:" %}</th> | ||
<td>{{ event.server_name }}</td> | ||
<th>{% trans "First Seen:" %}</th> | ||
<td>{{ group.first_seen|date }}</td> | ||
</tr> | ||
</table> | ||
<ul class="tag-list"> | ||
{% for tag_key, tag_value in tags %} | ||
<li> | ||
<strong>{{ tag_key }}</strong> | ||
<em>=</em> | ||
<span><a href="{% url 'sentry-stream' group.team.slug group.project.slug %}?{{ tag_key }}={{ tag_value }}">{{ tag_value }}</a> {% if tag_value|is_url %}<a href="{{ tag_value }}" class="icon-share"></a>{% endif %}</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
{% for int_id, label, text in interfaces %} | ||
{% for label, text in interfaces %} | ||
<div class="interface"> | ||
<div class="title">{{ label }}</div> | ||
<h3 class="title">{{ label }}</h3> | ||
{{ text }} | ||
</div> | ||
{% endfor %} | ||
|
||
<p><a href="{{ settings_link }}">Notification Settings</a></p> | ||
{% 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
9 changes: 3 additions & 6 deletions
9
src/sentry/templates/sentry/partial/interfaces/http_email.html
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