Add landing strip
This commit is contained in:
@ -285,6 +285,24 @@ button:focus {
|
||||
}
|
||||
}
|
||||
|
||||
.landing-strip {
|
||||
background: rgba(darken($color1, 7%), 0.8);
|
||||
color: $color3;
|
||||
font-weight: 400;
|
||||
padding: 14px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
strong, a {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@import 'forms';
|
||||
@import 'accounts';
|
||||
@import 'stream_entries';
|
||||
|
@ -14,6 +14,9 @@
|
||||
%meta{ property: 'og:image:height', content: '120' }/
|
||||
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||
|
||||
- if !user_signed_in? && !Rails.configuration.x.single_user_mode
|
||||
= render partial: 'shared/landing_strip', locals: { account: @account }
|
||||
|
||||
.h-feed
|
||||
%data.p-name{ value: "#{@account.username} on #{Rails.configuration.x.local_domain}" }/
|
||||
|
||||
|
2
app/views/shared/_landing_strip.html.haml
Normal file
2
app/views/shared/_landing_strip.html.haml
Normal file
@ -0,0 +1,2 @@
|
||||
.landing-strip
|
||||
= t('landing_strip_html', name: display_name(account), domain: Rails.configuration.x.local_domain, sign_up_path: new_user_registration_path)
|
@ -20,5 +20,8 @@
|
||||
|
||||
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||
|
||||
- if !user_signed_in? && !Rails.configuration.x.single_user_mode
|
||||
= render partial: 'shared/landing_strip', locals: { account: @stream_entry.account }
|
||||
|
||||
.activity-stream.activity-stream-headless
|
||||
= render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }
|
||||
|
Reference in New Issue
Block a user