Skip to content

Commit

Permalink
Show a (non-functional) delete button against websites on your profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
colons committed Nov 7, 2023
1 parent 9821aa6 commit 9aee607
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nkdsu/static/less/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ body {
&[data-icon="twitter"]::before { .fab(); content: @fa-var-twitter }
&[data-icon="x"]::before { .fab(); content: @fa-var-x }
&[data-icon="youtube"]::before { .fab(); content: @fa-var-youtube }

form {
margin: 0 .5em;
display: inline-block;
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions nkdsu/templates/include/voter_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ <h2>
{% for website in voter.get_websites %}
<li data-icon="{{ website.icon }}">
<a href="{{ website.url }}">{{ website.url|strip_scheme }}</a>
<form method="post">
{% csrf_token %}
<button title="remove this URL from your profile" class="link" type="submit" name="delete-website" value="{{ website.pk }}"></button>
</form>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 9aee607

Please sign in to comment.