Merge pull request #4589 from Flaburgan/add-markdown-indication-publisher
[Ready to review] Add indication about markdown formatting in the publisher
This commit is contained in:
commit
bbbdd87519
6 changed files with 22 additions and 4 deletions
|
|
@ -56,6 +56,7 @@ A new feature [has been added](https://github.com/diaspora/diaspora/pull/4602) t
|
|||
* Improve the management of the contacts visibility settings in an aspect [#4567](https://github.com/diaspora/diaspora/pull/4567)
|
||||
* Add actions on aspects on the contact page [#4570](https://github.com/diaspora/diaspora/pull/4570)
|
||||
* Added a statistics route with general pod information, and if enabled in pod settings, total user, half year/monthly active users and local post counts [#4602](https://github.com/diaspora/diaspora/pull/4602)
|
||||
* Add indication about markdown formatting in the publisher [#4589](https://github.com/diaspora/diaspora/pull/4589)
|
||||
|
||||
# 0.2.0.1
|
||||
|
||||
|
|
|
|||
|
|
@ -261,10 +261,9 @@
|
|||
}
|
||||
|
||||
#publisher.closed {
|
||||
#publisher_textarea_wrapper {
|
||||
#hide_publisher {
|
||||
display: none;
|
||||
}
|
||||
#publisher_textarea_wrapper #hide_publisher,
|
||||
.markdownIndications {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -277,6 +276,8 @@
|
|||
}
|
||||
|
||||
#publisher-images {
|
||||
padding-left: 5px;
|
||||
|
||||
#locator {
|
||||
bottom: 1px !important;
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
= status.hidden_field :text, :value => h(publisher_hidden_text), :class => 'clear_on_submit'
|
||||
|
||||
#publisher-images
|
||||
%span.markdownIndications
|
||||
!= t('.formatWithMarkdown', markdown_link: link_to(t('help.markdown'), 'https://diasporafoundation.org/formatting', target: :blank))
|
||||
#locator.btn{:title => t('.get_location')}
|
||||
= image_tag 'icons/marker.png', :alt => t('.get_location').titleize, :class => 'publisher_image'
|
||||
#file-upload.btn{:title => t('.upload_photos')}
|
||||
|
|
|
|||
|
|
@ -992,6 +992,7 @@ en:
|
|||
one: "In %{count} aspect"
|
||||
other: "In %{count} aspects"
|
||||
publisher:
|
||||
formatWithMarkdown: "You can use %{markdown_link} to format your post"
|
||||
posting: "Posting..."
|
||||
share: "Share"
|
||||
preview: "Preview"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,14 @@ Feature: posting from the main page
|
|||
And I have user with username "alice" in an aspect called "PostingTo"
|
||||
And I have user with username "alice" in an aspect called "NotPostingThingsHere"
|
||||
And I am on the home page
|
||||
|
||||
Scenario: expanding the publisher
|
||||
Given ".markdownIndications" is hidden
|
||||
And ".options_and_submit" is hidden
|
||||
When I expand the publisher
|
||||
Then I should see "You can use Markdown to format your post" within "#publisher-images"
|
||||
Then I should see "All Aspects" within ".options_and_submit"
|
||||
Then I should see "Preview" within ".options_and_submit"
|
||||
|
||||
Scenario: post a text-only message to all aspects
|
||||
Given I expand the publisher
|
||||
|
|
|
|||
|
|
@ -267,3 +267,8 @@ end
|
|||
Then /^I should see the Bitcoin address$/ do
|
||||
find("#bitcoin_address")['value'].should == "AAAAAA"
|
||||
end
|
||||
|
||||
Given /^"([^"]*)" is hidden$/ do |selector|
|
||||
page.should have_selector(selector, visible: false)
|
||||
page.should_not have_selector(selector)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue