<% metaTitle = @room.metadata.all.select{ |m| m.name == configatron.metadata.title }.first %> <% metaDesc = @room.metadata.all.select{ |m| m.name == configatron.metadata.description }.first %> <% menu(:home) %> <%= content_for :javascript do %> $(".news_navigation_link").livequery("click", function(){ var route = $(this).attr("href"); $(this).attr("href","#") $.get(route, {authenticity_token: "<%=form_authenticity_token()%>"}, function(data){ $("#last_news").replaceWith(data); } ); }); title = "<%=escape_javascript(t('search.dots'))%>"; $("#query").click(function(){ if(this.value == title){ this.value= ""; } }); $("#query").blur(function(){ if(this.value == ""){ this.value= title; } }); $(".fancybox_link").fancybox({ 'hideOnContentClick' : false }); $('#space_views img.tooltip_num_views').qtip({ content: '<%= escape_javascript(t("tooltip.num_views")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('#sidebar img.tooltip_admin').qtip({ content: '<%= escape_javascript(t("tooltip.admin")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('#sidebar img.tooltip_upcoming').qtip({ content: '<%= escape_javascript(t("tooltip.upcoming")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('#sidebar img.tooltip_leave_space').qtip({ content: '<%= escape_javascript(t("tooltip.leave_space")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('#latest_news img.tooltip_latest_news').qtip({ content: '<%= escape_javascript(t("tooltip.latest_news")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.webconference-space-sidebar img.tooltip_bigbluebutton_space').qtip({ content: '<%= escape_javascript(t("tooltip.bigbluebutton_space")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <% end %> <% if logged_in? %> <% webconf_join_link = join_space_room_path(space, @room) %> <% else %> <% webconf_join_link = invite_space_room_path(space, @room) %> <% end %> <%= content_for :search do %> <%= render :partial => 'search/form' %> <%end%> <%= content_for :sidebar do %> <%= render :partial => 'sidebar' %> <%= render :partial => 'sidebar_leave_space' %>

<%= t('webconference.one') %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_bigbluebutton_space icon",:style=>"cursor:pointer").html_safe %>
<%= link_to t('more'), space_webconference_path(space) %>

<% if logged_in? %> <%= link_to "#", :class => 'basic_button small_button orange_pale_button join_button', :"data-dropdown" => "#dropdown-join-webconf" do %> <%= t('button.join') %> <% end %> <% else %> <%= link_to join_webconf_path(@room), :class => 'basic_button small_button orange_pale_button join_button' do %> <%= t('home.webconf.enter') %> <% end %> <% end %>
<% if @room.is_running? %> <%= t('space.people_in_conference', :count => @room.participant_count) %> <% else %> <%= t('webconference.nobody.one_line') %> <% end %>

<%=link_to(image_tag("icons/feed.png",:class=>"icon", :alt => t('RSS'), :title => t('RSS') ),space_events_path(@space,:format => :atom))%><%=image_tag("icons/date.png",:class=>"icon")%> <%=link_to t('event.upcoming.other'), space_events_path(@space)%> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_upcoming icon",:style=>"cursor:pointer")%>

<%= link_to t('read_more'), space_events_path(@space), :class => "read_more_link" if space.authorize?([:read, :content], :to => current_user) %>

<%=t('user.administrators')%> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_admin icon",:style=>"cursor:pointer")%>

<% admins = space.actors(:role => 'Admin') %> <% admins.each do |admin| %>

  • <%=link_to sanitize(admin.full_name),user_path(admin),:class=>"unified_user"%>
  • <%=sanitize(admin.organization)%>
<% end %>

<%=@space.unique_pageviews%><%=t('statistics.space_views')%> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_num_views icon",:style=>"cursor:pointer")%>
<% end %> <% if @room.is_running? %>
<%= t('webconference.currently_running', :count => @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) %>.
<% end %> <% if !@current_events.empty? %>
<% end %>

<%= t('space.description') %>

<%= @space.description %>
<% if @news_to_show %>

<%=image_tag("icons/newspaper.png")%> <%= t('latest_news') %> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_latest_news icon",:style=>"cursor:pointer")%>

<%= render :partial => 'last_news' %>
<% end %>

<%=link_to(image_tag("icons/feed.png",:class=>"icon",:alt=>t('RSS'),:title=>t('RSS')),space_posts_path(@space,:format=> :atom))%><%=image_tag("icons/comment.png")%><%=link_to t('post.latest'),space_posts_path(@space)%>

<%if @lastest_posts.empty?%>
<%= t('post.none_recent') %>
<%else%> <%last_post = @lastest_posts.last%> <% for post in @lastest_posts -%>
  • <%=link_to(post.author.name,user_path(post.author),:class=>"unified_user")%>: <%=link_to(first_words(post.title, 40), space_post_path(@space,post),:class=>"unified_posts")%> <%if has_attachments(post)%> <%=image_tag("icons/attach.png",:title=>attachment_name(post),:class=>"icon")%> <%end%> <%= t('updated_time_ago', :time => time_ago_in_words(post.updated_at)) %>
  • <%=first_words(strip_tags(post.text),90)%>
<% end -%>
<%= link_to t('read_more'), space_posts_path(@space), :class => "read_more_link" if space.authorize?([:read, :content], :to => current_user)%>
<%end%>

<%=image_tag("icons/user.png")%> <%=link_to t('user.recent_join'), space_users_path(@space)%>

<%last_user = @lastest_users.last%> <% for user in @lastest_users -%>
  • <%=link_to sanitize(user.full_name),user_path(user),:class=>"unified_user"%>
  • <%=sanitize(user.organization)%>
<% end -%>
<%= link_to t('read_more'), space_users_path(@space), :class => "read_more_link" if space.authorize?([:read, :performance], :to => current_user)%>
<%= render :partial => 'recordings/recording_start_links', :locals => { :resource => @room, :route => space_path(@space, :format => 'json') } %>