Skip to content

Commit

Permalink
Some general improvements for sidebars/page headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Oct 1, 2012
1 parent 35c1e56 commit 8312d19
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
10 changes: 5 additions & 5 deletions src/sentry/templates/sentry/404.html
Expand Up @@ -4,14 +4,14 @@


{% block title %}{% trans "Page Not Found" %} | {{ block.super }}{% endblock %} {% block title %}{% trans "Page Not Found" %} | {{ block.super }}{% endblock %}


{% block page_header_block %}{% endblock %}
{% block bodyclass %}{% endblock %} {% block bodyclass %}{% endblock %}


{% block page_header %} {% block main %}
<h2>{% trans "Page Not Found" %}</h2>
{% endblock %}

{% block content %}
<section class="body"> <section class="body">
<div class="page-header">
<h2>{% trans "Page Not Found" %}</h2>
</div>
<p class="alert-message notice">{% trans "The page you are looking for was not found." %}</p> <p class="alert-message notice">{% trans "The page you are looking for was not found." %}</p>
<p><a href="{% url sentry %}">{% trans "Return to the dashboard" %}</a></p> <p><a href="{% url sentry %}">{% trans "Return to the dashboard" %}</a></p>
</section> </section>
Expand Down
10 changes: 5 additions & 5 deletions src/sentry/templates/sentry/500.html
Expand Up @@ -4,14 +4,14 @@


{% block title %}{% trans "Internal Server Error" %} | {{ block.super }}{% endblock %} {% block title %}{% trans "Internal Server Error" %} | {{ block.super }}{% endblock %}


{% block page_header_block %}{% endblock %}
{% block bodyclass %}{% endblock %} {% block bodyclass %}{% endblock %}


{% block page_header %} {% block main %}
<h2>{% trans "Internal Server Error" %}</h2>
{% endblock %}

{% block content %}
<section class="body"> <section class="body">
<div class="page-header">
<h2>{% trans "Internal Server Error" %}</h2>
</div>
<p>{% trans "There was an internal server error while processing your request." %}</p> <p>{% trans "There was an internal server error while processing your request." %}</p>
{% if request.sentry.id %} {% if request.sentry.id %}
<p>{% blocktrans with request.sentry.id as id %}You may reference this error as <strong>{{ id }}</strong>.{% endblocktrans %}</p> <p>{% blocktrans with request.sentry.id as id %}You may reference this error as <strong>{{ id }}</strong>.{% endblocktrans %}</p>
Expand Down
3 changes: 1 addition & 2 deletions src/sentry/templates/sentry/dashboard.html
Expand Up @@ -4,8 +4,7 @@


{% block title %}{% trans "Dashboard" %} | {{ block.super }}{% endblock %} {% block title %}{% trans "Dashboard" %} | {{ block.super }}{% endblock %}


{% block page_header_block %} {% block page_header_block %}{% endblock %}
{% endblock %}


{% block main %} {% block main %}
<section class="body"> <section class="body">
Expand Down
6 changes: 2 additions & 4 deletions src/sentry/templates/sentry/login.html
Expand Up @@ -4,12 +4,10 @@


{% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %}


{% block search %}{% endblock %} {% block page_header_block %}{% endblock %}

{% block page_header %}{% endblock %}
{% block bodyclass %}{% endblock %} {% block bodyclass %}{% endblock %}


{% block content %} {% block main %}
<section class="body"> <section class="body">
{% if next %} {% if next %}
<p class="alert alert-info">{% trans "Please login to continue." %}</p> <p class="alert alert-info">{% trans "Please login to continue." %}</p>
Expand Down
3 changes: 1 addition & 2 deletions src/sentry/templates/sentry/teams/manage.html
Expand Up @@ -6,9 +6,8 @@


{% block title %}{% blocktrans with team.name as name %}Manage Team: {{ name }}{% endblocktrans %} | {{ block.super }}{% endblock %} {% block title %}{% blocktrans with team.name as name %}Manage Team: {{ name }}{% endblocktrans %} | {{ block.super }}{% endblock %}


{% block bodyclass %} with-left-sidebar{% endblock %}

{% block breadcrumb %} {% block breadcrumb %}
{{ block.super }}
<li class="divider">/</li> <li class="divider">/</li>
<li><a href="{% url sentry-manage-team team.slug %}">{{ team.name }}</a></li> <li><a href="{% url sentry-manage-team team.slug %}">{{ team.name }}</a></li>
{% endblock %} {% endblock %}
Expand Down

0 comments on commit 8312d19

Please sign in to comment.