Skip to content
Extraits de code Groupes Projets
_aspect_stream.haml 1,06 ko
Newer Older
  • Learn to ignore specific revisions
  • danielgrippi's avatar
    danielgrippi a validé
    -#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
    
    -#   licensed under the Affero General Public License version 3 or later.  See
    -#   the COPYRIGHT file.
    
    
    %h3#aspect_stream_header.stream_title
      = stream.title
    
    - if current_user.beta?
      = link_to "Make something", "#composer", :rel => "facebox", :class => "button primary", :style => "display: block; margin: 20px 10px; margin-bottom: 30px; padding: 10px; text-align:center; font-weight: bold;"
    
      #composer{:style => "display:none;"}
        %iframe{:src => '/posts/new', :height => 500, :width => 700, :style => "border:none;"}
    
    - else
      = render 'shared/publisher', :selected_aspects => stream.aspects, :aspect_ids => stream.aspect_ids, :for_all_aspects => stream.for_all_aspects?, :aspect => stream.aspect
    
    = render 'aspects/no_posts_message'
    
    - unless current_user.beta?
      #gs-shim{:title => popover_with_close_html("3. #{t('.stay_updated')}"), 'data-content' => t('.stay_updated_explanation')}
    
    #main_stream.stream
    
    #paginate
    
      %span.loader.hidden
    
    
    - if current_user.contacts.size < 2
    
      = render 'aspects/no_contacts_message'