Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_publisher.mobile.haml « publisher « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da881fa25eda675837ccf21d00e0b4ada3f2cec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

= form_for StatusMessage.new, url: status_messages_path, as: :status_message,
    html: {class: "control-group", data: {ajax: false}} do |status|
  .form-group
    = status.hidden_field :provider_display_name, value: 'mobile'
    = status.text_area :text, placeholder: t('shared.publisher.whats_on_your_mind'), rows: 4, autofocus: "autofocus", class: "form-control"

  = hidden_field_tag "aspect_ids[]", "all_aspects"
  .form-group
    %span#publisher-service-icons
      - if current_user.services
        - for service in current_user.services
          = image_tag "social-media-logos/#{service.provider}-32x32.png",
            title: service.provider.titleize, class: "service_icon dim",
            id: "#{service.provider}", maxchar: "#{service.class::MAX_CHARACTERS}"

    .clear
    #publisher-textarea-wrapper
      %ul#photodropzone
    #fileInfo-publisher
    .clearfix
    .btn-toolbar
      .pull-left#file-upload-publisher
        %i.entypo-camera.middle
      .pull-right#publisher-mobile
        = submit_tag t("shared.publisher.share"),
          class: "btn btn-primary",
          id: "submit_new_message",
          data: {"disable-with" => t("shared.publisher.posting")}
      .pull-right
        = render partial: "aspects/aspect_dropdown"