File tree Expand file tree Collapse file tree 6 files changed +24
-7
lines changed
frontend/stylesheets/pages Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def display_attendance_cm(user_dict=None):
137
137
log .info ('Display Committee Meeting Attendance Page' )
138
138
139
139
return render_template ('attendance_cm.html' ,
140
- username = request . headers . get ( "x-webauth-user" ) ,
140
+ username = user_dict [ 'username' ] ,
141
141
date = datetime .now ().strftime ("%Y-%m-%d" ))
142
142
143
143
@@ -149,7 +149,7 @@ def display_attendance_ts(user_dict=None):
149
149
log .info ('Display Technical Seminar Attendance Page' )
150
150
151
151
return render_template ('attendance_ts.html' ,
152
- username = request . headers . get ( "x-webauth-user" ) ,
152
+ username = user_dict [ 'username' ] ,
153
153
date = datetime .now ().strftime ("%Y-%m-%d" ))
154
154
155
155
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ <h3 class="panel-title">Directorship Meeting Attendance</h3>
352
352
{% for meeting in cm_attendance %}
353
353
< tr >
354
354
< td > {{meeting['committee']}}</ td >
355
- < td > {{meeting['timestamp']}}</ td >
355
+ < td > {{meeting['timestamp'].strftime('%Y-%m-%d') }}</ td >
356
356
</ tr >
357
357
{% endfor %}
358
358
</ tbody >
Original file line number Diff line number Diff line change @@ -47,8 +47,13 @@ <h3>{{m['technical_seminars']|length}}</h3>
47
47
</ div >
48
48
</ div >
49
49
</ div >
50
- < h4 > < span class ="icon glyphicon glyphicon-{% if m['freshman_project'] == 'Passed' %}ok passed{%else%}remove{% endif %} " aria-hidden ="true "> </ span > Freshman Project</ h4 >
51
-
50
+
51
+ < h4 >
52
+ {% if m['freshman_project'] != 'Pending' %}
53
+ < span class ="icon glyphicon glyphicon-{% if m['freshman_project'] == 'Passed' %}ok passed{%else%}remove{% endif %} " aria-hidden ="true "> </ span > Freshman Project
54
+ {% endif %}
55
+ </ h4 >
56
+
52
57
< div class ="actions " data-uid ="{{m['uid']}} " data-cn ="{{m['name']}} ">
53
58
< button class ="pass " type ="button "> Pass</ button >
54
59
< button class ="fail " type ="button "> Fail</ button >
Original file line number Diff line number Diff line change @@ -124,7 +124,11 @@ <h6 class="eval-uid">{{ m['uid'] }}</h6>
124
124
</ div >
125
125
</ div >
126
126
{% if m['house_meetings_missed']|length != 0 or m['technical_seminars']|length != 0 or m['comments'] != "" %}
127
- < button class ="btn-expand-panel " role ="button " data-toggle ="collapse " href ="#evalsCollapse-{{m['uid']}} " aria-expanded ="false " aria-controls ="evalsCollapse-{{m['uid']}} "> < span class ="glyphicon glyphicon glyphicon-menu-down "> </ span > </ button >
127
+ < div class ="evals-dropdown ">
128
+ < span class ="btn-expand-panel " role ="button " data-toggle ="collapse " href ="#evalsCollapse-{{m['uid']}} " aria-expanded ="false " aria-controls ="evalsCollapse-{{m['uid']}} ">
129
+ < span class ="glyphicon glyphicon glyphicon-menu-down "> </ span >
130
+ </ span >
131
+ </ div >
128
132
{% endif %}
129
133
< div class ="collapse " id ="evalsCollapse-{{m['uid']}} ">
130
134
{% if m['house_meetings_missed']|length > 0 %}
Original file line number Diff line number Diff line change @@ -93,7 +93,11 @@ <h6 class="eval-uid">{{m['uid']}}</h6>
93
93
</ div >
94
94
95
95
{% if m['house_meetings_missed']|length > 0 or m['major_projects_len'] > 0 %}
96
- < button class ="btn-expand-panel " role ="button " data-toggle ="collapse " href ="#evalsCollapse{{m['uid']}} " aria-expanded ="false " aria-controls ="evalsCollapse{{m['uid']}} "> < span class ="glyphicon glyphicon glyphicon-menu-down "> </ span > </ button >
96
+ < div class ="evals-dropdown ">
97
+ < span class ="btn-expand-panel " role ="button " data-toggle ="collapse " href ="#evalsCollapse{{m['uid']}} " aria-expanded ="false " aria-controls ="evalsCollapse{{m['uid']}} ">
98
+ < span class ="glyphicon glyphicon glyphicon-menu-down "> </ span >
99
+ </ span >
100
+ </ div >
97
101
{% endif %}
98
102
< div class ="collapse " id ="evalsCollapse{{m['uid']}} ">
99
103
{% if m['house_meetings_missed']|length > 0 %}
Original file line number Diff line number Diff line change 72
72
box-shadow : none ;
73
73
padding : 3px 7px ;
74
74
}
75
+
76
+ .evals-dropdown {
77
+ text-align : center ;
78
+ }
You can’t perform that action at this time.
0 commit comments