Skip to content

Commit 495d2ef

Browse files
author
Mike Taylor
committed
Issue #340 - Add links to issues from browse issues headers + keys.
1 parent 0166c86 commit 495d2ef

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

webcompat/templates/browse-issues.html

+15-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22
<div class="wc-content" id="browse-issues">
33
<h2>Browse Issues</h2>
44
<span class="key">
5-
<span class="IssueItem--untriaged">Untriaged</span>
6-
<span class="IssueItem--need">Needs&nbsp;Diagnosis</span>
7-
<span class="IssueItem--ready">Ready&nbsp;for&nbsp;Outreach</span>
8-
<span class="IssueItem--sitewait">Site&nbsp;Contacted</span>
9-
<span class="IssueItem--closed">Closed</span>
5+
<span class="IssueItem--untriaged">
6+
<a href="{{ url_for('show_issues') }}?untriaged=1">Untriaged</a>
7+
</span>
8+
<span class="IssueItem--need">
9+
<a href="{{ url_for('show_issues') }}?needsdiagnosis=1">Needs&nbsp;Diagnosis</a>
10+
</span>
11+
<span class="IssueItem--ready">
12+
<a href="{{ url_for('show_issues') }}?contactready=1">Ready&nbsp;for&nbsp;Outreach</a>
13+
</span>
14+
<span class="IssueItem--sitewait">
15+
<a href="{{ url_for('show_issues') }}?sitewait=1">Site&nbsp;Contacted</a>
16+
</span>
17+
<span class="IssueItem--closed">
18+
<a href="{{ url_for('show_issues') }}?closed=1">Closed</a>
19+
</span>
1020
</span>
1121
{% include "browse-issues/my-issues.html" %}
1222
<div class="cssr-Grid cssr-Grid--withGutter">

webcompat/templates/browse-issues/needs-diagnosis.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div id="needs-diagnosis" class="cssr-Grid-cell cssr-all--1of2 cssr-maxM--2of2">
22
<script type="text/template" id="needs-diagnosis-tmpl">
3-
<h3 class="wc-titleIssue">Needs Diagnosis</h3>
3+
<h3 class="wc-titleIssue">
4+
<a href="{{ url_for('show_issues') }}?needsdiagnosis=1">Needs Diagnosis</a>
5+
</h3>
46
<% if (needsDiagnosis.length) { %>
57
<% _.each(needsDiagnosis, function(issue) { %>
68
<div class="IssueItem IssueItem--need">

webcompat/templates/browse-issues/ready-for-outreach.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div id="ready-for-outreach" class="cssr-Grid-cell cssr-all--1of2 cssr-maxM--2of2">
22
<script type="text/template" id="contactready-tmpl">
3-
<h3 class="wc-titleIssue">Ready for Outreach</h3>
3+
<h3 class="wc-titleIssue">
4+
<a href="{{ url_for('show_issues') }}?contactready=1">Ready for Outreach</a>
5+
</h3>
46
<% if (contactReady.length) { %>
57
<% _.each(contactReady, function(issue) { %>
68
<div class="IssueItem IssueItem--ready">

webcompat/templates/browse-issues/site-contacted.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div id="sitewait" class="cssr-Grid-cell cssr-all--1of2 cssr-maxM--2of2">
22
<script type="text/template" id="sitewait-tmpl">
3-
<h3 class="wc-titleIssue">Site Contacted</h3>
3+
<h3 class="wc-titleIssue">
4+
<a href="{{ url_for('show_issues') }}?sitewait=1">Site Contacted</a>
5+
</h3>
46
<% if (sitewait.length) { %>
57
<% _.each(sitewait, function(issue) { %>
68
<div class="IssueItem IssueItem--sitewait">

webcompat/templates/browse-issues/untriaged.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div id="untriaged" class="cssr-Grid-cell cssr-all--1of2 cssr-maxM--2of2">
22
<script type="text/template" id="untriaged-tmpl">
3-
<h3 class="wc-titleIssue">Untriaged Issues</h3>
3+
<h3 class="wc-titleIssue">
4+
<a href="{{ url_for('show_issues') }}?untriaged=1">Untriaged Issues</a>
5+
</h3>
46
<% if (untriaged.length) { %>
57
<% _.each(untriaged, function(issue) { %>
68
<div class="IssueItem IssueItem--untriaged">

0 commit comments

Comments
 (0)