View spec fix (#1888)
* Add option to disable verify partial doubles * Add show_landing_strip? helper method * Use show_landing_strip? helper in accounts and stream entries views * Fix naming in view specs
This commit is contained in:
parent
95bcbaa434
commit
3834e1e69b
7 changed files with 106 additions and 68 deletions
|
@ -4,4 +4,8 @@ module ApplicationHelper
|
|||
def active_nav_class(path)
|
||||
current_page?(path) ? 'active' : ''
|
||||
end
|
||||
|
||||
def show_landing_strip?
|
||||
!user_signed_in? && !single_user_mode?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
%meta{ property: 'og:image:height', content: '120' }/
|
||||
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||
|
||||
- if !user_signed_in? && !single_user_mode?
|
||||
- if show_landing_strip?
|
||||
= render partial: 'shared/landing_strip', locals: { account: @account }
|
||||
|
||||
.h-feed
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||
|
||||
- if !user_signed_in? && !single_user_mode?
|
||||
- if show_landing_strip?
|
||||
= render partial: 'shared/landing_strip', locals: { account: @stream_entry.account }
|
||||
|
||||
.activity-stream.activity-stream-headless.h-entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue