@@ -41,8 +41,10 @@ <h4>{{p['proj_name']}}</h4>
4141 < img class ="table-img " src ="https://profiles.csh.rit.edu/image/{{p['username']}} ">
4242 {{p['name']}} ({{p['username']}})
4343 </ div >
44- {% if is_eval_director %}
4544 < div class ="col-xs-4 col-sm-2 ">
45+
46+ {% if is_eval_director %}
47+
4648 < div class ="btn-group " data-module ="majorProjectStatus " data-id ="{{p['id']}} ">
4749 < a href ="# " class ="btn {% if p['status'] == 'Passed' %}btn-success{% elif p['status'] == 'Failed' %}btn-danger{% else %}btn-warning{% endif %} dropdown-toggle btn-mp " data-toggle ="dropdown " aria-expanded ="false ">
4850 {{p['status']}}
@@ -58,20 +60,24 @@ <h4>{{p['proj_name']}}</h4>
5860 < li >
5961 < a href ="# " data-option ="Failed "> < span class ="glyphicon glyphicon-remove-sign red "> </ span > Failed</ a >
6062 </ li >
63+ < li >
64+ < a href ="# " data-option ="Delete "> < span class ="glyphicon glyphicon-trash red "> </ span > Delete</ a >
65+ </ li >
6166 </ ul >
6267 </ div >
63- </ div >
6468 {% else %}
65- < div class ="col-xs-4 col-sm-2 ">
6669 {% if p['status'] == 'Passed' %}
6770 < h5 style ="padding:15px 20px;float:right "> < span class ="glyphicon glyphicon-ok green "> </ span > </ h5 >
6871 {% elif p['status'] == 'Failed' %}
6972 < h5 style ="padding:15px 20px;float:right "> < span class ="glyphicon glyphicon-remove red "> </ span > </ h5 >
7073 {% else %}
7174 < h5 style ="padding:15px 20px;float:right "> < span class ="glyphicon glyphicon-hourglass yellow "> </ span > </ h5 >
7275 {% endif %}
73- </ div >
76+ {% if p.is_owner and p['status'] == 'Pending' %}
77+ < button class ="btn btn-danger btn-mp "> < span class ="glyphicon glyphicon-trash "> </ span > Delete</ button >
78+ {% endif %}
7479 {% endif %}
80+ </ div >
7581 < button class ="btn-expand-panel " role ="button " data-toggle ="collapse " href ="#evalsCollapse-{{p['id']}} " aria-expanded ="false " aria-controls ="evalsCollapse-{{p['id']}} "> < span class ="glyphicon glyphicon glyphicon-menu-down "> </ span > </ button >
7682 < div class ="collapse " id ="evalsCollapse-{{p['id']}} ">
7783 {{p['description']}}
0 commit comments