Skip to content

Commit

Permalink
Adapting public spaces webconferences to show links to invite instead…
Browse files Browse the repository at this point in the history
… of join when there is no user logged.

And join_mobile is only shown for logged users.
  • Loading branch information
daronco committed May 30, 2011
1 parent f980698 commit dee6bc1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GIT

GIT
remote: git://github.com/mconf/bigbluebutton_rails.git
revision: 8d64e8a013d2d986b320497b0210a75a76467327
revision: a4546db1976b8a135f05ba8361c94030b0fad575
specs:
bigbluebutton_rails (0.0.4)
bigbluebutton-api-ruby (~> 0.0.10)
Expand Down
18 changes: 13 additions & 5 deletions app/views/spaces/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@

<% end %>
<% if logged_in? %>
<% webconf_join_link = space_join_room_path(space, @bbb_room) %>
<% else %>
<% webconf_join_link = space_invite_room_path(space, @bbb_room) %>
<% end %>
<%= content_for :search do %>
<%= render :partial => 'search/form' %>
<%end%>
Expand All @@ -99,10 +105,12 @@
<div class="float_right more_info"><%= link_to t('more'), space_webconference_path(space) %></div>
</h3>
<div class="float_right">
<%= link_to ("<span>" + t('button.join') + "</span>").html_safe, space_join_room_path(space, @bbb_room), :class => 'basic_button small_button orange_pale_button' %>
<%= link_to ("<span>" + t('button.join') + "</span>").html_safe, webconf_join_link, :class => 'basic_button small_button orange_button' %>
</div>
<div class="float_right">
<%= mobile_icon_link(space_join_mobile_room_path(space, @bbb_room)) %>
<% if logged_in? %>
<%= mobile_icon_link(space_join_mobile_room_path(space, @bbb_room)) %>
<% end %>
</div>
<div class="content">
<% if @bbb_room.is_running? %>
Expand Down Expand Up @@ -165,9 +173,9 @@
<% if @bbb_room.is_running? %>
<div id="space_webconference_alert">
<%= t('webconference.currently_running', :count => @bbb_room.participant_count) %>.
<a href="<%= space_join_room_path(space, @bbb_room) %>"><%= t('webconference.space.join_now') %></a> or
<a href="<%= space_webconference_path(space) %>"><%= t('webconference.space.see_more') %></a>.
<%= t('webconference.currently_running', :count => @bbb_room.participant_count) %>,
<%= link_to t('webconference.space.join_now'), webconf_join_link %> <%= t('or') %>
<%= link_to t('webconference.space.see_more'), space_webconference_path(space) %>.
</div>
<% end %>
Expand Down
15 changes: 11 additions & 4 deletions app/views/webconferences/_sidebar.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
<%= link_to ("<span>" + t('button.join_webconference') + "</span>").html_safe, space_join_room_path(space, @bbb_room),
<% if logged_in? %>
<% join_link = space_join_room_path(space, @bbb_room) %>
<% else %>
<% join_link = space_invite_room_path(space, @bbb_room) %>
<% end %>
<%= link_to ("<span>" + t('button.join_webconference') + "</span>").html_safe, join_link,
:class => 'big_button orange_button bigbluebutton_button' %>

<div class="clearer"></div>
<br/>

<% ico = "<div class=\"webconference_join_mobile_ico\"></div>" %>
<%= link_to ("<span>" + ico + t('button.join_webconference_mobile') + "</span>").html_safe, space_join_mobile_room_path(space, @bbb_room),
:class => 'big_button orange_button bigbluebutton_button', :id => "join_mobile_button" %>
<% if logged_in? %>
<% ico = "<div class=\"webconference_join_mobile_ico\"></div>" %>
<%= link_to ("<span>" + ico + t('button.join_webconference_mobile') + "</span>").html_safe, space_join_mobile_room_path(space, @bbb_room),
:class => 'big_button orange_button bigbluebutton_button', :id => "join_mobile_button" %>
<% end %>

10 changes: 6 additions & 4 deletions app/views/webconferences/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@
<span><%= t('webconference.space.share') %></span>
</div>
<span class="only_url"><%= t('url_plain') %>: </span><span class="blue"><%= space_invite_room_url(space, @bbb_room) %></span>
<div class="invite_button">
<%= link_to t('button.invite'), inviteroom_invite_path(:roomName => space.name,
:roomUrl => space_invite_room_url(space, @bbb_room)), :id => 'invite_bbb_link', :class => 'basic_button' %>
</div>
<% if logged_in? %>
<div class="invite_button">
<%= link_to t('button.invite'), inviteroom_invite_path(:roomName => space.name,
:roomUrl => space_invite_room_url(space, @bbb_room)), :id => 'invite_bbb_link', :class => 'basic_button' %>
</div>
<% end %>
</div>
</div>

Expand Down
7 changes: 3 additions & 4 deletions config/locales/pt-br.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2138,8 +2138,7 @@ pt-br:
name: ! 'Nome:'
name_enter: Insira seu nome
password: ! 'Senha:'
password_filled: Está sala é pública. A senha foi preenchida com a senha do
atendente
password_filled: Esta sala é pública. A senha foi preenchida automaticamente.
password_role: Digite a senha de moderador ou participante.
status: ! 'Status da reunião: '
join:
Expand All @@ -2148,7 +2147,7 @@ pt-br:
que ela começar.
title: ! 'Sala: %{name}'
not_running: inativa.
refresh: forçar recarregamento
refresh: atualizar status
running: rodando!
save: Salvar
save_ch: Salvar alterações
Expand Down Expand Up @@ -2733,7 +2732,7 @@ pt-br:
<b>%{status}</b> <br/> Clique no botão no topo da barra lateral para ingressar
na webconferência. <br/> Você também pode compartilhar o link abaixo (ou clicar
em "convidar") para convidar outras pessoas.'
join_now: participar agora
join_now: participe agora
see_more: saiba mais
share: Compartilhar
title_people_conf: Pessoas na sala
Expand Down

0 comments on commit dee6bc1

Please sign in to comment.