chore: rename services to blog
This commit is contained in:
parent
e185b154ab
commit
84681401ec
8 changed files with 18 additions and 18 deletions
|
@ -16,7 +16,7 @@ defmodule ComfycampWeb.NavBar do
|
||||||
~H"""
|
~H"""
|
||||||
<nav class="limiter navbar">
|
<nav class="limiter navbar">
|
||||||
<.link href="/">Главная</.link>
|
<.link href="/">Главная</.link>
|
||||||
<.link href="/services/">Сервисы</.link>
|
<.link href="/blog/">Блог</.link>
|
||||||
<.link href="/cinema/">Кинотеатр</.link>
|
<.link href="/cinema/">Кинотеатр</.link>
|
||||||
|
|
||||||
<div class="space" />
|
<div class="space" />
|
||||||
|
|
7
lib/comfycamp_web/controllers/blog_controller.ex
Normal file
7
lib/comfycamp_web/controllers/blog_controller.ex
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
defmodule ComfycampWeb.BlogController do
|
||||||
|
use ComfycampWeb, :controller
|
||||||
|
|
||||||
|
def index(conn, _params) do
|
||||||
|
render(conn, :index, page_title: "Блог")
|
||||||
|
end
|
||||||
|
end
|
8
lib/comfycamp_web/controllers/blog_html.ex
Normal file
8
lib/comfycamp_web/controllers/blog_html.ex
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
defmodule ComfycampWeb.BlogHTML do
|
||||||
|
@moduledoc """
|
||||||
|
This module contains pages rendered by BlogController.
|
||||||
|
"""
|
||||||
|
use ComfycampWeb, :html
|
||||||
|
|
||||||
|
embed_templates "blog_html/*"
|
||||||
|
end
|
1
lib/comfycamp_web/controllers/blog_html/index.html.heex
Normal file
1
lib/comfycamp_web/controllers/blog_html/index.html.heex
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>Блог</p>
|
|
@ -1,7 +0,0 @@
|
||||||
defmodule ComfycampWeb.ServicesController do
|
|
||||||
use ComfycampWeb, :controller
|
|
||||||
|
|
||||||
def index(conn, _params) do
|
|
||||||
render(conn, :index, page_title: "Сервисы")
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,8 +0,0 @@
|
||||||
defmodule ComfycampWeb.ServicesHTML do
|
|
||||||
@moduledoc """
|
|
||||||
This module contains pages rendered by ServicesController.
|
|
||||||
"""
|
|
||||||
use ComfycampWeb, :html
|
|
||||||
|
|
||||||
embed_templates "services_html/*"
|
|
||||||
end
|
|
|
@ -1 +0,0 @@
|
||||||
<p>Сервисы</p>
|
|
|
@ -21,7 +21,7 @@ defmodule ComfycampWeb.Router do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
get "/", MainController, :index
|
get "/", MainController, :index
|
||||||
get "/services", ServicesController, :index
|
get "/blog", BlogController, :index
|
||||||
get "/cinema", CinemaController, :index
|
get "/cinema", CinemaController, :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue