mentioning a person from their profile page, added js & jasmine, still need to add the mention style, and prevent deselecting the last one a tiny sass add publishing from the profile works, need js translation added the translation made the hover state consistant need to fix the cucumber spec specs are green need to add a button added the buttion to mention people moved the publisher to the facebox fixed the cucumbers for the modal window
30 lines
1,016 B
Text
30 lines
1,016 B
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
:javascript
|
|
$(document).ready(function(){
|
|
$("#status_message_text").bind("focus", function(){
|
|
$("#publisher fieldset:first").removeClass('hidden');
|
|
});
|
|
});
|
|
|
|
#publisher
|
|
= form_for StatusMessage.new, :remote => true do |status|
|
|
#publisher_text
|
|
= t('.whats_on_your_mind')
|
|
|
|
= status.text_area :text
|
|
|
|
- for aspect_id in @aspect_ids
|
|
= hidden_field_tag 'aspect_ids[]', aspect_id.to_s
|
|
|
|
|
|
%fieldset.hidden{:style => 'text-align:right;'}
|
|
%fieldset{:data => {:role => 'controlgroup', :type=>'horizontal'}}
|
|
- unless params[:a_ids]
|
|
%input{:type => 'checkbox', :name => 'status_message[public]', :id => 'public', :class => 'custom', :value => 'true'}
|
|
%label{:for => 'public'}
|
|
= t('.make_public')
|
|
= status.submit t('.share'), 'data-inline' => 'true', 'data-theme' => 'b'
|
|
|