diff --git a/modules/vulnerabilities/unix/webapp/commando/templates/subtemplates/nav.html.erb b/modules/vulnerabilities/unix/webapp/commando/templates/subtemplates/nav.html.erb index 9f30b6b8a..7f1fcad81 100644 --- a/modules/vulnerabilities/unix/webapp/commando/templates/subtemplates/nav.html.erb +++ b/modules/vulnerabilities/unix/webapp/commando/templates/subtemplates/nav.html.erb @@ -1,82 +1,58 @@ <%# +TV 20/08/21 - Quick refactor to cut down on code duplication. Can (and should) be refactored further. + This is part of a bootstrap template which can be accessed at: https://getbootstrap.com/docs/4.0/components/navbar/ This file is fairly repetitave, this reason for this is, te ruby code tests what the $page title is set to, this in turn then uses the navbar with the corresponding page title. This is so when a user is on a page the page is highlighted in the navbar. This uses the nav-item active and the span current which can be seen below. %> -<% if $page_title.eql? "Home"%> - -<% elsif $page_title.eql? "Information" %> -<% elsif $page_title.eql? "User-Portal"%> - -<% else %> - -<% end %> + + \ No newline at end of file