% 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' %>
<%=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 raw(logo(admin, :size=>32, :title=>admin.name)), user_path(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? %>
<%=link_to t('event.now'), space_events_path(@space)%>
<%for event in @current_events do%>
-
<%=image_tag("icons/date.png",:class=>"icon")%> <%=link_to(event.name,space_event_path(@space,event),:class=>"unified_event")%>
-
<%= event.start_date.to_formatted_s(:short)%> - <%=event.end_date.to_formatted_s(:short)%> (<%= t('GMT') %> <%=Time.zone.formatted_offset%> )
<%end%>
<% 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 -%>
<%= raw(link_logo(post.author, :size => 32, :url => user_path(post.author), :title=>post.author.name)) %>
<% 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 raw(logo(user, :size=>32, :title => user.name)), user_path(user)%>
- <%=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') } %>