Skip to content

Commit

Permalink
Only show downloads on Rotation Changes not on Rotation Speculation.
Browse files Browse the repository at this point in the history
The files match what you see in Changes not in Speculation.

Fixes #6871.
  • Loading branch information
bakert committed Feb 10, 2020
1 parent 5655013 commit 9ca43e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions decksite/templates/rotationchanges.mustache
Expand Up @@ -7,8 +7,10 @@
{{> section}}
{{/sections}}
{{> rotationkey}}
<section>
<h2>Downloads</h2>
<p><a href="{{new_cards_deck_url}}">New Cards File</a></p>
<p><a href="{{rotated_out_cards_deck_url}}">Rotated Out File</a></p>
</section>
{{#show_downloads}}
<section>
<h2>Downloads</h2>
<p><a href="{{new_cards_deck_url}}">New Cards File</a></p>
<p><a href="{{rotated_out_cards_deck_url}}">Rotated Out File</a></p>
</section>
{{/show_downloads}}
1 change: 1 addition & 0 deletions decksite/views/rotation_changes.py
Expand Up @@ -25,6 +25,7 @@ def __init__(self, cards_in: Sequence[Card], cards_out: Sequence[Card], playabil
self.show_filters_toggle = True
self.new_cards_deck_url = url_for('rotation_changes_files', changes_type='new')
self.rotated_out_cards_deck_url = url_for('rotation_changes_files', changes_type='out')
self.show_downloads = True

def page_title(self) -> str:
if self.speculation:
Expand Down

0 comments on commit 9ca43e3

Please sign in to comment.