Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements
Browse files Browse the repository at this point in the history
Maximilien Bausson authored and nicolas-brousse committed Dec 13, 2023
1 parent 04e2676 commit c3e61b2
Showing 3 changed files with 14 additions and 21 deletions.
4 changes: 2 additions & 2 deletions app/views/bays/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= render 'layouts/breadcrumb', breadcrumb_variables: {
<%= render "layouts/breadcrumb", breadcrumb_variables: {
t("inventories") => modeles_url,
Bay.model_name.human.pluralize => bays_path,
t(".title") => ''
t(".title") => ""
}%>

<div class="container">
8 changes: 4 additions & 4 deletions app/views/rooms/_action_buttons.html.erb
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@
<!-- Choice of server background color -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<%= t(".background_color", bg: params[:bg] || 'modèle') %> <span class="caret"></span>
<%= t(".background_color", bg: params[:bg] || Modele.model_name.human.downcase) %> <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><%= link_to t(".background_choices.modele"), url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: 'modele', islet: params[:islet], id: params[:id]})), remote: true %></li>
<li><%= link_to t(".background_choices.manager"), url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: 'gestionnaire', islet: params[:islet], id: params[:id]})), remote: true %></li>
<li><%= link_to t(".background_choices.cluster"), url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: 'cluster', islet: params[:islet], id: params[:id]})), remote: true %></li>
<li><%= link_to Modele.model_name.human, url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: Modele.model_name.human.downcase, islet: params[:islet], id: params[:id]})), remote: true %></li>
<li><%= link_to Gestion.model_name.human, url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: Gestion.model_name.human.downcase, islet: params[:islet], id: params[:id]})), remote: true %></li>
<li><%= link_to Cluster.model_name.human, url_for( params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({:view => 'front', bg: Cluster.model_name.human.downcase, islet: params[:islet], id: params[:id]})), remote: true %></li>
</ul>
</div>
<% end %>
23 changes: 8 additions & 15 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ fr:
updated: La baie a bien été mise à jour.
destroy:
flashes:
destroyed: La bay bien été supprimé.
destroyed: La baie bien été supprimé.
rooms:
action_buttons:
caption:
@@ -78,6 +78,13 @@ fr:
cluster: Cluster
dragn_drop:
enable: Activer le drag'n drop
title: Salles
capacity_view:
title: Vue capacité réseau
networks:
fiber: Fibre
giga: Réseau Gb
10giga: 10Gb
servers:
room:
title_room: Salle %{room} - Ilot %{islet}
@@ -431,20 +438,6 @@ fr:
destroy: a supprimé un serveur
order-in-progress: 'Commande en cours'

rooms:
title: Salles
capacity_view:
title: Vue capacité réseau
networks:
fiber: Fibre
giga: Réseau Gb
10giga: 10Gb
action_buttons:
caption:
ports: Ports
unreferenced_client: Le port correspondant de la carte jumelle est câblé
no_client: Le port correspondant de la carte jumelle n'est pas câblé

views:
pagination:
previous: "&lt; Précédent"

0 comments on commit c3e61b2

Please sign in to comment.