diff --git a/app/assets/javascripts/room.js b/app/assets/javascripts/room.js.erb similarity index 96% rename from app/assets/javascripts/room.js rename to app/assets/javascripts/room.js.erb index e229c7d4..f5be24f0 100644 --- a/app/assets/javascripts/room.js +++ b/app/assets/javascripts/room.js.erb @@ -32,10 +32,10 @@ $(document).on('turbolinks:load', function(){ if (success) { inviteURL.blur(); copy.addClass('btn-success'); - copy.html(" Copy") + copy.html(" <%= I18n.t("copied") %>") setTimeout(function(){ copy.removeClass('btn-success'); - copy.html(" Copy") + copy.html(" <%= I18n.t("copy") %>") }, 2000) } }); diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 93725e12..d675a905 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -105,7 +105,7 @@ a { } .invite-link-input { - width: 45%; + width: 100%; } .no-border-top { diff --git a/app/helpers/rooms_helper.rb b/app/helpers/rooms_helper.rb index e61f5cc9..a1991872 100644 --- a/app/helpers/rooms_helper.rb +++ b/app/helpers/rooms_helper.rb @@ -17,4 +17,9 @@ # with BigBlueButton; if not, see . module RoomsHelper + # Helper to generate the path to a Google Calendar event creation + # It will have its title set as the room name, and the location as the URL to the room + def google_calendar_path + "http://calendar.google.com/calendar/r/eventedit?text=#{@room.name}&location=#{request.base_url + request.fullpath}" + end end diff --git a/app/views/rooms/show.html.erb b/app/views/rooms/show.html.erb index 70f262bf..83e1e93f 100644 --- a/app/views/rooms/show.html.erb +++ b/app/views/rooms/show.html.erb @@ -15,8 +15,8 @@
-
-
+
+

<%= @room.name %>

<% if current_user.main_room == @room %> @@ -27,20 +27,36 @@

<%= @room.sessions %> <%= t("room.sessions") %> | <%= @recordings.length %> <%= t("room.recordings") %>

-
-