-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
145 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 30 additions & 33 deletions
63
app/views/layouts/navigation/_inventories_dropdown.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<li class="nav-item dropdown" role="menuitem"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" | ||
aria-expanded="false"> | ||
<%= t("inventories") %> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li class="dropdown-header">Localisation</li> | ||
<li><a href="<%= sites_path %>"><%= Site.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= rooms_path %>"><%= Room.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= islets_path %>"><%= Islet.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= bays_path %>"><%= Bay.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= frames_path %>"><%= Frame.model_name.human %></a></li> | ||
<li><h6 class="dropdown-header"><%= t("pages.params_menu.location.title") %></h6></li> | ||
<li><a href="<%= sites_path %>" class="dropdown-item" role="menuitem"><%= Site.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= rooms_path %>" class="dropdown-item" role="menuitem"><%= Room.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= islets_path %>" class="dropdown-item" role="menuitem"><%= Islet.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= bays_path %>" class="dropdown-item" role="menuitem"><%= Bay.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= frames_path %>" class="dropdown-item" role="menuitem"><%= Frame.model_name.human %></a></li> | ||
|
||
<li role="separator" class="divider"></li> | ||
<li class="dropdown-header">Matériel</li> | ||
<li><a href="<%= servers_path %>">Matériels</a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><h6 class="dropdown-header"><%= t("pages.params_menu.equipment.title") %></h6></li> | ||
<li><a href="<%= servers_path %>" class="dropdown-item" role="menuitem">Matériels</a></li> | ||
|
||
<li role="separator" class="divider"></li> | ||
<li class="dropdown-header"><%= t("pages.params_menu.features.title")%></li> | ||
<li><a href="<%= modeles_path %>"><%= Modele.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= categories_path %>"><%= Category.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= architectures_path %>"><%= Architecture.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= manufacturers_path %>"><%= Manufacturer.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= stacks_path %>"><%= Stack.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= card_types_path %>"><%= CardType.model_name.human(count: 2) %></a></li> | ||
<li><a href="<%= port_types_path %>"><%= PortType.model_name.human(count: 2) %></a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><h6 class="dropdown-header"><%= t("pages.params_menu.features.title")%></h6></li> | ||
<li><a href="<%= modeles_path %>" class="dropdown-item" role="menuitem"><%= Modele.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= categories_path %>" class="dropdown-item" role="menuitem"><%= Category.model_name.human.pluralize %></a></li> | ||
<li> | ||
<a href="<%= architectures_path %>" class="dropdown-item" role="menuitem"><%= Architecture.model_name.human.pluralize %></a> | ||
</li> | ||
<li> | ||
<a href="<%= manufacturers_path %>" class="dropdown-item" role="menuitem"><%= Manufacturer.model_name.human.pluralize %></a> | ||
</li> | ||
<li><a href="<%= stacks_path %>" class="dropdown-item" role="menuitem"><%= Stack.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= card_types_path %>" class="dropdown-item" role="menuitem"><%= CardType.model_name.human(count: 2) %></a></li> | ||
<li><a href="<%= port_types_path %>" class="dropdown-item" role="menuitem"><%= PortType.model_name.human(count: 2) %></a></li> | ||
|
||
<li role="separator" class="divider"></li> | ||
<li class="dropdown-header"><%= t("pages.params_menu.exploitation.title")%></li> | ||
<li><a href="<%= domaines_path %>"><%= Domaine.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= gestions_path %>"><%= Gestion.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= clusters_path %>"><%= Cluster.model_name.human.pluralize %></a></li> | ||
|
||
<!-- | ||
<li><a href="<%= colors_path %>">Couleurs</a></li> | ||
<li><a href="<%= maintainers_path %>">Mainteneurs</a></li> | ||
<li><a href="<%= contract_types_path %>">Contrats de maintenance</a></li> | ||
<li><a href="<%= disk_types_path %>">Types de disque</a></li> | ||
<li><a href="<%= memory_types_path %>">Types de RAM</a></li> | ||
--> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><h6 class="dropdown-header"><%= t("pages.params_menu.exploitation.title")%></h6></li> | ||
<li><a href="<%= domaines_path %>" class="dropdown-item" role="menuitem"><%= Domaine.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= gestions_path %>" class="dropdown-item" role="menuitem"><%= Gestion.model_name.human.pluralize %></a></li> | ||
<li><a href="<%= clusters_path %>" class="dropdown-item" role="menuitem"><%= Cluster.model_name.human.pluralize %></a></li> | ||
</ul> | ||
</li> |
51 changes: 26 additions & 25 deletions
51
app/views/layouts/navigation/_nav_links_administration.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<% if user_signed_in? %> | ||
<li class="nav-item"><%= link_to t('changelog_entries.title'), changelog_entries_path, class: "nav-link" %></li> | ||
<% if current_user.try(:admin?) %> | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Administration | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li><%= link_to User.model_name.human.pluralize, users_path, class: "dropdown-item" %></li> | ||
<li><%= link_to 'Activité', activities_path, class: "dropdown-item" %></li> | ||
<!-- <li><%= link_to 'Import de données', data_import_path %></li> --> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><%= link_to 'Informations', about_path, class: "dropdown-item" %></li> | ||
</ul> | ||
</li> | ||
<% end %> | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<%= t('users.my_account.title') %> | ||
<li class="nav-item" role="menuitem"> | ||
<%= link_to t("changelog_entries.title"), changelog_entries_path, class: "nav-link" %> | ||
</li> | ||
<% if current_user.try(:admin?) %> | ||
<li class="nav-item dropdown" role="menuitem"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" | ||
aria-expanded="false"> | ||
<%= t(".administration") %> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li><%= link_to t('users.my_account.edit'), edit_user_registration_path, class: "dropdown-item" %></li> | ||
<li><%= link_to t('users.logout'), destroy_user_session_path, :method => 'delete', class: "dropdown-item" %></li> | ||
<li role="menuitem"><%= link_to User.model_name.human.pluralize, users_path, class: "dropdown-item" %></li> | ||
<li role="menuitem"><%= link_to t(".activity"), activities_path, class: "dropdown-item" %></li> | ||
<li role="menuitem"><hr class="dropdown-divider"></li> | ||
<li role="menuitem"><%= link_to t(".informations"), about_path, class: "dropdown-item" %></li> | ||
</ul> | ||
</li> | ||
<li></li> | ||
<% else %> | ||
<li><%= link_to 'Connexion', new_user_session_path, class: "nav-item" %></li> | ||
<li><%= link_to 'Inscription', new_user_registration_path, class: "nav-item" %></li> | ||
<% end %> | ||
<li class="nav-item dropdown" role="menuitem"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" | ||
aria-expanded="false"> | ||
<%= t("users.my_account.title") %> | ||
</a> | ||
<ul class="dropdown-menu dropdown-menu-end"> | ||
<li role="menuitem"> | ||
<%= link_to t("users.my_account.edit"), edit_user_registration_path, class: "dropdown-item" %> | ||
</li> | ||
<li role="menuitem"> | ||
<%= link_to t("users.logout"), destroy_user_session_path, method: :delete, class: "dropdown-item link-danger" %> | ||
</li> | ||
</ul> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<li class="nav-item dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Projets | ||
<li class="nav-item dropdown" role="menuitem"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" | ||
aria-expanded="false"> | ||
<%= t(".projects") %> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li><%= link_to "Déplacements prévus", moves_path, class: "dropdown-item" %></li> | ||
<li role="menuitem"><%= link_to t(".moves"), moves_path, class: "dropdown-item" %></li> | ||
</ul> | ||
</li> |
41 changes: 10 additions & 31 deletions
41
app/views/layouts/navigation/_visualization_dropdown.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.