new _room_gear.html to manage room actions for various gamers (e.g., founders & guests); new _room.scss for gatekeeper styling (still flimsy); added new .btn-abandon Bl-btn palette to _button-pad.scss; new FTs & epic view ITs assert functionality (100 percent coverage, fully passing test suite)
This commit is contained in:
16
src/templates/apps/gameboard/_partials/_room_gear.html
Normal file
16
src/templates/apps/gameboard/_partials/_room_gear.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% include "apps/applets/_partials/_gear.html" with menu_id="id_room_menu" %}
|
||||
|
||||
<div id="id_room_menu" style="display:none">
|
||||
<a href="/gameboard/" class="btn btn-cancel">EXIT</a>
|
||||
{% if request.user == room.owner %}
|
||||
<form method="POST" action="{% url 'epic:delete_room' room.id %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-danger">DEL</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="{% url 'epic:abandon_room' room.id %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-abandon">BYE</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user