Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

bug 846815 - always pass product to report/list page #308

Merged

Conversation

rhelmer
Copy link
Contributor

@rhelmer rhelmer commented Mar 1, 2013

No description provided.

@ghost ghost assigned lonnen Mar 1, 2013
@rhelmer
Copy link
Contributor Author

rhelmer commented Mar 1, 2013

@lonnen r?

@peterbe
Copy link
Contributor

peterbe commented Mar 2, 2013

I don't mean to hijack this review, which I don't, but there's got be time now to refactor these long hideous URLs in templates. Like a function in helpers.py that takes **kwargs somehow and infers by type how to handle them.

@@ -104,7 +104,7 @@
<td title="A change of {{ (crash.changeInPercentOfTotal * 100) | round(2) }}% from {{ (crash.previousPercentOfTotal * 100) | round(2) }}%">{{ (crash.changeInPercentOfTotal * 100) | round(2) }}%</td>
{% endif %}
<td>
<a class="signature" href="{{ url('crashstats.report_list') }}?range_value={{ days }}&amp;range_unit=days&amp;date={{ tcbs.end_date }}&amp;signature={{ crash.signature|urlencode }}&amp;version={{ product }}%3A{{ version }}" title="{{ crash.signature }}">{{ crash.signature|truncate(length=80, killwords=True) }}</a>
<a class="signature" href="{{ url('crashstats.report_list') }}?product={{ product}}&amp;range_value={{ days }}&amp;range_unit=days&amp;date={{ tcbs.end_date }}&amp;signature={{ crash.signature|urlencode }}&amp;version={{ product }}%3A{{ version }}" title="{{ crash.signature }}">{{ crash.signature|truncate(length=80, killwords=True) }}</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?product={{ product}}&amp is missing a matching space.

@lonnen
Copy link
Contributor

lonnen commented Mar 2, 2013

One minor nit and then its r+. Feel free to hit the button yourself.

@rhelmer
Copy link
Contributor Author

rhelmer commented Mar 19, 2013

@peterbe - please file a bug for refactoring long URLs. We are still yet to switch to django crash-stats for production, so I'd rather not tackle this yet.

rhelmer added a commit that referenced this pull request Mar 19, 2013
…-reportlist

bug 846815 - always pass product to report/list page
@rhelmer rhelmer merged commit 8bfd424 into mozilla:master Mar 19, 2013
@peterbe
Copy link
Contributor

peterbe commented Mar 19, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants