Skip to content

Commit

Permalink
Resolve over-indents
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-li committed Jan 19, 2022
1 parent e4ddc01 commit 0b96d0a
Showing 1 changed file with 41 additions and 42 deletions.
83 changes: 41 additions & 42 deletions coldfront/core/project/templates/project/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,51 +218,50 @@ <h2 class="d-inline">
<a name="users">Users</a>
<span class="badge badge-secondary">{{project_users.count}}</span>
</h2>
<div class="float-right">
{% if project.status.name != 'Archived' and is_allowed_to_update_project %}
{% comment %}
<div class="float-right">
{% if project.status.name != 'Archived' and is_allowed_to_update_project %}
{% comment %}
<a class="btn btn-primary" href="{{mailto}}" role="button"><i class="far fa-envelope"></i> Email Project Users</a>
{% endcomment %}
<a class="btn btn-success" href="{% url 'project-add-users-search' project.pk %}" role="button"><i class="fas fa-user-plus" aria-hidden="true"></i> Add Users</a>
<a class="btn btn-danger" href="{% url 'project-remove-users' project.pk %}" role="button"><i class="fas fa-user-times" aria-hidden="true"></i> Remove Users</a>
{% endif %}
{% if project.status.name != 'Archived' and can_leave_project %}
<div class="modal fade" id="denial{{ user.pk }}Modal" tabindex="-1" role="dialog" aria-labelledby="denial{{ user.pk }}ModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form action="{% url 'project-remove-self' project.pk %}" method="post">
{% csrf_token %}

<div class="modal-content">
<div class="modal-header">
<p class="modal-title">Leave Project: {{ project.name }}</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body">
<label>Are you sure? You will immediately be disallowed from submitting jobs under this project.</label>

<br><b>User:</b> {{ user.email }}
<br><b>Project:</b> {{ project.name }}
</div>

<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-danger mr-1" type="submit">
Yes, leave this project.
</button>
</div>
</div>
</form>
</div>
<a class="btn btn-success" href="{% url 'project-add-users-search' project.pk %}" role="button"><i class="fas fa-user-plus" aria-hidden="true"></i> Add Users</a>
<a class="btn btn-danger" href="{% url 'project-remove-users' project.pk %}" role="button"><i class="fas fa-user-times" aria-hidden="true"></i> Remove Users</a>
{% endif %}
{% if project.status.name != 'Archived' and can_leave_project %}
<div class="modal fade" id="denial{{ user.pk }}Modal" tabindex="-1" role="dialog" aria-labelledby="denial{{ user.pk }}ModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form action="{% url 'project-remove-self' project.pk %}" method="post">
{% csrf_token %}

<div class="modal-content">
<div class="modal-header">
<p class="modal-title">Leave Project: {{ project.name }}</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body">
<label>Are you sure? You will immediately be disallowed from submitting jobs under this project.</label>

<br><b>User:</b> {{ user.email }}
<br><b>Project:</b> {{ project.name }}
</div>

<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-danger mr-1" type="submit">
Yes, leave this project.
</button>
</div>
</div>
<button class="btn btn-danger" data-toggle="modal" data-target="#denial{{ user.pk }}Modal">
Leave Project
</button>
{% endif %}
</div>

</form>
</div>
</div>
<button class="btn btn-danger" data-toggle="modal" data-target="#denial{{ user.pk }}Modal">
Leave Project
</button>
{% endif %}
</div>
</div>
<div class="card-body">
<div class="table-responsive">
Expand Down

0 comments on commit 0b96d0a

Please sign in to comment.