-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from the-Bruce/feat/website-summary
Feat website summary
- Loading branch information
Showing
12 changed files
with
305 additions
and
53 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.1.6 on 2023-02-26 18:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("votes", "0003_election_archived"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="stvresult", | ||
name="action_log", | ||
field=models.JSONField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<div class="table-responsive"> | ||
<table class="table table-bordered table-sm table-hover"> | ||
<thead> | ||
{% for row in table.head %} | ||
<tr> | ||
{% for content,width,style in row %} | ||
{% if style == "header" %} | ||
<th colspan="{{ width }}">{{ content }}</th> | ||
{% else %} | ||
<td colspan="{{ width }}">{{ content }}</td> | ||
{% endif %} | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</thead> | ||
<tbody> | ||
{% for row in table.body %} | ||
<tr> | ||
{% for content,width,style in row %} | ||
{% if style == "header" %} | ||
<th colspan="{{ width }}">{{ content }}</th> | ||
{% elif style == "changed" %} | ||
<td colspan="{{ width }}"><strong>{{ content }}</strong></td> | ||
{% elif style == "float" %} | ||
<td colspan="{{ width }}">{{ content|floatformat }}</td> | ||
{% else %} | ||
<td colspan="{{ width }}">{{ content }}</td> | ||
{% endif %} | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
<tfoot> | ||
{% for row in table.foot %} | ||
<tr> | ||
{% for content,width,style in row %} | ||
{% if style == "header" %} | ||
<th colspan="{{ width }}">{{ content }}</th> | ||
{% elif style == "changed" %} | ||
<td colspan="{{ width }}"><strong>{{ content }}</strong></td> | ||
{% elif style == "float" %} | ||
<td colspan="{{ width }}">{{ content|floatformat }}</td> | ||
{% else %} | ||
<td colspan="{{ width }}">{{ content }}</td> | ||
{% endif %} | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</tfoot> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.