localize views

This commit is contained in:
Joshua Arts
2018-07-17 11:57:49 -04:00
parent 55b83226c9
commit ce4c8b3bff
27 changed files with 249 additions and 150 deletions

View File

@ -4,11 +4,11 @@
<%= f.text_field :join_name,
required: true,
class: "form-control join-form",
placeholder: "Enter your name!",
placeholder: t("enter_your_name"),
value: "#{current_user ? current_user.name : ''}",
readonly: !current_user.nil? %>
<span class="input-group-append">
<%= f.submit "Join", class: "btn btn-primary px-7 join-form" %>
<%= f.submit t("room.join"), class: "btn btn-primary px-7 join-form" %>
</span>
</div>
<% end %>

View File

@ -7,8 +7,8 @@
<i class="fas fa-home align-top home-indicator"></i>
<% end %>
</h1>
<h4 class="text-left mb-6"><%= @room.sessions %> Sessions | <%= @recordings.length %> Recordings</h4>
<label class="form-label">Invite Participants</label>
<h4 class="text-left mb-6"><%= @room.sessions %> <%= t("room.sessions") %> | <%= @recordings.length %> <%= t("room.recordings") %></h4>
<label class="form-label"><%= t("room.invite_participants") %></label>
<form class="form-inline">
<div class="input-icon invite-link-input">
<span class="input-icon-addon">
@ -18,19 +18,15 @@
</div>
<div id="copy" class="btn btn-primary mx-2">
<i class="fas fa-copy"></i>
Copy
<%= t("copy") %>
</div>
<!-- <div id="email" class="btn btn-primary">
<i class="fas fa-envelope"></i>
Email
</div> -->
</form>
</div>
<div class="col-lg-3 col-sm-12 force-bottom mt-5">
<% if @is_running %>
<%= button_to "Join", room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<%= button_to t("room.join"), room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<% else %>
<%= button_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<%= button_to t("room.start"), start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<% end %>
</div>
</div>

View File

@ -1,8 +1,8 @@
<%= render 'shared/room_event' do %>
<div class="row">
<div class="col-9">
<h3>Oops! The meeting hasn't started yet.</h3>
<h4 class="text-muted">You will automatically join when the meeting starts.</h4>
<h3><%= t("room.wait.message") %></h3>
<h4 class="text-muted"><%= t("room.wait.auto") %></h4>
</div>
<div class="col-3">
<div class="loader align-bottom mt-3"></div>