Skip to content

Commit

Permalink
make browse by date consistently use the 'date' field instead of the …
Browse files Browse the repository at this point in the history
…more specific fields

Change-Id: I33cc6dd806861ea9e7f32beea0770bcaa9178856
  • Loading branch information
dhellmann committed Jul 4, 2012
1 parent 3cb247a commit d4c2441
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docket/templates/browse_date.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ <h1>Browse <small>By Date</small></h1>
<tr>
<td style="text-align: right;"><a href="{{ url_for('case', caseid=case._id) }}">{{case.number}}</a></td>
<td><a href="{{ url_for('browse_date',
year=case.hearing_date.year,
month=case.hearing_date.month,
day=case.hearing_date.day)}}">{{case.hearing_date|date}}</a></td>
year=case.date.year,
month=case.date.month,
day=case.date.day)}}">{{case.date|date}}</a></td>
<td>{{case.defendant}}</td>
<td><a href="{{ url_for('code', code=case.violation) }}">{{case.violation}}</a></td>
</tr>
Expand Down
18 changes: 9 additions & 9 deletions docket/templates/case.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "base.html" %}
{% block title %}Case {{case.number}} from {{case.hearing_date.year}}
{% block title %}Case {{case.number}} from {{case.date.year}}
| {{ super() }}{% endblock %}

{% block content %}
<div class="container-fluid">

<div class="page-header">
<h1>Case <small>{{case.number}} from {{case.hearing_date.year}} :
<h1>Case <small>{{case.number}} from {{case.date.year}} :
{{case.defendant}} for {{violation.code}} ({{violation.summary}})</small></h1>
</div>

Expand All @@ -16,15 +16,15 @@ <h1>Case <small>{{case.number}} from {{case.hearing_date.year}} :
<ul class="nav nav-list">
<li class="nav-header">Browse</li>
<li><a href="{{ url_for('browse_date',
year=case.hearing_date.year,
month=case.hearing_date.month,
day=case.hearing_date.day) }}">Cases
heard that day</a>
year=case.date.year,
month=case.date.month,
day=case.date.day) }}">
Arrests that day</a>
</li>
<li><a href="{{ url_for('browse_date',
year=case.hearing_date.year,
month=case.hearing_date.month) }}">
Cases heard in {{case.hearing_date|month}} of {{case.hearing_date.year}}</a></li>
year=case.date.year,
month=case.date.month) }}">
Arrests in {{case.date|month}} of {{case.date.year}}</a></li>
{% if cases_on_page %}
<li class="nav-header">Cases on page
{{case.page}}</li>
Expand Down

0 comments on commit d4c2441

Please sign in to comment.