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

Commit

Permalink
Drop back to iframe for team review
Browse files Browse the repository at this point in the history
It's helpful to see the actual team page, first because we never added
the revenue model question to the review dashboard, but also for context
like the owner.
  • Loading branch information
chadwhitacre committed Jun 11, 2015
1 parent 043889f commit 08455da
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions www/dashboard/teams.spt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ title = _("Fraud Review Dashboard - (Teams)")
text-align: left;
vertical-align: top;
}
#details {
iframe {
width: 70%;
height: 100%;
position: fixed;
Expand All @@ -38,17 +38,6 @@ title = _("Fraud Review Dashboard - (Teams)")
<script>
$(document).ready(function()
{
// Details Pane

$("#details div").hide();

$('.nav-link').click(function () {
$parent = $(this).parent()
$("#details div").each(function () {
$parent.data('slug') == $(this).data('slug') ? $(this).show() : $(this).hide();
});
});

Gratipay.forms.initCSRF();

function error(a,b,c)
Expand All @@ -57,8 +46,6 @@ title = _("Fraud Review Dashboard - (Teams)")
alert("Failed!");
}

// Wireup buttons

$('button').click(function()
{
var row = $(this).parent();
Expand All @@ -82,27 +69,12 @@ title = _("Fraud Review Dashboard - (Teams)")
});
</script>
<h3>Unreviewed Accounts (N = {{ len(unreviewed) }})</h3>

{% for team in unreviewed %}
<div data-slug="{{ team.slug }}">
<button class="good small selected">Good</button>
<button class="bad small">Bad</button>
&nbsp;
<a href="#" class="nav-link">{{ team.name }}</a>
<a href="/{{ team.slug }}/" target="drill-down">{{ team.name }}</a>
</div>
{% endfor %}

<div id="details">
<h2> Details </h2>
{% for team in unreviewed %}
<div data-slug="{{ team.slug }}">
<b>Name</b>: {{ team.name }} <br />
<b>Slug</b>: {{ team.slug }} <br />
<b>Homepage</b>: {{ team.homepage }} <br />
<b>Product or Service</b>: {{ team.product_or_service }} <br />
<b>Getting Paid</b>: {{ team.getting_paid }} <br />
<b>Getting Involved</b>: {{ team.getting_involved }} <br />
<b>Owner</b>: <a href="/{{team.owner}}" target="_blank">{{ team.owner }}</a>
</div>
{% endfor %}
</div>
<iframe name="drill-down"></iframe>

0 comments on commit 08455da

Please sign in to comment.