Skip to content

Commit

Permalink
Issue webcompat#1858 - Adds template for dashboard triage
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Nov 7, 2017
1 parent 50a7fe3 commit e613a62
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions webcompat/templates/dashboard/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<footer>
@@The shot in the footer@@
</footer>
15 changes: 15 additions & 0 deletions webcompat/templates/dashboard/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}Web Compatibility{% endblock %} | webcompat.com</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="WebCompat.com Triage dashboard">
<style>
</style>
</head>
<body>
{% block body %}{% endblock %}
{% include "dashboard/footer.html" %}
</body>
</html>
12 changes: 12 additions & 0 deletions webcompat/templates/dashboard/triage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "dashboard/layout.html" %}
{% block title %}Triage Dashboard{% endblock %}
{% block body %}
<main role="main">
<section>
<h1>Triage Dashboard</h1>
</section>
<article>
@@PLACEHOLDER FOR THE FUTURE DASHBOARD@@
</article>
</main>
{% endblock %}
2 changes: 1 addition & 1 deletion webcompat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def cssfixme():
@app.route('/dashboard/triage')
def dashboard_triage():
"""Route to handle dashboard triage."""
return render_template('dashboard-triage.html')
return render_template('dashboard/triage.html')


@app.route('/csp-report', methods=['POST'])
Expand Down

0 comments on commit e613a62

Please sign in to comment.