informativo basico
This commit is contained in:
13
app/views/layouts/application.haml
Normal file
13
app/views/layouts/application.haml
Normal file
@@ -0,0 +1,13 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
||||
%title Ambiente Já!
|
||||
= csrf_meta_tags
|
||||
= csp_meta_tag
|
||||
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Inconsolata&display=swap"
|
||||
= stylesheet_link_tag 'application', media: 'all'
|
||||
%body
|
||||
|
||||
%h1= "Ambiente Já!"
|
||||
= yield
|
||||
@@ -1,15 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ambienteja</title>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1 +0,0 @@
|
||||
<%= yield %>
|
||||
5
app/views/page/home.haml
Normal file
5
app/views/page/home.haml
Normal file
@@ -0,0 +1,5 @@
|
||||
%h3= "#{@informativos.count} informativos"
|
||||
- @informativos.each do |i|
|
||||
%p= link_to "#{i.data_inc} > #{i.titulo}", "/informativo/#{i.id}"
|
||||
|
||||
= will_paginate @informativos
|
||||
3
app/views/page/informativo.haml
Normal file
3
app/views/page/informativo.haml
Normal file
@@ -0,0 +1,3 @@
|
||||
!= @informativo.Descricao
|
||||
%hr
|
||||
!= ap @informativo
|
||||
Reference in New Issue
Block a user