forked from mozilla/zamboni
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin page for the addon name blocklist
- Loading branch information
Jeff Balogh
committed
Jun 13, 2011
1 parent
3982943
commit ec0fa19
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
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,36 @@ | ||
{% extends "admin/base.html" %} | ||
|
||
{% block title %}{{ page_title('Add-on Name Blocklist') }}{% endblock %} | ||
|
||
{% block content %} | ||
<h2>Add-on Name Blocklist</h2> | ||
|
||
{% if request.GET.addon %} | ||
<div> | ||
<b>{{ request.GET.addon }}</b>: | ||
{% if addon %} | ||
<ul> | ||
<li><a href="{{ addon.get_url_path() }}">{{ addon.name }}</a></li> | ||
<li>{{ addon.id }}</li> | ||
<li>Status: {{ amo.STATUS_CHOICES[addon.status] }}</li> | ||
<li>Disabled: {{ addon.disabled_by_user }}</li> | ||
</ul> | ||
{% else %} | ||
Nothing matched. | ||
{% endif %} | ||
</div> | ||
<form method="post" action=""> | ||
{{ csrf() }} | ||
<input name="addon" value="{{ request.GET.addon }}" type="hidden"> | ||
<input type="submit" value="Reset"> | ||
</form> | ||
{% else %} | ||
|
||
<form action=""> | ||
<input name="addon" placeholder="name"> | ||
<input type="submit" value="Get Info"> | ||
</form> | ||
|
||
{% endif %} | ||
|
||
{% endblock %} |
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