From 35c8ffe320f501b0e2bea7e6e3e6c70f45af6175 Mon Sep 17 00:00:00 2001 From: Annabell Date: Fri, 25 Oct 2024 11:06:05 -0300 Subject: [PATCH] Feat/naipa (#233) * insercao da rota da agenda * troquei a ordem na navbar, inseri censo e redirecionei botao da landing * extract common tasks aliases * criando a primeira versao do NAIPAcom informacoes passadas em documento * formatter --------- Co-authored-by: Zoey de Souza Pessanha --- .../controllers/naipa_controller.ex | 8 ++ lib/pescarte_web/router.ex | 1 + .../templates/landing_html/show.html.heex | 9 ++ lib/pescarte_web/templates/naipa_html.ex | 5 + .../templates/naipa_html/show.html.heex | 93 +++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 lib/pescarte_web/controllers/naipa_controller.ex create mode 100644 lib/pescarte_web/templates/naipa_html.ex create mode 100644 lib/pescarte_web/templates/naipa_html/show.html.heex diff --git a/lib/pescarte_web/controllers/naipa_controller.ex b/lib/pescarte_web/controllers/naipa_controller.ex new file mode 100644 index 00000000..fbf16609 --- /dev/null +++ b/lib/pescarte_web/controllers/naipa_controller.ex @@ -0,0 +1,8 @@ +defmodule PescarteWeb.NaipaController do + use PescarteWeb, :controller + + def show(conn, _params) do + current_path = conn.request_path + render(conn, :show, current_path: current_path, error_message: nil) + end +end diff --git a/lib/pescarte_web/router.ex b/lib/pescarte_web/router.ex index 15b58a87..9af5f9b6 100644 --- a/lib/pescarte_web/router.ex +++ b/lib/pescarte_web/router.ex @@ -41,6 +41,7 @@ defmodule PescarteWeb.Router do get "/noticias", NoticiasController, :show get "/pgtrs", PGTRSController, :show get "/pgtr", PGTRController, :show + get "/naipa", NaipaController, :show get "/sedes", SedesController, :show get "/aplicativos", AplicativosController, :show diff --git a/lib/pescarte_web/templates/landing_html/show.html.heex b/lib/pescarte_web/templates/landing_html/show.html.heex index 7fa7c821..997f16a7 100644 --- a/lib/pescarte_web/templates/landing_html/show.html.heex +++ b/lib/pescarte_web/templates/landing_html/show.html.heex @@ -80,6 +80,15 @@ +