diaspora/app/views/shared/_publisher.mobile.haml
Dan Hansen & Maxwell Salzberg 2a4abc5483 show service icons on mobile site
2011-11-05 13:23:29 -05:00

36 lines
1.3 KiB
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :custom_css do
:css
body {
background-color: #eee;
}
- content_for :header_action do
= submit_tag t('.share'), :class => 'action', :id => "submit_new_message"
= form_for StatusMessage.new, {:data => {:ajax => false}} do |status|
#message_container
= status.hidden_field :provider_display_name, :value => 'mobile'
= status.text_area :text, :placeholder => t('.whats_on_your_mind'), :style => "width:300px", :rows => 4, :autofocus => "autofocus"
%fieldset
%span#publisher_service_icons
- if current_user.services
- for service in current_user.services
= image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider.titleize, :class => "service_icon dim", :id =>"#{service.provider}", :maxchar => "#{service.class::MAX_CHARACTERS}"
%select{:id => "aspect_ids_", :name => "aspect_ids[]", :style => "float:right;"}
%option{:value => 'public'}
= t('public')
%option{:value => 'all_aspects', :selected => true}
= t('all_aspects')
- current_user.aspects.each do |aspect|
%option{:value => aspect.id}
= "· #{aspect.name}"