Merge pull request #3832 from asphxia/logged-out-user-streams-options

Logged out user streams options
This commit is contained in:
Jonne Haß 2013-01-18 10:12:13 -08:00
commit 8d72447d47
4 changed files with 8 additions and 2 deletions

View file

@ -27,6 +27,7 @@
* Re-add hovercards [#3802](https://github.com/diaspora/diaspora/pull/3802)
* Add images to notifications [#3821](https://github.com/diaspora/diaspora/pull/3821)
* Show pod version in footer and updated the link to the changelog [#3822](https://github.com/diaspora/diaspora/pull/3822)
* User interface enhancements [#3832](https://github.com/diaspora/diaspora/pull/3832), [#3839](https://github.com/diaspora/diaspora/pull/3839), [#3834](https://github.com/diaspora/diaspora/pull/3834).
## Bug Fixes

View file

@ -1,10 +1,10 @@
<div class="media">
{{#if current_user}}
{{#if loggedIn}}
<div class="controls">
{{#unless authorIsCurrentUser}}
<a href="#" rel="nofollow" class="block_user">
<img src="{{imageUrl "icons/ignoreuser.png"}}"" alt="Ignoreuser" class="control_icon" title="{{t "ignore"}}" />
<img src="{{imageUrl "icons/ignoreuser.png"}}" alt="Ignoreuser" class="control_icon" title="{{t "ignore"}}" />
</a>
<a href="#" rel="nofollow" class="hide_post">
<img src="{{imageUrl "deletelabel.png"}}" class="delete control_icon" title="{{t "stream.hide"}}" />

View file

@ -12,6 +12,7 @@ Feature: Browsing Diaspora as a logged out user
Scenario: Visiting a profile page
When I am on "bob@bob.bob"'s page
Then I should see "public stuff" within "body"
And page should not have ".media .controls"
Scenario: Clicking Last Post
When I am on "bob@bob.bob"'s page

View file

@ -175,6 +175,10 @@ Then /^(?:|I )should not see a "([^\"]*)"(?: within "([^\"]*)")?$/ do |selector,
end
end
Then /^page should (not )?have "([^\"]*)"$/ do |negate, selector|
page.has_css?(selector).should ( negate ? be_false : be_true )
end
When /^I wait for the ajax to finish$/ do
wait_for_ajax_to_finish
end