- move app para current/ (estrutura capistrano) - rails 7.2 → 8.1, ruby 3.2, sqlite3 2.x - adiciona primary_key Idinformativo no model - schema.rb completo com todas as tabelas - testes minitest: models (Tag, Informativo, Tema) e controllers - readme atualizado em pt-br com stack e instruções de desenvolvimento - gitignore exclui dump.sql, *.duckdb e sqlite3
36 lines
995 B
Plaintext
36 lines
995 B
Plaintext
!!!
|
|
%html
|
|
%head
|
|
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
|
- title = "Ambiente Já!"
|
|
- title = "#{@title} - #{title}" if @title
|
|
%title= title
|
|
= csrf_meta_tags
|
|
= csp_meta_tag
|
|
= favicon_link_tag asset_path('favicon.ico')
|
|
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Fira+Sans&display=swap"
|
|
= stylesheet_link_tag 'application', media: 'all'
|
|
= javascript_include_tag 'application'
|
|
|
|
%body
|
|
|
|
#all
|
|
#topo
|
|
= link_to image_tag("logo.png", class: "logo_img"), "/"
|
|
#busca
|
|
= form_tag("/search", method: :get) do
|
|
= text_field_tag :q, "", class: 'busca-input', placeholder: "+agrofloresta +vida -lixo"
|
|
= submit_tag '⌕', class: 'busca-btn'
|
|
|
|
#temas
|
|
- Tema.infos.each do |t|
|
|
= link_to "/tema/#{t[0].parameterize}", class: "tema" do
|
|
%span.content= t[0]
|
|
%span.right= "(#{t[1]})"
|
|
= yield :tags
|
|
#informativos
|
|
= yield
|
|
|
|
#baixo
|
|
%span - AmbienteJá desde 2001 -
|