Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menuselectify #40

Merged
merged 4 commits into from
Mar 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion routes/admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ router.use(function(req, res, next) {
if (err) {
return res.terminate(err);
}

if (typeof(req.originalUrl.split('/'))[1] !== 'undefined') {
params.reqPortal = (req.originalUrl.split('/'))[1];
}
if (typeof(req.originalUrl.split('/'))[2] !== 'undefined') {
params.reqPortal = (req.originalUrl.split('/'))[2];
}
Expand Down
3 changes: 3 additions & 0 deletions routes/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ router.use(function(req, res, next) {
if (err) {
return res.terminate(err);
}
if (typeof(req.originalUrl.split('/'))[1] !== 'undefined') {
params.reqPortal = (req.originalUrl.split('/'))[1];
}

if (typeof(req.originalUrl.split('/'))[2] !== 'undefined') {
params.reqPortal = (req.originalUrl.split('/'))[2];
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/control/holidays.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ extends ../../../master-dashboard

block content
link(rel='stylesheet', href='/stylesheets/date-picker/mdDateTimePicker.css')
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify');
document.getElementById('control').classList.add('menuselectify');
div.mdl-cell.mdl-cell--12-col
h2 Manage Holidays
div.mdl-cell.mdl-cell--12-col
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/control/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ block content
.mdl-textfield--file .mdl-button--file {
right: 0;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('control').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h3(style='text-align:center') Settings
p(style='text-align:center') Configure Instruction Division Portal
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/control/portalToggle.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('portal-toggle').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
h2 Portal Management

Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/24x7/fview.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
style.
.custom_header {
font-size: 0.9375rem;
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/24x7/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
.mdl-grid
.mdl-cell.mdl-cell--4-col.mdl-cell--middle
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/24x7/view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
.mdl-grid
.mdl-cell.mdl-cell--4-col.mdl-cell--middle
Expand Down
5 changes: 1 addition & 4 deletions views/admin/portals/feedbacks-admin/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ block content
}
.custom{
opacity: .68;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
}
div.mdl-cell.mdl-cell--12-col
.mdl-layout.mdl-js-layout.mdl-layout--fixed-header
.android-customized-section
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/midsem/fview.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
style.
.custom_header {
font-size: 0.9375rem;
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/midsem/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
.mdl-grid
.mdl-cell.mdl-cell--4-col.mdl-cell--middle
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-admin/midsem/view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-admin').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
.mdl-grid
.mdl-cell.mdl-cell--4-col.mdl-cell--middle
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-prof/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-prof').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h3(style='text-align:center') Semester Feedback
p(style='text-align:center') Click on the feedback to view the entire summary.
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-prof/midsem/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-prof').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h3(style='text-align:center') Mid-Sem Feedback
p(style='text-align:center') Click on the feedback to view the entire summary.
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-prof/midsem/view.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-prof').classList.add('menuselectify')
style.
.custom_header {
font-size: 0.9375rem;
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/feedbacks-prof/view.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-prof').classList.add('menuselectify')
style.
.custom_header {
font-size: 0.9375rem;
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/project-allotment-prof-create/create.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-prof-create').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h3(style='text-align:center') Project Allotment
p(style='text-align:center') Creating a new Project
Expand Down
5 changes: 1 addition & 4 deletions views/admin/portals/project-allotment-prof-create/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ block content
style.
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-prof-create').classList.add('menuselectify')
}
div.mdl-cell.mdl-cell--12-col
h3(style='text-align:center') Project Allotment
p(style='text-align:center') Click on a project to view / delete it.
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/project-allotment-prof-create/view.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-prof-create').classList.add('menuselectify')
style.
.custom_header {
font-size: 0.9375rem;
Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/room-booking-approval/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('room-booking-approval').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
h2 Room Booking Approval
h5 Click to Approve/Reject
Expand Down
4 changes: 0 additions & 4 deletions views/admin/portals/room-booking-approval/view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ block content
.green:hover {
color: black !important;
}

script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('room-booking-approval').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h2 Room Booking Approval

Expand Down
3 changes: 0 additions & 3 deletions views/admin/portals/room-booking-esd/index.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('room-booking-esd').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
h2 Room Bookings

Expand Down
3 changes: 0 additions & 3 deletions views/dashboard/bug.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('bugreport').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
div.mdl-grid
div.mdl-cell.mdl-cell--12-col.center
Expand Down
6 changes: 2 additions & 4 deletions views/dashboard/bug_policy.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('bugreport').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
div.mdl-grid
div.mdl-cell.mdl-cell--12-col
Expand Down Expand Up @@ -44,4 +41,5 @@ block content
ul
li We encrypt many of our services using SSL.
li We review our information collection, storage and processing practices, including physical security measures, to guard against unauthorized access to systems.
li We restrict access to personal information to Instruction Division employees and student representatives who need to know that information in order to process it for us, and who are subject to strict contractual confidentiality obligations and may be disciplined or terminated if they fail to meet these obligations.
li We restrict access to personal information to Instruction Division employees and student representatives who need to know that information in order to process it for us, and who are subject to strict contractual confidentiality obligations and may be disciplined or terminated if they fail to meet these obligations.

3 changes: 0 additions & 3 deletions views/dashboard/portals/feedbacks-24x7/index.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-24x7').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h2 24x7 Feedbacks

Expand Down
2 changes: 0 additions & 2 deletions views/dashboard/portals/feedbacks-24x7/step1.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify');
document.getElementById('feedbacks-24x7').classList.add('menuselectify');
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
Expand Down
4 changes: 1 addition & 3 deletions views/dashboard/portals/feedbacks-24x7/step2.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-24x7').classList.add('menuselectify')
window.onload = () => {
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
$("#form1").validate({
Expand Down
4 changes: 1 addition & 3 deletions views/dashboard/portals/feedbacks-24x7/step3.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-24x7').classList.add('menuselectify')
window.onload = () => {
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
$("#form1").validate({
Expand Down
3 changes: 0 additions & 3 deletions views/dashboard/portals/feedbacks-MidSem/index.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-midsem').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h2 Mid-Semester Feedbacks

Expand Down
2 changes: 0 additions & 2 deletions views/dashboard/portals/feedbacks-MidSem/step1.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify');
document.getElementById('feedbacks-midsem').classList.add('menuselectify');
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
Expand Down
4 changes: 1 addition & 3 deletions views/dashboard/portals/feedbacks-MidSem/step2.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-midsem').classList.add('menuselectify')
window.onload = () => {
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
$("#form1").validate({
Expand Down
4 changes: 1 addition & 3 deletions views/dashboard/portals/feedbacks-MidSem/step3.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('feedbacks-midsem').classList.add('menuselectify')
window.onload = () => {
window.onload = () => {
$.validator.addMethod("valueNotEquals", function(value, element, arg){
return arg !== value;}, "Value must not equal arg.");
$("#form1").validate({
Expand Down
2 changes: 0 additions & 2 deletions views/dashboard/portals/inductions/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ block content
right: 0;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('#{reqPortal}').classList.add('menuselectify')
window.onload = () => {
$("#form1").validate({
focusInvalid: true,
Expand Down
3 changes: 0 additions & 3 deletions views/dashboard/portals/project-allotment-student/index.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-student').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h2 Project Allotment

Expand Down
3 changes: 0 additions & 3 deletions views/dashboard/portals/project-allotment-student/manage.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-student').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
h2 Project Allotment
hr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-student').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col
h2 Project Allotment
div.mdl-cell.mdl-cell--12-col.center
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ block content
td {
cursor: pointer;
}
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-student').classList.add('menuselectify')
div.mdl-cell.mdl-cell--12-col.center
h2 Project Allotment
h4 #{department}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends ../../../master-dashboard

block content
script(type='text/javascript').
document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify')
document.getElementById('project-allotment-student').classList.add('menuselectify')
style.
.field {
font-weight: bold;
Expand Down
Loading