Skip to content

Commit 9ab116d

Browse files
committed
Change dashboard for inactive members #34
1 parent e851d7d commit 9ab116d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

conditional/templates/dashboard.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3 class="panel-title">Membership Evaluations
116116
<span class="pull-right"><span class="glyphicon glyphicon-ok-sign green"></span> Passed</span>
117117
{% elif spring['status'] == "Failed" %}
118118
<span class="pull-right"><span class="glyphicon glyphicon-remove-sign red"></span> Failed</span>
119-
{% else %}
119+
{% elif active %}
120120
<span class="pull-right"><span class="glyphicon glyphicon-hourglass yellow"></span> Pending</span>
121121
{% endif %}
122122
</h3>
@@ -194,9 +194,9 @@ <h3 class="panel-title">Conditionals</h3>
194194
</div>
195195
{% endif %}
196196

197-
{% if major_projects_count == 0 %}
197+
{% if major_projects_count == 0 and not active%}
198198
<div class="alert alert-warning" role="alert"> <span class="glyphicon glyphicon-exclamation-sign white" style="padding-right:5px"> </span> You have no major projects.</div>
199-
{% else %}
199+
{% elif major_projects_count > 0 %}
200200
<div class="panel panel-default">
201201
<div class="panel-heading">
202202
<h3 class="panel-title">Major Projects</h3>
@@ -237,6 +237,7 @@ <h3 class="panel-title">Housing Status</h3>
237237
<td class="title">Housing Points</td>
238238
<td><span class="pull-right">{{housing['points']}}</span></td>
239239
</tr>
240+
{% if active %}
240241
<tr>
241242
<td class="title">Room Number</td>
242243
<td><span class="pull-right">{{housing['room']}}</span></td>
@@ -245,17 +246,18 @@ <h3 class="panel-title">Housing Status</h3>
245246
<td class="title">Housing Queue Position</td>
246247
<td><span class="pull-right">{{housing['queue_pos']}}</span></td>
247248
</tr>
249+
{% endif %}
248250
</tbody>
249251
</table>
250252
{% endif %}
251253
</div>
252254
</div>
253255

254-
{% if hm_attendance_len == 0 %}
256+
{% if hm_attendance_len == 0 and active%}
255257
<div class="alert alert-success">
256258
<span class="glyphicon glyphicon-ok-sign white" style="padding-right:5px"> </span> You haven't missed any house meetings.
257259
</div>
258-
{% else %}
260+
{% elif hm_attendance_len > 0 %}
259261
<div class="panel panel-default">
260262
<div class="panel-heading">
261263
<h3 class="panel-title">Missed House Meetings</h3>
@@ -279,9 +281,9 @@ <h3 class="panel-title">Missed House Meetings</h3>
279281
</div>
280282
{% endif %}
281283

282-
{% if cm_attendance_len == 0 %}
284+
{% if cm_attendance_len == 0 and active%}
283285
<div class="alert alert-warning"><span class="glyphicon glyphicon-exclamation-sign white" style="padding-right:5px"></span> You have not attended any directorship meetings.</div>
284-
{% else %}
286+
{% elif cm_attendance_len > 0 %}
285287
<div class="panel panel-default">
286288
<div class="panel-heading">
287289
<h3 class="panel-title">Directorship Meeting Attendance</h3>

0 commit comments

Comments
 (0)