diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 598c9f4f5e0..20a06652e80 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -137,6 +137,10 @@ module ApplicationHelper end end + def application_logo_url + @application_logo_url ||= (mobile_view? && SiteSetting.mobile_logo_url) || SiteSetting.logo_url + end + def login_path "#{Discourse::base_uri}/login" end diff --git a/app/views/application/_header.html.erb b/app/views/application/_header.html.erb new file mode 100644 index 00000000000..d0f3c8b39fc --- /dev/null +++ b/app/views/application/_header.html.erb @@ -0,0 +1,22 @@ +
+
+ +
+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f4c61ef136e..baf1f7cbd0b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -37,17 +37,7 @@