Skip to content
Extraits de code Groupes Projets
Valider c4fda4b5 rédigé par Pablo Cuadrado's avatar Pablo Cuadrado Validation de Steffen van Bergerem
Parcourir les fichiers

main_stream ported, no further styling applied

parent a3cc24ec
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
ul { ul {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
list-style: none;
} }
a { a {
......
...@@ -7,6 +7,9 @@ class StreamsController < ApplicationController ...@@ -7,6 +7,9 @@ class StreamsController < ApplicationController
before_action :save_selected_aspects, :only => :aspects before_action :save_selected_aspects, :only => :aspects
before_action :redirect_unless_admin, :only => :public before_action :redirect_unless_admin, :only => :public
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
use_bootstrap_for :aspects, :public, :activity, :multi, :commented, :liked, :mentioned, :followed_tags
respond_to :html, respond_to :html,
:mobile, :mobile,
:json :json
...@@ -50,6 +53,7 @@ class StreamsController < ApplicationController ...@@ -50,6 +53,7 @@ class StreamsController < ApplicationController
private private
def stream_responder(stream_klass=nil) def stream_responder(stream_klass=nil)
if stream_klass.present? if stream_klass.present?
@stream ||= stream_klass.new(current_user, :max_time => max_time) @stream ||= stream_klass.new(current_user, :max_time => max_time)
end end
......
...@@ -24,38 +24,40 @@ ...@@ -24,38 +24,40 @@
%br %br
%br %br
.span-5#leftNavBar .bootstrap_header_padding
#home_user_badge .container
= owner_image_link .row-fluid
%h4 .span3#leftNavBar
= link_to current_user.first_name, local_or_remote_person_path(current_user.person) #home_user_badge
= owner_image_link
%ul#stream_selection %h4
%li{:data => {:stream => 'stream'}} = link_to current_user.first_name, local_or_remote_person_path(current_user.person)
= link_to t("streams.multi.title"), stream_path, :rel => 'backbone', :class => 'hoverable'
%li{:data => {:stream => 'activity'}} %ul#stream_selection
= link_to t("streams.activity.title"), activity_stream_path, :rel => 'backbone', :class => 'hoverable' %li.hoverable{:data => {:stream => 'stream'}}
%li{:data => {:stream => 'mentions'}} = link_to t("streams.multi.title"), stream_path, :rel => 'backbone'
= link_to t('streams.mentions.title'), mentioned_stream_path, :rel => 'backbone', :class => 'hoverable' %li.hoverable{:data => {:stream => 'activity'}}
%li.all_aspects = link_to t("streams.activity.title"), activity_stream_path, :rel => 'backbone'
= render 'aspects/aspect_listings', :stream => @stream %li.hoverable{:data => {:stream => 'mentions'}}
%li = link_to t('streams.mentions.title'), mentioned_stream_path, :rel => 'backbone'
= render 'tags/followed_tags_listings' %li.all_aspects
= render 'aspects/aspect_listings', :stream => @stream
%li
= render 'tags/followed_tags_listings'
.span-13.append-1
#aspect_stream_container.stream_container .span6
= render 'aspects/aspect_stream', :stream => @stream #aspect_stream_container.stream_container
= render 'aspects/aspect_stream', :stream => @stream
.span-5.rightBar.last
#selected_aspect_contacts.section .span3.rightBar
.title.no_icon #selected_aspect_contacts.section
%h5.stream_title .title.no_icon
= @stream.title %h5.stream_title
.content = @stream.title
.content
= render 'shared/right_sections'
= render 'shared/right_sections'
%a{:id=>"back-to-top", :title=>"#{t('layouts.application.back_to_top')}", :href=>"#"}
&#8679; %a{:id=>"back-to-top", :title=>"#{t('layouts.application.back_to_top')}", :href=>"#"}
&#8679;
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter