new link and routes

This commit is contained in:
Torsten 2023-01-08 23:49:20 +02:00
parent 90b1b21276
commit 19db53d98c
3 changed files with 9 additions and 4 deletions

View File

@ -46,6 +46,10 @@
%p.font-medium.text-gray-900 News %p.font-medium.text-gray-900 News
%nav.mt-6{"aria-label" => "Footer Navigation - Downloads"} %nav.mt-6{"aria-label" => "Footer Navigation - Downloads"}
%ul.space-y-4.text-sm %ul.space-y-4.text-sm
- if blog = last_blog
%li
%a.text-gray-700.transition.hover:opacity-75{:href => main_app.view_blog_path(blog.page.name) }
Latest News
%li %li
%a.text-gray-700.transition.hover:opacity-75{:href => "https://www.facebook.com/hubfeenix" , :target => "_blank"} %a.text-gray-700.transition.hover:opacity-75{:href => "https://www.facebook.com/hubfeenix" , :target => "_blank"}
Facebook Facebook

View File

@ -6,13 +6,12 @@
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/ %meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
= csrf_meta_tags = csrf_meta_tags
= csp_meta_tag = csp_meta_tag
= stylesheet_link_tag "tailwind"
= stylesheet_link_tag "application" = stylesheet_link_tag "application"
= javascript_importmap_tags = javascript_importmap_tags
- if Rails.env.development? - if false
%script{:src => "https://cdn.tailwindcss.com"} %script{:src => "https://cdn.tailwindcss.com"}
- else
= stylesheet_link_tag "tailwind"
%body %body
= render "layouts/header" = render "layouts/header"

View File

@ -8,6 +8,8 @@ Rails.application.routes.draw do
mount Merged::Engine => "/merged" mount Merged::Engine => "/merged"
get ":id" , to: "merged/view#page" , id: :id get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog
get ":id" , to: "merged/view#page" , id: :id , as: :view_page
root "merged/view#page" , id: 'index' root "merged/view#page" , id: 'index'
end end