Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Remove all traces of pledge feature in the codebase #163

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions client/src/leaderboardtemplate.jade
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ mixin check(condition)
tr.leaderboard-row
td
a(href=item.absolute_url)= item.name
if item.pledge
a(href=item.pledge.url)
i.pledged.fa.fa-handshake-o(title=`${item.name} have pledged to secure their site.`)
td.desktop-only
+check(item.valid_https)
td.desktop-only
Expand Down
2 changes: 1 addition & 1 deletion client/src/styles/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

.stat-block {
display: inline-block;
width: 33%;
width: 49%;
vertical-align: top;
}

Expand Down
3 changes: 0 additions & 3 deletions client/src/styles/_leaderboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@
margin: 0;
}

i.pledged {
margin-left: 10px;
}
}

@media (max-width: $mediaMedium) {
Expand Down
19 changes: 0 additions & 19 deletions client/src/styles/_pledge.scss

This file was deleted.

15 changes: 0 additions & 15 deletions client/src/styles/_site-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,4 @@
padding: $spacingUnit;
}

.pledge {
background-color: #9eff8e;
border: 1px solid gray;
margin: 0 auto;
margin-top: $spacingUnit * 2;
padding: $spacingUnit / 2;
text-align: center;
width: 650px;

i {
display: inline-block;
margin-right: $spacingUnit / 2;
}

}
}
1 change: 0 additions & 1 deletion client/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
@import 'blog-index';
@import 'site-index';
@import 'site-page';
@import 'pledge';
@import 'forms';
2 changes: 0 additions & 2 deletions home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ def get_context(self, request):
context['percent_offering_https'] = 0
context['percent_defaulting_to_https'] = 0

context['num_pledged'] = len([site for site in sites if site.pledge])

# Serialize sites with the results of their latest scans for the teaser
context['sites_json'] = json.dumps([site.to_dict() for site in sites])

Expand Down
4 changes: 0 additions & 4 deletions home/templates/home/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ <h5 class="page-subhead">{{ page.sub_title }}</h5>
<div class="stat-block-number">{{ percent_defaulting_to_https }}%</div>
<div class="stat-block-caption">default to HTTPS</div>
</div>
<div class="stat-block">
<div class="stat-block-number">{{ num_pledged }}</div>
<div class="stat-block-caption">site{{ num_pledged|pluralize }} committed to change</div>
</div>
</div>

<div id="teaser">
Expand Down
1 change: 0 additions & 1 deletion pledges/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions pledges/admin.py

This file was deleted.

8 changes: 0 additions & 8 deletions pledges/apps.py

This file was deleted.

40 changes: 0 additions & 40 deletions pledges/forms.py

This file was deleted.

32 changes: 0 additions & 32 deletions pledges/migrations/0001_initial.py

This file was deleted.

20 changes: 0 additions & 20 deletions pledges/migrations/0002_auto_20161112_0448.py

This file was deleted.

Empty file removed pledges/migrations/__init__.py
Empty file.
52 changes: 0 additions & 52 deletions pledges/models.py

This file was deleted.

18 changes: 0 additions & 18 deletions pledges/signals.py

This file was deleted.

25 changes: 0 additions & 25 deletions pledges/templates/pledges/confirm.html

This file was deleted.

21 changes: 0 additions & 21 deletions pledges/templates/pledges/confirmed.html

This file was deleted.

3 changes: 0 additions & 3 deletions pledges/templates/pledges/emails/admin_notification.txt

This file was deleted.

14 changes: 0 additions & 14 deletions pledges/templates/pledges/emails/confirmation.txt

This file was deleted.

5 changes: 0 additions & 5 deletions pledges/templates/pledges/emails/reviewed.txt

This file was deleted.

42 changes: 0 additions & 42 deletions pledges/templates/pledges/pledge.html

This file was deleted.

Loading