remove remaining refs to confirmation_required
This commit is contained in:
parent
b0e294bd35
commit
39b542d85b
3 changed files with 3 additions and 6 deletions
|
@ -36,7 +36,7 @@
|
|||
{% if event.code == event.DESCRIBE %}
|
||||
<div class="pull-right">
|
||||
{% if perm.delete_issue %}
|
||||
<a href="{% url 'delete-issue' project.name issue.id %}?prev={{ request.path }}" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
<a href="{% url 'delete-issue' project.name issue.id %}" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
{% endif %}
|
||||
{% if perm.modify_issue %}
|
||||
<a href="{% url 'edit-issue' project.name issue.id %}" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-edit"></span> Edit</a>
|
||||
|
@ -45,7 +45,7 @@
|
|||
{% elif event.code == event.COMMENT %}
|
||||
<div class="pull-right">
|
||||
{% if perm.delete_comment %}
|
||||
<a href="{% url 'delete-comment' project.name issue.id event.id %}?prev={{ request.path }}" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
<a href="{% url 'delete-comment' project.name issue.id event.id %}" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
{% endif %}
|
||||
{% if perm.modify_comment %}
|
||||
<a href="{% url 'edit-comment' project.name issue.id event.id %}" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-edit"></span> Edit</a>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<div class="row text-center">
|
||||
<a href="{% url 'list-team' %}" class="btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> Go back to list</a>
|
||||
<a href="{% url 'edit-team' team.pk %}" class="btn btn-primary"><span class="glyphicon glyphicon-edit"></span> Modify team</a>
|
||||
<a href="{% url 'delete-team' team.pk %}?prev={{ request.path }}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> Delete team</a>
|
||||
<a href="{% url 'delete-team' team.pk %}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> Delete team</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -487,7 +487,6 @@ def issue_edit_comment(request, project, issue, comment=None):
|
|||
|
||||
|
||||
@project_perm_required('delete_comment')
|
||||
@confirmation_required('Are you sure to delete this comment?')
|
||||
def issue_delete_comment(request, project, issue, comment):
|
||||
|
||||
comment = get_object_or_404(Event,
|
||||
|
@ -530,7 +529,6 @@ def issue_reopen(request, project, issue):
|
|||
|
||||
|
||||
@project_perm_required('delete_issue')
|
||||
@confirmation_required('Are you sure to delete this issue?')
|
||||
def issue_delete(request, project, issue):
|
||||
|
||||
issue = get_object_or_404(Issue, project=project, id=issue)
|
||||
|
@ -899,7 +897,6 @@ def team_remove_group(request, team, group):
|
|||
|
||||
|
||||
@project_perm_required('manage_team')
|
||||
@confirmation_required('Are you sure to delete this team?', prev='list-team')
|
||||
def team_delete(request, team):
|
||||
|
||||
team = get_object_or_404(Team, pk=team)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue